I’m not an expert at reading traces, but trigger platform null also suggests to me the automation was not run through a trigger, but started externally. My guess would be it was run as a script. That would explain the conditions not being evaluated, just need to figure now what called the automation.
{
"trace": {
"last_step": "action/0",
"run_id": "57273de4703e7353c66b775f3e84484d",
"state": "stopped",
"script_execution": "finished",
"timestamp": {
"start": "2023-11-16T13:29:15.399052+00:00",
"finish": "2023-11-16T13:29:16.315078+00:00"
},
"domain": "automation",
"item_id": "1699288143850",
"trigger": null,
"trace": {
"trigger": [
{
"path": "trigger",
"timestamp": "2023-11-16T13:29:15.399135+00:00",
"changed_variables": {
"this": {
"entity_id": "automation.licht_einschalten_sonnenstand",
"state": "on",
"attributes": {
"id": "1699288143850",
"last_triggered": "2023-11-16T06:47:58.037143+00:00",
"mode": "restart",
"current": 0,
"friendly_name": "Licht Haustuer einschalten abends"
},
"last_changed": "2023-11-16T13:28:46.922507+00:00",
"last_updated": "2023-11-16T13:28:46.922507+00:00",
"context": {
"id": "01HFC53RJA6TBPVPFXTMR88HFS",
"parent_id": null,
"user_id": null
}
},
"trigger": {
"platform": null
}
}
}
],
"action/0": [
{
"path": "action/0",
"timestamp": "2023-11-16T13:29:15.399576+00:00",
"changed_variables": {
"context": {
"id": "01HFC54MC6ZAG8Y4GEDGFSYD0Z",
"parent_id": "01HFC54MBZ8RKHTA6HJKFNJT8H",
"user_id": null
}
}
}
]
},
"config": {
"id": "1699288143850",
"alias": "Licht Haustuer einschalten abends",
"description": "",
"trigger": [
{
"platform": "numeric_state",
"entity_id": [
"sun.sun"
],
"attribute": "elevation",
"below": -5
}
],
"condition": [
{
"condition": "and",
"conditions": [
{
"condition": "time",
"after": "16:00:00",
"before": "21:00:00"
},
{
"condition": "state",
"entity_id": "automation.lichtautomatik_ein_aus",
"state": "on"
}
]
}
],
"action": [
{
"type": "turn_on",
"device_id": "5f453e2828e0ce8b123600bf4e0e7c63",
"entity_id": "4f51c00d849e4dde586d7604597c20d0",
"domain": "switch"
}
],
"mode": "restart"
},
"blueprint_inputs": null,
"context": {
"id": "01HFC54MC6ZAG8Y4GEDGFSYD0Z",
"parent_id": "01HFC54MBZ8RKHTA6HJKFNJT8H",
"user_id": null
}
},
"logbookEntries": [
{
"name": "Licht Haustuer einschalten abends",
"message": "triggered",
"source": null,
"entity_id": "automation.licht_einschalten_sonnenstand",
"context_id": "01HFC54MC6ZAG8Y4GEDGFSYD0Z",
"when": 1700141355.399261,
"domain": "automation"
},
{
"when": 1700141356.307154,
"state": "on",
"entity_id": "switch.aussenlicht",
"context_event_type": "automation_triggered",
"context_domain": "automation",
"context_name": "Licht Haustuer einschalten abends",
"context_message": "triggered",
"context_entity_id": "automation.licht_einschalten_sonnenstand"
}
]
}