diff --git a/homeassistant/components/reolink/binary_sensor.py b/homeassistant/components/reolink/binary_sensor.py index c168c97e8096ebbef733b113a33c04cd05953ed5..2191dedc9cf5e36bc8e13bb8bd32064df2879d8a 100644 --- a/homeassistant/components/reolink/binary_sensor.py +++ b/homeassistant/components/reolink/binary_sensor.py @@ -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 = ( diff --git a/homeassistant/components/reolink/icons.json b/homeassistant/components/reolink/icons.json index cee044189ea168569a73866d1ef6b56f6348182b..98d230dc38352b91bbca3d00699363f243c0171f 100644 --- a/homeassistant/components/reolink/icons.json +++ b/homeassistant/components/reolink/icons.json @@ -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": { diff --git a/homeassistant/components/reolink/strings.json b/homeassistant/components/reolink/strings.json index 50163fa1acad5ce0fc0b6fd293f2c689cc4d24fd..fbbf50ba20ee2a6f6f544f18be69848b1da20ec0 100644 --- a/homeassistant/components/reolink/strings.json +++ b/homeassistant/components/reolink/strings.json @@ -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": {