Hello,
I would like to transform some entity state values of sensors/binary_sensors, at least for display in lovelace UI. Two examples:
- A binary sensor
binary_sensor.landroid_batterycharging
to indicate our lawnmower robot is charging or not. Since that is a binary sensor it displayson
/off
in the UI, I would like that to be transformed toyes
/no
sensor.sirene_carport_armstate
for a Homematic siren device has textual states for the arm state likeextsens_armed
ordisarmed
. They are very technical and I would like to transform into a more human understandable term
Any idea how entity states could easily be transformed in such cases?
Could not find anything here in the forum except using an additional template sensor, but I wonder if there is a smarter way to achieve that? Or maybe that is a new feature request
Thx.
Sidenote: I switched to HA from OpenHab recently, OpenHab has a transformation feature for that which allows to configure some mapping table or do more advanced stuff using Javascript.