I have an automation that closes my roller shades when the sun.azimuth is greater than 180, with an additional condition based on a lux sensor value (i.e. is it really bright enough outside to bother closing the shades?).
This automation works great. However, I was expecting it to re-trigger every time the sun.azimuth state changed. With the idea that it might be cloudy when the sun is at 180 but, if the sun comes out later in the afternoon (azimuth is now at 193 or something) it should lower the shades. But it seems to only trigger once, when the azimuth goes above 180.
I have looked at other similar automations and it seems like mine should work as I am expecting it to. But I am now wondering if there is something unique about state changes for sun.azimuth.
Relevant config:
alias: Blinds Down If Afternoon Sun
description: ""
trigger:
- platform: numeric_state
entity_id:
- sun.sun
attribute: azimuth
above: 180
condition:
- condition: numeric_state
entity_id: sensor.multisensor_illuminance
above: 250
- condition: numeric_state
entity_id: sun.sun
attribute: elevation
above: 1
action:
- device_id: e1e7260d02c0a71343c2d5769c8f8180
domain: cover
entity_id: cover.family_room_shades
type: close
- device_id: fd1f05469bc81d0be26808c400cd4335
domain: cover
entity_id: cover.dining_bay_shades
type: close
- device_id: 260854b654e16207a56eb57c52987542
domain: cover
entity_id: cover.kitchen_west_shade
type: close
mode: single