I would like a card(s) that would dynamically show status of a device when it changes. For instance a smoke detector that goes into smoke detection mode, or a door opens during the night. I would like the text to show info of the device reporting the change. Possibly a default text that states that “All is well”. Ideally it would be a card that has a few lines that would show one device / entity at a time. Is this possible?
Thanks for any direction you guys can point me in.
If I get your question correctly: Just use a markdown card. If door = open show text “A”, if door = closed show text “B”. See example:
{% if is_state("light.alllights", "off") -%} All lights are turned off. {%- else -%} At least one light is turned on.{%- endif %}
“light.alllights” is a group that includes all my light entities. So if that group turns on, it means that at least one light at home is turned on. Thus, if the light.alllights-group is “on” this card displays the text that at least one light is on, otherwise it will show a text indicating that all lights are turned off.
That’s pretty close, I also found a conditional card. I want to show each device as it changes. For instance : I have a couple of 10" tablets showing Date and weather. I would like an area of the screen that would show the text “Basement Smoke detected” all the while the siren is going off. I know the issue is in the basement immediately. Same for a door being opened during the night.
Then this works perfectly for you, no?
If the alarm goes “on” you change the text to “basement smoke detected” if it’s off “all quiet on the western front”
you can tie this text to the siren’s status. Or - if the siren is only indirectly integrated into HA you could implement this via a helper.
I think you might want to end up using a mix of these. I also use auto entity cards. They are great. However, they cannot be set to display a specific text when the sensor sets to “active”.
Conditional cards can do this. However, for just a couple of lines of text, I’d consider them to be overkill. In that situation, I think, the markdown option is cleaner and easier to work with.