From 51d8f83a54acb335d13293f223c5001e93d6b00b Mon Sep 17 00:00:00 2001 From: starkillerOG Date: Fri, 31 May 2024 17:55:59 +0200 Subject: [PATCH] Add state translation to Reolink AI detections (#118560) --- homeassistant/components/reolink/strings.json | 120 +++++++++++++++--- 1 file changed, 100 insertions(+), 20 deletions(-) diff --git a/homeassistant/components/reolink/strings.json b/homeassistant/components/reolink/strings.json index 26d2bb82f0c..8191f51d7ef 100644 --- a/homeassistant/components/reolink/strings.json +++ b/homeassistant/components/reolink/strings.json @@ -86,73 +86,153 @@ "entity": { "binary_sensor": { "face": { - "name": "Face" + "name": "Face", + "state": { + "off": "[%key:component::binary_sensor::entity_component::gas::state::off%]", + "on": "[%key:component::binary_sensor::entity_component::gas::state::on%]" + } }, "person": { - "name": "Person" + "name": "Person", + "state": { + "off": "[%key:component::binary_sensor::entity_component::gas::state::off%]", + "on": "[%key:component::binary_sensor::entity_component::gas::state::on%]" + } }, "vehicle": { - "name": "Vehicle" + "name": "Vehicle", + "state": { + "off": "[%key:component::binary_sensor::entity_component::gas::state::off%]", + "on": "[%key:component::binary_sensor::entity_component::gas::state::on%]" + } }, "pet": { - "name": "Pet" + "name": "Pet", + "state": { + "off": "[%key:component::binary_sensor::entity_component::gas::state::off%]", + "on": "[%key:component::binary_sensor::entity_component::gas::state::on%]" + } }, "animal": { - "name": "Animal" + "name": "Animal", + "state": { + "off": "[%key:component::binary_sensor::entity_component::gas::state::off%]", + "on": "[%key:component::binary_sensor::entity_component::gas::state::on%]" + } }, "visitor": { "name": "Visitor" }, "package": { - "name": "Package" + "name": "Package", + "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" + "name": "Motion lens 0", + "state": { + "off": "[%key:component::binary_sensor::entity_component::gas::state::off%]", + "on": "[%key:component::binary_sensor::entity_component::gas::state::on%]" + } }, "face_lens_0": { - "name": "Face lens 0" + "name": "Face lens 0", + "state": { + "off": "[%key:component::binary_sensor::entity_component::gas::state::off%]", + "on": "[%key:component::binary_sensor::entity_component::gas::state::on%]" + } }, "person_lens_0": { - "name": "Person lens 0" + "name": "Person lens 0", + "state": { + "off": "[%key:component::binary_sensor::entity_component::gas::state::off%]", + "on": "[%key:component::binary_sensor::entity_component::gas::state::on%]" + } }, "vehicle_lens_0": { - "name": "Vehicle lens 0" + "name": "Vehicle lens 0", + "state": { + "off": "[%key:component::binary_sensor::entity_component::gas::state::off%]", + "on": "[%key:component::binary_sensor::entity_component::gas::state::on%]" + } }, "pet_lens_0": { - "name": "Pet lens 0" + "name": "Pet lens 0", + "state": { + "off": "[%key:component::binary_sensor::entity_component::gas::state::off%]", + "on": "[%key:component::binary_sensor::entity_component::gas::state::on%]" + } }, "animal_lens_0": { - "name": "Animal lens 0" + "name": "Animal lens 0", + "state": { + "off": "[%key:component::binary_sensor::entity_component::gas::state::off%]", + "on": "[%key:component::binary_sensor::entity_component::gas::state::on%]" + } }, "visitor_lens_0": { "name": "Visitor lens 0" }, "package_lens_0": { - "name": "Package lens 0" + "name": "Package lens 0", + "state": { + "off": "[%key:component::binary_sensor::entity_component::gas::state::off%]", + "on": "[%key:component::binary_sensor::entity_component::gas::state::on%]" + } }, "motion_lens_1": { - "name": "Motion lens 1" + "name": "Motion lens 1", + "state": { + "off": "[%key:component::binary_sensor::entity_component::gas::state::off%]", + "on": "[%key:component::binary_sensor::entity_component::gas::state::on%]" + } }, "face_lens_1": { - "name": "Face lens 1" + "name": "Face lens 1", + "state": { + "off": "[%key:component::binary_sensor::entity_component::gas::state::off%]", + "on": "[%key:component::binary_sensor::entity_component::gas::state::on%]" + } }, "person_lens_1": { - "name": "Person lens 1" + "name": "Person lens 1", + "state": { + "off": "[%key:component::binary_sensor::entity_component::gas::state::off%]", + "on": "[%key:component::binary_sensor::entity_component::gas::state::on%]" + } }, "vehicle_lens_1": { - "name": "Vehicle lens 1" + "name": "Vehicle lens 1", + "state": { + "off": "[%key:component::binary_sensor::entity_component::gas::state::off%]", + "on": "[%key:component::binary_sensor::entity_component::gas::state::on%]" + } }, "pet_lens_1": { - "name": "Pet lens 1" + "name": "Pet lens 1", + "state": { + "off": "[%key:component::binary_sensor::entity_component::gas::state::off%]", + "on": "[%key:component::binary_sensor::entity_component::gas::state::on%]" + } }, "animal_lens_1": { - "name": "Animal lens 1" + "name": "Animal lens 1", + "state": { + "off": "[%key:component::binary_sensor::entity_component::gas::state::off%]", + "on": "[%key:component::binary_sensor::entity_component::gas::state::on%]" + } }, "visitor_lens_1": { "name": "Visitor lens 1" }, "package_lens_1": { - "name": "Package lens 1" + "name": "Package lens 1", + "state": { + "off": "[%key:component::binary_sensor::entity_component::gas::state::off%]", + "on": "[%key:component::binary_sensor::entity_component::gas::state::on%]" + } } }, "button": {