I had an automation move past a 3-hour delay in 1 second this evening. It’s been working for a couple weeks prior. HAOS 2021.12.9.
Sorry to hijack this thread (I know this one is about the next step not running). In my case, the next step runs, but after only 1 second, rather than waiting 3 hours as expected. The system was not restarted during that time.
alias: Front of house evenings
description: ''
trigger:
- platform: sun
event: sunset
offset: '0'
condition: []
action:
- scene: scene.front_of_house_on
- delay:
hours: 3
minutes: 0
seconds: 0
milliseconds: 0
- scene: scene.front_of_house_off
mode: single
Here’s the trace
{
"trace": {
"last_step": "action/1",
"run_id": "ddd0b9a55e27baf363e5c6f59ade8925",
"state": "running",
"script_execution": null,
"timestamp": {
"start": "2022-02-03T01:24:01.243921+00:00",
"finish": null
},
"domain": "automation",
"item_id": "1642215159370",
"trigger": "sunset",
"trace": {
"trigger/0": [
{
"path": "trigger/0",
"timestamp": "2022-02-03T01:24:01.244090+00:00",
"changed_variables": {
"this": {
"entity_id": "automation.front_of_house_on_evenings",
"state": "on",
"attributes": {
"last_triggered": "2022-02-02T01:23:04.361797+00:00",
"mode": "single",
"current": 0,
"id": "1642215159370",
"friendly_name": "Front of house evenings"
},
"last_changed": "2022-02-02T19:02:19.967001+00:00",
"last_updated": "2022-02-02T19:02:19.967001+00:00",
"context": {
"id": "e226c0b04619032cb28086239fea502b",
"parent_id": null,
"user_id": null
}
},
"trigger": {
"id": "0",
"idx": "0",
"platform": "sun",
"event": "sunset",
"offset": {
"__type": "<class 'datetime.timedelta'>",
"total_seconds": 0
},
"description": "sunset"
}
}
}
],
"action/0": [
{
"path": "action/0",
"timestamp": "2022-02-03T01:24:01.245913+00:00",
"changed_variables": {
"context": {
"id": "c8707539441570e4874511135f62fbfa",
"parent_id": null,
"user_id": null
}
},
"result": {
"scene": "scene.front_of_house_on"
}
}
],
"action/1": [
{
"path": "action/1",
"timestamp": "2022-02-03T01:24:01.322538+00:00",
"result": {
"delay": 10800,
"done": false
}
}
]
},
"config": {
"id": "1642215159370",
"alias": "Front of house evenings",
"description": "",
"trigger": [
{
"platform": "sun",
"event": "sunset",
"offset": "0"
}
],
"condition": [],
"action": [
{
"scene": "scene.front_of_house_on"
},
{
"delay": {
"hours": 3,
"minutes": 0,
"seconds": 0,
"milliseconds": 0
}
},
{
"scene": "scene.front_of_house_off"
}
],
"mode": "single"
},
"blueprint_inputs": null,
"context": {
"id": "c8707539441570e4874511135f62fbfa",
"parent_id": null,
"user_id": null
}
},
"logbookEntries": [
{
"name": "Front of house evenings",
"message": "has been triggered by sunset",
"source": "sunset",
"entity_id": "automation.front_of_house_on_evenings",
"context_id": "c8707539441570e4874511135f62fbfa",
"when": "2022-02-03T01:24:01.244458+00:00",
"domain": "automation"
},
{
"when": "2022-02-03T01:24:01.318991+00:00",
"name": "Front Door light",
"state": "on",
"entity_id": "switch.in_wall_smart_switch",
"context_entity_id": "automation.front_of_house_on_evenings",
"context_entity_id_name": "Front of house evenings",
"context_event_type": "automation_triggered",
"context_domain": "automation",
"context_name": "Front of house evenings",
"message": "turned on"
},
{
"when": "2022-02-03T01:24:02.429480+00:00",
"name": "Front Door light",
"state": "off",
"entity_id": "switch.in_wall_smart_switch",
"context_entity_id": "automation.front_of_house_on_evenings",
"context_entity_id_name": "Front of house evenings",
"context_event_type": "automation_triggered",
"context_domain": "automation",
"context_name": "Front of house evenings",
"message": "turned off"
}
]
}