dear @finity, update from the afternoon: nothing is happening with the cover
I see the automation being triggered constantly, but the cover is not moving. It’s currently, 15:04, azimuth at 232,43 degree at the moment, cover is at 0% (fully closed)
just to be sure, again the code in it’s currently active version, maybe I’m messing up something:
alias: Cover automatisation test multiple trigger cover7
trigger:
- platform: state
entity_id: sun.sun
condition: []
action:
- service: cover.set_cover_position
target:
entity_id: cover.medence_terasz_redny
data:
position: >
{% if states('sensor.sun_azimuth') | float < 80 %}
0
{% elif states('sensor.sun_azimuth') | float >= 80 and
states('sensor.sun_azimuth') | float <= 170 %}
100
{% elif states('sensor.sun_azimuth') | float >= 170 and
states('sensor.sun_azimuth') | float < 220 %}
{{ (((-2 * (states('sensor.sun_azimuth') | float ) + 440) / 10) | int) * 10 }}
{% elif states('sensor.sun_azimuth') | float >= 220 and
states('sensor.sun_azimuth') | float <= 250 %}
0
{% else %}
{{ ((( 2 * (states('sensor.sun_azimuth') | float ) - 500) / 10) | int) * 10 }}
{% endif %}
mode: single