You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This will most likely work (I haven't tried myself), however you have a big chance to have issues when using the UI to change settings in your automation, as that will probably overlap it's settings.
Also, on the blueprint there's no trigger for the attribute changing (with rare exceptions). If the state of that entity changes, then the attributes will be updated, but if only attributes changed, you have a chance to not get the icon updated.
This is how it is now.
you can do things like this in the yaml config. chip05_icon_color: "{{ state_attr('sensor.afvalwijzer_tomorrow_color', 'kleur')}}"
Hi @NdS-Research-Facilities@edwardtfn I'm affraid it doesn't work indeed. The template sensor does get change on true/false but the color attribute stays the same color on the NSP device.
Is there a workaround to force the color refresh of the icon aswell? When you disconnect the NSP from power, the color does get retrieved correctly.
Please could we have an option to change an ICON/ICON-COLOR based on a SENSOR state?
ICON EXAMPLE:
icon: |- [[[ if(states['sensor.<BLAH-alarm_entity-BLAH>'].state == 'Disarmed') return "mdi:alarm-light-off"; else if(states['<BLAH-alarm_entity-BLAH>'].state == 'Away Armed') return "mdi:alarm-light"; ]]]
Originally posted by @AubreyKloppers in #1183
The text was updated successfully, but these errors were encountered: