Add translatable states to smoke detector in SmartThings (#139365)

pull/139370/head
Joost Lekkerkerker 2025-02-26 17:52:57 +01:00 committed by GitHub
parent 92268f894a
commit 468208502f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 8 additions and 1 deletions

View File

@ -684,6 +684,8 @@ CAPABILITY_TO_SENSORS: dict[
SmartThingsSensorEntityDescription(
key=Attribute.SMOKE,
translation_key="smoke_detector",
options=["detected", "clear", "tested"],
device_class=SensorDeviceClass.ENUM,
)
]
},

View File

@ -284,7 +284,12 @@
"name": "Link quality"
},
"smoke_detector": {
"name": "Smoke detector"
"name": "Smoke detector",
"state": {
"detected": "[%key:component::smartthings::entity::sensor::carbon_monoxide_detector::state::detected%]",
"clear": "[%key:component::smartthings::entity::sensor::carbon_monoxide_detector::state::clear%]",
"tested": "[%key:component::smartthings::entity::sensor::carbon_monoxide_detector::state::tested%]"
}
},
"thermostat_cooling_setpoint": {
"name": "Cooling set point"