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
Hi, I'm trying to use multiple state of entities to color the icon, but i think that something is wrong
styles:
icon:
- color: |
[[[
if ({% set entities = states.switch | selectattr('object_id', 'match', 'scheda_6') | map(attribute='state') | list %} {{ entities }} == on) return 'lime';
else return 'red';
]]]
The text was updated successfully, but these errors were encountered:
Hi, I'm trying to use multiple state of entities to color the icon, but i think that something is wrong
styles:
icon:
- color: |
[[[
if ({% set entities = states.switch | selectattr('object_id', 'match', 'scheda_6') | map(attribute='state') | list %} {{ entities }} == on) return 'lime';
else return 'red';
]]]
The text was updated successfully, but these errors were encountered: