Hi, I have this automation to automate lights inside my house based on sun with time and a input select condition, but its not firing. is this because the sun reaches 4 before 07:00?
- alias: Day mode
trigger:
platform: numeric_state
entity_id: sun.sun
value_template: '{{ state.attributes.elevation }}'
above: 4
condition:
condition: and
conditions:
- condition: state
entity_id: input_select.house_mode
state: 'Morgen'
- condition: time
after: '07:00:00'
before: '13:59:59'
action:
- service: scene.turn_on
entity_id: scene.dag
- service: input_select.select_option
entity_id: input_select.house_mode
data:
option: Dag
Yes, according to your automation the trigger will fire once when the sun goes from below 4 to above it. If the condition is not met at that time it will not continue with the automation.
When the sun goes from say, 4 to 5 it will not fire again.
I just realised I have a similar automation, here is an (untested) example.
Basically you need the automation to trigger twice; once at 07:00 (or slightly after) and once when the sun elevation goes above 4. Then in the condition block, check that all conditions have been met (elevtion >4, after 7 etc.)
Ahh, I see! Thanks for getting back to me I was about to make a second automation… I didn’t realize one could trigger more than once. I think I have more redundancy than I need in my configuration