Add hardwired chime toggle to Reolink Battery Doorbell (#145779)

Co-authored-by: starkillerOG <starkiller.og@gmail.com>
This commit is contained in:
Lennart Nederstigt 2025-05-28 17:10:38 +02:00 committed by GitHub
parent 6c365c94ed
commit 59ea6f375a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 19 additions and 0 deletions

View File

@ -462,6 +462,12 @@
"doorbell_button_sound": {
"default": "mdi:volume-high"
},
"hardwired_chime_enabled": {
"default": "mdi:bell",
"state": {
"off": "mdi:bell-off"
}
},
"hdr": {
"default": "mdi:hdr"
},

View File

@ -910,6 +910,9 @@
"auto_focus": {
"name": "Auto focus"
},
"hardwired_chime_enabled": {
"name": "Hardwired chime enabled"
},
"guard_return": {
"name": "Guard return"
},

View File

@ -216,6 +216,16 @@ SWITCH_ENTITIES = (
value=lambda api, ch: api.baichuan.privacy_mode(ch),
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 = (