mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 05:07:41 +00:00
Add hardwired chime toggle to Reolink Battery Doorbell (#145779)
Co-authored-by: starkillerOG <starkiller.og@gmail.com>
This commit is contained in:
parent
6c365c94ed
commit
59ea6f375a
@ -462,6 +462,12 @@
|
|||||||
"doorbell_button_sound": {
|
"doorbell_button_sound": {
|
||||||
"default": "mdi:volume-high"
|
"default": "mdi:volume-high"
|
||||||
},
|
},
|
||||||
|
"hardwired_chime_enabled": {
|
||||||
|
"default": "mdi:bell",
|
||||||
|
"state": {
|
||||||
|
"off": "mdi:bell-off"
|
||||||
|
}
|
||||||
|
},
|
||||||
"hdr": {
|
"hdr": {
|
||||||
"default": "mdi:hdr"
|
"default": "mdi:hdr"
|
||||||
},
|
},
|
||||||
|
@ -910,6 +910,9 @@
|
|||||||
"auto_focus": {
|
"auto_focus": {
|
||||||
"name": "Auto focus"
|
"name": "Auto focus"
|
||||||
},
|
},
|
||||||
|
"hardwired_chime_enabled": {
|
||||||
|
"name": "Hardwired chime enabled"
|
||||||
|
},
|
||||||
"guard_return": {
|
"guard_return": {
|
||||||
"name": "Guard return"
|
"name": "Guard return"
|
||||||
},
|
},
|
||||||
|
@ -216,6 +216,16 @@ SWITCH_ENTITIES = (
|
|||||||
value=lambda api, ch: api.baichuan.privacy_mode(ch),
|
value=lambda api, ch: api.baichuan.privacy_mode(ch),
|
||||||
method=lambda api, ch, value: api.baichuan.set_privacy_mode(ch, value),
|
method=lambda api, ch, value: api.baichuan.set_privacy_mode(ch, value),
|
||||||
),
|
),
|
||||||
|
ReolinkSwitchEntityDescription(
|
||||||
|
key="hardwired_chime_enabled",
|
||||||
|
cmd_key="483",
|
||||||
|
translation_key="hardwired_chime_enabled",
|
||||||
|
entity_category=EntityCategory.CONFIG,
|
||||||
|
entity_registry_enabled_default=False,
|
||||||
|
supported=lambda api, ch: api.supported(ch, "hardwired_chime"),
|
||||||
|
value=lambda api, ch: api.baichuan.hardwired_chime_enabled(ch),
|
||||||
|
method=lambda api, ch, value: api.baichuan.set_ding_dong_ctrl(ch, enable=value),
|
||||||
|
),
|
||||||
)
|
)
|
||||||
|
|
||||||
NVR_SWITCH_ENTITIES = (
|
NVR_SWITCH_ENTITIES = (
|
||||||
|
Loading…
x
Reference in New Issue
Block a user