I try to automatic take down my roller shutter. with the following code:
data_template:
position: '{{ states.cover.markise_platting_level_23_0.attributes.current_position + 10 }}'
The problem is that it only run once. So it gets out 10%. If i restart hass, it goes out 10% more. The sensor.aeotec_zw100_multisensor_6_luminance_24_3 is updating. Anyone sees what i do wrong ? The whole code is blow.
Thomas
- alias: 'Automarkise'
trigger:
platform: numeric_state
entity_id: sensor.aeotec_zw100_multisensor_6_luminance_24_3
above: 1000
condition:
condition: and
conditions:
- condition: state
entity_id: input_boolean.automarkise
state: 'on'
- condition: state
entity_id: input_boolean.borte
state: 'off'
action:
- service: cover.set_cover_position
entity_id: cover.markise_platting_level_23_0
data_template:
position: '{{ states.cover.markise_platting_level_23_0.attributes.current_position + 10 }}'