A few of my blinds decided 10PM was a good time to run the sunrise automation which has a temperature requirement, and time offset after sunrise. The temperature did fall and rise above 5, but time?! In the trace this morning I see 15 minutes is requested, but 15 hours shows in the automation. What !?
Show the YAML.
I don't think you understand how the triggers work. If either trigger fires, the automations then next evaluate the conditions. The time condition you have there will be true for any part of the day later than 15 minutes after sunrise.
As 10PM is indeed later in the day than sunrise, the condition is true.
If you're expecting something else to happen, you need a different set of conditions.
This has worked without fault for years, temps have risen and fallen, never triggered like this before. The automation had already run in the morning......
alias: office blind sunrise
description: ""
triggers:
- trigger: sun
event: sunrise
offset: "00:15"
- type: temperature
device_id: 18aa9e5f82a5b03f7fa86fb4d35c0d35
entity_id: 8d18cce688d543e02a9ad7b64ebf4f8f
domain: sensor
trigger: device
above: 5
conditions:
- type: is_temperature
condition: device
device_id: 18aa9e5f82a5b03f7fa86fb4d35c0d35
entity_id: 8d18cce688d543e02a9ad7b64ebf4f8f
domain: sensor
above: 5
- condition: sun
after: sunrise
after_offset:
hours: 1
minutes: 0
seconds: 0
actions:
- device_id: d882ba5294e8ce498e8d1766a283973e
domain: cover
entity_id: 0d335f9cbe6d0fea7e3260892e64333b
type: open
mode: single
I can imagine suggestions for "once a day" condition should be added
But I'm keen on why this is the first instance of this happening?
Because as karwosts said your conditions allow it to happen. Please review the operation of the sun condition here: Conditions - Home Assistant
You will need two seperate sun conditions to define a time window from sunrise to sunrise + 1hr.
conditions:
- condition: sun
after: sunrise
- condition: sun
before: sunrise
before_offset: "+01:00:00"

