Skip to content

Automation never triggers when using offset after dawn #155402

@namtabmai

Description

@namtabmai

The problem

I have an automation setup that I want to trigger 2 hours after dawn

When I use developer tools, the current value for now() is correct and before dawn the sensor.sun_next_dawn is also correct.

But the automation never triggers, no traces or anything. Manually triggering the automation, the actions run as expected.

When I check developers tools when the automation should have triggered, the sensor.sun_next_dawn shows the date for tomorrows dawn. Which I understand why, but makes me wonder how a positive offset is support to work with the sun_next_dawn sensor.

What version of Home Assistant Core has the issue?

core-2025.10.3

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant Container

Integration causing the issue

sun

Link to integration documentation on our website

https://www.home-assistant.io/integrations/sun/

Diagnostics information

No response

Example YAML snippet

alias: Turn off hallway lights after dawn
description: ""
triggers:
  - trigger: time
    at:
      entity_id: sensor.sun_next_dawn
      offset: "02:00"
conditions: []
actions:
  - action: light.turn_off
    metadata: {}
    data: {}
    target:
      area_id:
        - downstairs_hallway
        - upstairs_hallway
mode: single

Anything in the logs that might be useful for us?

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions