Hi everyone.
I need to show last updated state for motion sensors in my tablet view using the custom-button card.
What’s the way to do it?
I searched around but can’t obtain good results. I can show the last update just using the entities type card.
I want to display: name, state and the last update of the sensors.
This is the result for now. last update is shows as 0 seconds.
custom:button-card needs updates in order for last_update to show properly. As it currently stands, it only calculates when your sensors update. Therefor, it will always be zero.
If you want it to update, you need to adjust your template sensor so that it updates once a minute using now(), or use homeassistant.update_entity service call in an automation to force updates on whatever frequency you want.