Sorry, had to go into work yesterday so trigger was to early for me to get a trace. Here is the one from this morning:
{
"trace": {
"last_step": "condition/1",
"run_id": "1d0e6155af1974469e59ed2295d196f9",
"state": "stopped",
"script_execution": "failed_conditions",
"timestamp": {
"start": "2022-10-19T06:19:07.715226+00:00",
"finish": "2022-10-19T06:19:07.716462+00:00"
},
"domain": "automation",
"item_id": "1665837658979",
"trigger": "state of binary_sensor.hall_tri_sensor_motion",
"trace": {
"trigger/0": [
{
"path": "trigger/0",
"timestamp": "2022-10-19T06:19:07.715381+00:00",
"changed_variables": {
"this": {
"entity_id": "automation.turn_on_hall_and_small_lounge_lamps_morning",
"state": "on",
"attributes": {
"last_triggered": null,
"mode": "single",
"current": 0,
"id": "1665837658979",
"friendly_name": "Turn on Hall and Small Lounge Lamps Morning"
},
"last_changed": "2022-10-17T10:24:36.688035+00:00",
"last_updated": "2022-10-17T10:24:36.688035+00:00",
"context": {
"id": "01GFJQJMAGE84WKKF8HHHNBAFN",
"parent_id": null,
"user_id": null
}
},
"trigger": {
"id": "0",
"idx": "0",
"alias": null,
"platform": "device",
"entity_id": "binary_sensor.hall_tri_sensor_motion",
"from_state": {
"entity_id": "binary_sensor.hall_tri_sensor_motion",
"state": "off",
"attributes": {
"device_class": "motion",
"friendly_name": "Hall Tri-Sensor Motion"
},
"last_changed": "2022-10-19T06:12:37.689910+00:00",
"last_updated": "2022-10-19T06:12:37.689910+00:00",
"context": {
"id": "01GFQDYNNSZSS15D1WH66XM1BN",
"parent_id": null,
"user_id": null
}
},
"to_state": {
"entity_id": "binary_sensor.hall_tri_sensor_motion",
"state": "on",
"attributes": {
"device_class": "motion",
"friendly_name": "Hall Tri-Sensor Motion"
},
"last_changed": "2022-10-19T06:19:07.713386+00:00",
"last_updated": "2022-10-19T06:19:07.713386+00:00",
"context": {
"id": "01GFQEAJJ1VH8R8FRGFQZ8DKH0",
"parent_id": null,
"user_id": null
}
},
"for": null,
"attribute": null,
"description": "state of binary_sensor.hall_tri_sensor_motion"
}
}
}
],
"condition/0": [
{
"path": "condition/0",
"timestamp": "2022-10-19T06:19:07.715466+00:00",
"result": {
"after": {
"__type": "<class 'datetime.time'>",
"isoformat": "06:30:00"
},
"now_time": {
"__type": "<class 'datetime.time'>",
"isoformat": "07:19:07.715531"
},
"before": {
"__type": "<class 'datetime.time'>",
"isoformat": "08:30:00"
},
"result": true
}
}
],
"condition/1": [
{
"path": "condition/1",
"timestamp": "2022-10-19T06:19:07.715660+00:00",
"result": {
"wanted_time_before": "2022-10-19T05:11:18.984804+00:00",
"result": false
}
}
]
},
"config": {
"id": "1665837658979",
"alias": "Turn on Hall and Small Lounge Lamps Morning",
"description": "",
"trigger": [
{
"type": "motion",
"platform": "device",
"device_id": "3fbe12760ae4a09f3e1b3ee03e85daf0",
"entity_id": "binary_sensor.hall_tri_sensor_motion",
"domain": "binary_sensor"
}
],
"condition": [
{
"condition": "time",
"after": "06:30:00",
"before": "08:30:00"
},
{
"condition": "sun",
"before": "sunrise",
"before_offset": "-01:30:00",
"after": "sunrise",
"after_offset": "00:30:00"
}
],
"action": [
{
"service": "light.turn_on",
"data": {},
"target": {
"device_id": [
"5ff8ecb282bada3a7b4bcc92b9388979",
"4a697147058334065b65ef5e646bec9d",
"bd74dff7c74670aacc9834b91191aeb0"
]
}
}
],
"mode": "single"
},
"blueprint_inputs": null,
"context": {
"id": "01GFQEAJJ3N0Y8Z2NJC7M3FJQF",
"parent_id": "01GFQEAJJ1VH8R8FRGFQZ8DKH0",
"user_id": null
}
},
"logbookEntries": []
}