Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions homeassistant/components/reolink/icons.json
Original file line number Diff line number Diff line change
Expand Up @@ -363,6 +363,9 @@
"day_night_mode": {
"default": "mdi:theme-light-dark"
},
"exposure": {
"default": "mdi:camera-iris"
},
"floodlight_event_mode": {
"default": "mdi:spotlight-beam"
},
Expand Down
12 changes: 12 additions & 0 deletions homeassistant/components/reolink/select.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
ChimeToneEnum,
DayNightEnum,
EncodingEnum,
ExposureEnum,
HDREnum,
Host,
HubToneEnum,
Expand Down Expand Up @@ -208,6 +209,17 @@ def _get_quick_reply_id(api: Host, ch: int, mess: str) -> int:
value=lambda api, ch: HDREnum(api.HDR_state(ch)).name,
method=lambda api, ch, name: api.set_HDR(ch, HDREnum[name].value),
),
ReolinkSelectEntityDescription(
key="exposure",
cmd_key="GetIsp",
translation_key="exposure",
entity_category=EntityCategory.CONFIG,
entity_registry_enabled_default=False,
get_options=[method.name for method in ExposureEnum],
supported=lambda api, ch: api.supported(ch, "exposure"),
value=lambda api, ch: ExposureEnum(api.exposure(ch)).name,
method=lambda api, ch, name: api.set_exposure(ch, ExposureEnum[name].value),
),
ReolinkSelectEntityDescription(
key="binning_mode",
cmd_key="GetIsp",
Expand Down
9 changes: 9 additions & 0 deletions homeassistant/components/reolink/strings.json
Original file line number Diff line number Diff line change
Expand Up @@ -601,6 +601,15 @@
"stayoff": "Stay off"
}
},
"exposure": {
"name": "Image exposure mode",
"state": {
"antismearing": "Anti-smearing",
"auto": "[%key:common::state::auto%]",
"lownoise": "Low noise",
"manual": "Manual"
}
},
"floodlight_event_mode": {
"name": "Floodlight event mode",
"state": {
Expand Down
Loading