Add state translation to Reolink AI detections (#118560)

pull/118577/head
starkillerOG 2024-05-31 17:55:59 +02:00 committed by GitHub
parent d956db691a
commit 51d8f83a54
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 100 additions and 20 deletions

View File

@ -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": {