I didn’t realise. Thanks.
Correct trace:
{
"trace": {
"last_step": "action/1",
"run_id": "c1b14e824df48da4244381de79761d4c",
"state": "stopped",
"script_execution": "finished",
"timestamp": {
"start": "2023-12-15T08:13:54.033907+00:00",
"finish": "2023-12-15T08:14:01.399039+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-15T08:13:54.034034+00:00",
"changed_variables": {
"this": {
"entity_id": "automation.open_blinds",
"state": "on",
"attributes": {
"id": "open_blinds",
"last_triggered": "2023-12-14T08:16:43.542078+00:00",
"mode": "single",
"current": 0,
"friendly_name": "Open Blinds"
},
"last_changed": "2023-12-14T12:02:23.280461+00:00",
"last_updated": "2023-12-14T12:02:23.280461+00:00",
"context": {
"id": "01HHM39PDGSM65GP9CQKSC3ESR",
"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": 7413,
"unit_of_measurement": "lx",
"device_class": "illuminance",
"friendly_name": "Master Bedroom Motion Sensor Illuminance"
},
"last_changed": "2023-12-15T08:08:59.435879+00:00",
"last_updated": "2023-12-15T08:08:59.435879+00:00",
"context": {
"id": "01HHP8B1SBX6VENEWGNVJMQ7YY",
"parent_id": null,
"user_id": null
}
},
"to_state": {
"entity_id": "sensor.master_bedroom_motion_sensor_illuminance",
"state": "13",
"attributes": {
"state_class": "measurement",
"light_level": 11392,
"unit_of_measurement": "lx",
"device_class": "illuminance",
"friendly_name": "Master Bedroom Motion Sensor Illuminance"
},
"last_changed": "2023-12-15T08:13:54.026255+00:00",
"last_updated": "2023-12-15T08:13:54.026255+00:00",
"context": {
"id": "01HHP8M1FAMHFW0Z1GVCW5Q1XN",
"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-15T08:13:54.034123+00:00",
"result": {
"result": true
}
}
],
"condition/0/entity_id/0": [
{
"path": "condition/0/entity_id/0",
"timestamp": "2023-12-15T08:13:54.034201+00:00",
"result": {
"result": true,
"state": true,
"wanted_state": true
}
}
],
"action/0": [
{
"path": "action/0",
"timestamp": "2023-12-15T08:13:54.040261+00:00",
"child_id": {
"domain": "script",
"item_id": "open_downstairs_blinds",
"run_id": "55cdae57f1c897163e672d2eae4a68c8"
},
"changed_variables": {
"context": {
"id": "01HHP8M1FHP8PMFQHX4PD6ZYXR",
"parent_id": "01HHP8M1FAMHFW0Z1GVCW5Q1XN",
"user_id": null
}
},
"result": {
"params": {
"domain": "script",
"service": "open_downstairs_blinds",
"service_data": {},
"target": {}
},
"running_script": true
}
}
],
"action/1": [
{
"path": "action/1",
"timestamp": "2023-12-15T08:13:59.767166+00:00",
"child_id": {
"domain": "script",
"item_id": "open_office_blinds",
"run_id": "f09384c9194552e5cceeb0f3e1fc7775"
},
"result": {
"params": {
"domain": "script",
"service": "open_office_blinds",
"service_data": {},
"target": {}
},
"running_script": true
}
}
]
},
"config": {
"alias": "Open Blinds",
"id": "open_blinds",
"mode": "single",
"trigger": {
"platform": "numeric_state",
"entity_id": "sensor.master_bedroom_motion_sensor_illuminance",
"above": 7
},
"condition": [
{
"condition": "state",
"entity_id": "sun.sun",
"attribute": "rising",
"state": true
}
],
"action": [
{
"service": "script.open_downstairs_blinds"
},
{
"service": "script.open_office_blinds"
}
]
},
"blueprint_inputs": null,
"context": {
"id": "01HHP8M1FHP8PMFQHX4PD6ZYXR",
"parent_id": "01HHP8M1FAMHFW0Z1GVCW5Q1XN",
"user_id": null
}
},
"logbookEntries": [
{
"name": "Open Blinds",
"message": "triggered by numeric state of sensor.master_bedroom_motion_sensor_illuminance",
"source": "numeric state of sensor.master_bedroom_motion_sensor_illuminance",
"entity_id": "automation.open_blinds",
"context_id": "01HHP8M1FHP8PMFQHX4PD6ZYXR",
"when": 1702628034.034492,
"domain": "automation"
},
{
"name": "Open Downstairs Blinds",
"message": "started",
"entity_id": "script.open_downstairs_blinds",
"context_id": "01HHP8M1FHP8PMFQHX4PD6ZYXR",
"when": 1702628034.040885,
"domain": "script",
"context_event_type": "automation_triggered",
"context_domain": "automation",
"context_name": "Open Blinds",
"context_message": "triggered by numeric state of sensor.master_bedroom_motion_sensor_illuminance",
"context_source": "numeric state of sensor.master_bedroom_motion_sensor_illuminance",
"context_entity_id": "automation.open_blinds"
},
{
"when": 1702628034.041246,
"state": "on",
"entity_id": "script.open_downstairs_blinds",
"context_event_type": "automation_triggered",
"context_domain": "automation",
"context_name": "Open Blinds",
"context_message": "triggered by numeric state of sensor.master_bedroom_motion_sensor_illuminance",
"context_source": "numeric state of sensor.master_bedroom_motion_sensor_illuminance",
"context_entity_id": "automation.open_blinds"
},
{
"when": 1702628035.038319,
"state": "off",
"entity_id": "light.xmas_tree_lights",
"context_event_type": "automation_triggered",
"context_domain": "automation",
"context_name": "Open Blinds",
"context_message": "triggered by numeric state of sensor.master_bedroom_motion_sensor_illuminance",
"context_source": "numeric state of sensor.master_bedroom_motion_sensor_illuminance",
"context_entity_id": "automation.open_blinds"
},
{
"when": 1702628035.063702,
"state": "off",
"entity_id": "light.living_room_lamp",
"context_event_type": "automation_triggered",
"context_domain": "automation",
"context_name": "Open Blinds",
"context_message": "triggered by numeric state of sensor.master_bedroom_motion_sensor_illuminance",
"context_source": "numeric state of sensor.master_bedroom_motion_sensor_illuminance",
"context_entity_id": "automation.open_blinds"
},
{
"when": 1702628035.070245,
"state": "off",
"entity_id": "light.cabinet",
"icon": "mdi:lightbulb-group",
"context_event_type": "automation_triggered",
"context_domain": "automation",
"context_name": "Open Blinds",
"context_message": "triggered by numeric state of sensor.master_bedroom_motion_sensor_illuminance",
"context_source": "numeric state of sensor.master_bedroom_motion_sensor_illuminance",
"context_entity_id": "automation.open_blinds"
},
{
"when": 1702628035.073661,
"state": "off",
"entity_id": "light.living_room_lights_all",
"icon": "mdi:lightbulb-group",
"context_event_type": "automation_triggered",
"context_domain": "automation",
"context_name": "Open Blinds",
"context_message": "triggered by numeric state of sensor.master_bedroom_motion_sensor_illuminance",
"context_source": "numeric state of sensor.master_bedroom_motion_sensor_illuminance",
"context_entity_id": "automation.open_blinds"
},
{
"when": 1702628035.074952,
"state": "\"0\"",
"entity_id": "sensor.lights_on_count",
"context_event_type": "automation_triggered",
"context_domain": "automation",
"context_name": "Open Blinds",
"context_message": "triggered by numeric state of sensor.master_bedroom_motion_sensor_illuminance",
"context_source": "numeric state of sensor.master_bedroom_motion_sensor_illuminance",
"context_entity_id": "automation.open_blinds"
},
{
"when": 1702628036.045761,
"state": "on",
"entity_id": "light.xmas_tree_lights",
"context_event_type": "automation_triggered",
"context_domain": "automation",
"context_name": "Open Blinds",
"context_message": "triggered by numeric state of sensor.master_bedroom_motion_sensor_illuminance",
"context_source": "numeric state of sensor.master_bedroom_motion_sensor_illuminance",
"context_entity_id": "automation.open_blinds"
},
{
"when": 1702628036.070366,
"state": "on",
"entity_id": "light.living_room_lights_all",
"icon": "mdi:lightbulb-group",
"context_event_type": "automation_triggered",
"context_domain": "automation",
"context_name": "Open Blinds",
"context_message": "triggered by numeric state of sensor.master_bedroom_motion_sensor_illuminance",
"context_source": "numeric state of sensor.master_bedroom_motion_sensor_illuminance",
"context_entity_id": "automation.open_blinds"
},
{
"when": 1702628039.049143,
"state": "72.0",
"entity_id": "number.kitchen_blinds_number",
"context_event_type": "automation_triggered",
"context_domain": "automation",
"context_name": "Open Blinds",
"context_message": "triggered by numeric state of sensor.master_bedroom_motion_sensor_illuminance",
"context_source": "numeric state of sensor.master_bedroom_motion_sensor_illuminance",
"context_entity_id": "automation.open_blinds"
},
{
"when": 1702628039.749335,
"state": "58.0",
"entity_id": "number.living_room_blinds_number",
"icon": "phu:vert-blind-close",
"context_event_type": "automation_triggered",
"context_domain": "automation",
"context_name": "Open Blinds",
"context_message": "triggered by numeric state of sensor.master_bedroom_motion_sensor_illuminance",
"context_source": "numeric state of sensor.master_bedroom_motion_sensor_illuminance",
"context_entity_id": "automation.open_blinds"
},
{
"name": "Open Office Blinds",
"message": "started",
"entity_id": "script.open_office_blinds",
"context_id": "01HHP8M1FHP8PMFQHX4PD6ZYXR",
"when": 1702628039.767829,
"domain": "script",
"context_event_type": "automation_triggered",
"context_domain": "automation",
"context_name": "Open Blinds",
"context_message": "triggered by numeric state of sensor.master_bedroom_motion_sensor_illuminance",
"context_source": "numeric state of sensor.master_bedroom_motion_sensor_illuminance",
"context_entity_id": "automation.open_blinds"
},
{
"when": 1702628039.768183,
"state": "on",
"entity_id": "script.open_office_blinds",
"context_event_type": "automation_triggered",
"context_domain": "automation",
"context_name": "Open Blinds",
"context_message": "triggered by numeric state of sensor.master_bedroom_motion_sensor_illuminance",
"context_source": "numeric state of sensor.master_bedroom_motion_sensor_illuminance",
"context_entity_id": "automation.open_blinds"
},
{
"when": 1702628041.380492,
"state": "opening",
"entity_id": "cover.office_blinds",
"context_event_type": "automation_triggered",
"context_domain": "automation",
"context_name": "Open Blinds",
"context_message": "triggered by numeric state of sensor.master_bedroom_motion_sensor_illuminance",
"context_source": "numeric state of sensor.master_bedroom_motion_sensor_illuminance",
"context_entity_id": "automation.open_blinds"
},
{
"when": 1702628041.38253,
"state": "open",
"entity_id": "cover.office_blinds_simple",
"context_event_type": "automation_triggered",
"context_domain": "automation",
"context_name": "Open Blinds",
"context_message": "triggered by numeric state of sensor.master_bedroom_motion_sensor_illuminance",
"context_source": "numeric state of sensor.master_bedroom_motion_sensor_illuminance",
"context_entity_id": "automation.open_blinds"
},
{
"when": 1702628041.394475,
"state": "off",
"entity_id": "script.open_office_blinds",
"context_event_type": "automation_triggered",
"context_domain": "automation",
"context_name": "Open Blinds",
"context_message": "triggered by numeric state of sensor.master_bedroom_motion_sensor_illuminance",
"context_source": "numeric state of sensor.master_bedroom_motion_sensor_illuminance",
"context_entity_id": "automation.open_blinds"
},
{
"when": 1702628042.236691,
"state": "59.0",
"entity_id": "number.living_room_blinds_number",
"icon": "phu:vert-blind-close",
"context_event_type": "automation_triggered",
"context_domain": "automation",
"context_name": "Open Blinds",
"context_message": "triggered by numeric state of sensor.master_bedroom_motion_sensor_illuminance",
"context_source": "numeric state of sensor.master_bedroom_motion_sensor_illuminance",
"context_entity_id": "automation.open_blinds"
},
{
"when": 1702628043.292958,
"state": "73.0",
"entity_id": "number.kitchen_blinds_number",
"context_event_type": "automation_triggered",
"context_domain": "automation",
"context_name": "Open Blinds",
"context_message": "triggered by numeric state of sensor.master_bedroom_motion_sensor_illuminance",
"context_source": "numeric state of sensor.master_bedroom_motion_sensor_illuminance",
"context_entity_id": "automation.open_blinds"
}
]
}