mirror of
https://github.com/home-assistant/core.git
synced 2025-07-22 12:47:08 +00:00
Add Reolink day night switch threshold (#104219)
This commit is contained in:
parent
173f4760bc
commit
a1678ebd23
@ -298,6 +298,19 @@ NUMBER_ENTITIES = (
|
|||||||
value=lambda api, ch: api.auto_track_stop_time(ch),
|
value=lambda api, ch: api.auto_track_stop_time(ch),
|
||||||
method=lambda api, ch, value: api.set_auto_tracking(ch, stop_time=int(value)),
|
method=lambda api, ch, value: api.set_auto_tracking(ch, stop_time=int(value)),
|
||||||
),
|
),
|
||||||
|
ReolinkNumberEntityDescription(
|
||||||
|
key="day_night_switch_threshold",
|
||||||
|
translation_key="day_night_switch_threshold",
|
||||||
|
icon="mdi:theme-light-dark",
|
||||||
|
entity_category=EntityCategory.CONFIG,
|
||||||
|
entity_registry_enabled_default=False,
|
||||||
|
native_step=1,
|
||||||
|
native_min_value=0,
|
||||||
|
native_max_value=100,
|
||||||
|
supported=lambda api, ch: api.supported(ch, "dayNightThreshold"),
|
||||||
|
value=lambda api, ch: api.daynight_threshold(ch),
|
||||||
|
method=lambda api, ch, value: api.set_daynight_threshold(ch, int(value)),
|
||||||
|
),
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
@ -215,6 +215,9 @@
|
|||||||
},
|
},
|
||||||
"auto_track_stop_time": {
|
"auto_track_stop_time": {
|
||||||
"name": "Auto track stop time"
|
"name": "Auto track stop time"
|
||||||
|
},
|
||||||
|
"day_night_switch_threshold": {
|
||||||
|
"name": "Day night switch threshold"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"select": {
|
"select": {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user