Hi to all,
i’ve created a picture-elements with my washing-machine and its consuption, state and timer.
I would change color on every state-text with various colors (white with clean state, red with in fuction state ecc.ecc.).
This is my card code:
elements:
- entity: sensor.lavatrice_status
style:
color: white
left: 20%
top: 93%
type: state-label
- entity: timer.lavatrice_duration
style:
color: white
left: 90%
top: 93%
type: state-label
- entity: sensor.shelly_shsw_pm_766537_current_consumption
style:
color: white
left: 55%
top: 93%
type: state-label
image: /local/image/lavatrice.jpg
style: |
ha-card {
border: solid 2px deepskyblue;
}
type: picture-elements
Thank you so much in advance.
Regards,
Alessandro!