Add Reolink baby crying binary sensor (#134290)
* Add baby crying detection * Bump reolink-aio to 0.11.6pull/134372/head
parent
6c47f03d17
commit
1e70a0060b
|
@ -100,6 +100,13 @@ BINARY_PUSH_SENSORS = (
|
|||
value=lambda api, ch: api.visitor_detected(ch),
|
||||
supported=lambda api, ch: api.is_doorbell(ch),
|
||||
),
|
||||
ReolinkBinarySensorEntityDescription(
|
||||
key="cry",
|
||||
cmd_id=33,
|
||||
translation_key="cry",
|
||||
value=lambda api, ch: api.ai_detected(ch, "cry"),
|
||||
supported=lambda api, ch: api.ai_supported(ch, "cry"),
|
||||
),
|
||||
)
|
||||
|
||||
BINARY_SENSORS = (
|
||||
|
|
|
@ -43,6 +43,12 @@
|
|||
"on": "mdi:motion-sensor"
|
||||
}
|
||||
},
|
||||
"cry": {
|
||||
"default": "mdi:emoticon-happy-outline",
|
||||
"state": {
|
||||
"on": "mdi:emoticon-cry-outline"
|
||||
}
|
||||
},
|
||||
"sleep": {
|
||||
"default": "mdi:sleep-off",
|
||||
"state": {
|
||||
|
|
|
@ -215,6 +215,13 @@
|
|||
"on": "[%key:component::binary_sensor::entity_component::gas::state::on%]"
|
||||
}
|
||||
},
|
||||
"cry": {
|
||||
"name": "Baby crying",
|
||||
"state": {
|
||||
"off": "[%key:component::binary_sensor::entity_component::gas::state::off%]",
|
||||
"on": "[%key:component::binary_sensor::entity_component::gas::state::on%]"
|
||||
}
|
||||
},
|
||||
"motion_lens_0": {
|
||||
"name": "Motion lens 0",
|
||||
"state": {
|
||||
|
|
Loading…
Reference in New Issue