I tried this but it failed to run this morning.
This is the trace:
{
"trace": {
"last_step": "condition/0/entity_id/0",
"run_id": "0197282ed3a29791c0258e7b1b4163e6",
"state": "stopped",
"script_execution": "failed_conditions",
"timestamp": {
"start": "2023-12-16T07:54:38.505555+00:00",
"finish": "2023-12-16T07:54:38.506270+00:00"
},
"domain": "automation",
"item_id": "open_blinds",
"trigger": "numeric state of sensor.master_bedroom_motion_sensor_illuminance",
"trace": {
"trigger/0": [
{
"path": "trigger/0",
"timestamp": "2023-12-16T07:54:38.505717+00:00",
"changed_variables": {
"this": {
"entity_id": "automation.open_blinds",
"state": "on",
"attributes": {
"id": "open_blinds",
"last_triggered": "2023-12-15T08:13:54.034549+00:00",
"mode": "single",
"current": 0,
"friendly_name": "Open Blinds"
},
"last_changed": "2023-12-15T14:16:09.105433+00:00",
"last_updated": "2023-12-15T14:16:09.105433+00:00",
"context": {
"id": "01HHPXBB4H405K5CFQ5H2T2DHF",
"parent_id": null,
"user_id": null
}
},
"trigger": {
"id": "0",
"idx": "0",
"alias": null,
"platform": "numeric_state",
"entity_id": "sensor.master_bedroom_motion_sensor_illuminance",
"below": null,
"above": 7,
"from_state": {
"entity_id": "sensor.master_bedroom_motion_sensor_illuminance",
"state": "5",
"attributes": {
"state_class": "measurement",
"light_level": 7666,
"unit_of_measurement": "lx",
"device_class": "illuminance",
"friendly_name": "Master Bedroom Motion Sensor Illuminance"
},
"last_changed": "2023-12-16T07:49:44.033186+00:00",
"last_updated": "2023-12-16T07:49:44.033186+00:00",
"context": {
"id": "01HHRSMGF1W8XYYJVM3SPTYCVV",
"parent_id": null,
"user_id": null
}
},
"to_state": {
"entity_id": "sensor.master_bedroom_motion_sensor_illuminance",
"state": "11",
"attributes": {
"state_class": "measurement",
"light_level": 10676,
"unit_of_measurement": "lx",
"device_class": "illuminance",
"friendly_name": "Master Bedroom Motion Sensor Illuminance"
},
"last_changed": "2023-12-16T07:54:38.455719+00:00",
"last_updated": "2023-12-16T07:54:38.455719+00:00",
"context": {
"id": "01HHRSXFZQTBECFSDGNC3YRQCP",
"parent_id": null,
"user_id": null
}
},
"for": null,
"description": "numeric state of sensor.master_bedroom_motion_sensor_illuminance"
}
}
}
],
"condition/0": [
{
"path": "condition/0",
"timestamp": "2023-12-16T07:54:38.505861+00:00",
"result": {
"result": false
}
}
],
"condition/0/entity_id/0": [
{
"path": "condition/0/entity_id/0",
"timestamp": "2023-12-16T07:54:38.506017+00:00",
"result": {
"result": false,
"state": "below_horizon",
"wanted_state": "above_horizon"
}
}
]
},
"config": {
"alias": "Open Blinds",
"id": "open_blinds",
"mode": "single",
"trigger": [
{
"platform": "numeric_state",
"entity_id": "sensor.master_bedroom_motion_sensor_illuminance",
"above": 7
},
{
"platform": "sun",
"event": "sunrise"
}
],
"condition": [
{
"condition": "state",
"entity_id": "sun.sun",
"state": "above_horizon"
},
{
"condition": "numeric_state",
"entity_id": "sensor.master_bedroom_motion_sensor_illuminance",
"above": 7
}
],
"action": [
{
"service": "script.open_downstairs_blinds"
},
{
"service": "script.open_office_blinds"
}
]
},
"blueprint_inputs": null,
"context": {
"id": "01HHRSXG197A33ED2ZBCGX4P3V",
"parent_id": "01HHRSXFZQTBECFSDGNC3YRQCP",
"user_id": null
}
},
"logbookEntries": []
}