On my lovelace UI, there are two things that I’d like to change:
For the device_tracker it displays home or not_home. I would like it to show Home and Not Home in the selected language (currently it’s the same for all languages)
My xiaomi aqara door/window sensors show me on and off instead of Open and Closed.
In the detailed view it shows me the history of open and closed, but the status is on.
How can I change the sensors to show the right value?
My initial binary sensors (binary_sensor.wall_switch_left_158d00027c19e9 and binary_sensor.wall_switch_rigth_158d00027c19e9) have either the state on or off.
The template creates two new sensors (wall_switch_left and wall_switch_right) which can either have the state SOMETHING and SOMETHINGSELSE.
You can use those in your lovelace.yaml like this:
title: My Awesome Home
views:
- icon: mdi:home-assistant
title: Second view
background: radial-gradient(crimson, skyblue)
cards:
- type: entities
title: Woonkamer
entities:
- sensor.wall_switch_left
- sensor.wall_switch_right
Then you get this:
B.t.w. Did you know Home assistant supports lots of languages. If you change the language (for example to German) in the GUI (account settings) the statuses of a binairy sensors will change in an and aus.
Weird, I’ve kind of the same question. Is this changed in 0.84? In 0.83 I was getting the “friendly names” already… after updating open/closed is changed to on/off for example with the door sensors…