queimadus / last-changed-element

Display when entity was last changed in home assistant picture element
MIT License
9 stars 2 forks source link

change color or hide with some states? #5

Closed unosakk closed 6 months ago

unosakk commented 2 years ago

any interest in developing this further? i'd like to see color change or text be hidden when, lets say there is not motion. Only show last change when motion is triggered.

show_state: 'on' or state_color: 'on' : red 'off' : grey

queimadus commented 1 year ago

Don't have a lot of time on hands for this but I think you can achieve the intended results with:

vogtmh commented 1 year ago

I use this code to display the last_changed state whenever the washing machine switches to running mode:

Bildschirmfoto 2023-09-14 um 20 47 24