States not updating when using template #889
dmarkscouk
started this conversation in
General
Replies: 2 comments 3 replies
-
you should have a look at the triggers_update option. the fact button-card only updates on used entities is per design. the configuration option for triggers_update was explicitly added for cases like yours, unless I am misunderstanding what you want.... |
Beta Was this translation helpful? Give feedback.
2 replies
-
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello, I'm using the custom button card in a slightly unusual way and thus have turned it into a template so that I don't have to have reams repetition of code for each instance of it (20 or so).
In doing so I've found that the states do not update for anything that is not listed as an entity in the card.
So this card does not update the charge status:
I can fix that by listing the entity in the card (I'd rather not, but this is ok):
The issue I'm now having is that I can only list a single entity per card, but want more than 1 state to be updated when things change. IE: I also want the card to display
sensor.mirror_battery_level
to update:I tried this, but it breaks:
Thankyou in advance for any help.
I'm not sure if it's relevant, but this is my template code:
Beta Was this translation helpful? Give feedback.
All reactions