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
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi,
Wondering if i can change the icon based on the current state of my cover.
template: chip_mdi_icon_state
variables:
ulm_chip_mdi_icon_state_entity: cover.bedroom_curtains
ulm_chip_mdi_icon_state_icon: >
[[[
if (states[variables.ulm_chip_mdi_icon_state_entity].state === 'open')
return 'mdi:curtains';
else if (states[variables.ulm_chip_mdi_icon_state_entity].state === 'closed')
return 'mdi:curtains-closed';
else
return 'mdi:alert';
]]]
This doesnt seem to achieve what I am after but should give an idea of what I am trying to achieve.
TIA
Beta Was this translation helpful? Give feedback.
All reactions