since the tradfri covers (FYRTUR block-out roller blind) are either ‘open’ or ‘closed’, we need to resort to more complex templates to allow triggering automations or templates on the current_position.
Also, since these covers are very dynamic in the HA state machine, I would hope it to be possible to add ‘opening’ and ‘closing’ as state when applicable.
currently we need to resort to some intermediary entity to be able to set an icon like:
if (entities['input_select.raamverduistering_stookhok'].state == 'Opening') return 'mdi:archive-arrow-up';
if (entities['input_select.raamverduistering_stookhok'].state == 'Closing') return 'mdi:archive-arrow-down';
if (attributes.current_position == 100) return 'mdi:window-shutter-open';
if (state == 'closed') return 'mdi:window-shutter';
return 'mdi:window-shutter-alert';
and use that JS template on a button.
eg Somfy Tahoma covers use the opening/closing, please consider syncing that behavior in the Tradfri covers?
thanks