Add time-based offsets to the new sun event triggers #1430
BackgroundIn 2026.7 we introduced a set of modern, class-based triggers for the See #1394 for that discussion. When we designed them, we deliberately left out time-based offsets, for two reasons:
Since release, community feedback has been consistent and clear that time-based offsets are still wanted, for reasons neither the new event triggers nor the elevation triggers address:
Crucially, unlike state-based triggers such as ProposalAdd an optional time-based offset to the six precomputable sun event triggers ( Two options are added to each trigger:
Internally, a Example: trigger: sun.sunrise
options:
offset:
hours: 1
offset_type: beforeThe elevation-based triggers ( Consequences
Alternatives
|
Replies: 3 comments 4 replies
|
Not sure of it makes any sense, but I was thinking about an event helper which is pointed at a datetime entity to generate an event at that time or at an offset time. An event helper would allow users to work more easily with multiple events based on a single point in time. Having an offset build into all triggers is probably better but this is (to my knowledge) not yet applied consistently. |
|
Discussed in Core meeting this morning (28th July) - we have agreed to approve this |
|
Core PR that implements the proposal: |
Discussed in Core meeting this morning (28th July) - we have agreed to approve this