Ok so I think I sent the wrong trace in my previous trace post.
Here is one from this morning.
I can see the same type of error but this time it does not say what the sensor is that caused the automation to complete without choosing one of the two options.
Can someone please shed some light?
I have posted the entire trace below but here is the section I mentioned…
"path": “action/0/choose/0/conditions/1/entity_id/0”,
** “timestamp”: “2022-12-07T06:03:29.434805+00:00”,**
** “result”: {**
** “result”: false,**
** “state”: 0,**
** “wanted_state_above”: 0**
Full trace below…
{
“trace”: {
“last_step”: “action/0/choose/1/conditions/0”,
“run_id”: “c0fa7579d20b76d14e2c29e14628eb3f”,
“state”: “stopped”,
“script_execution”: “finished”,
“timestamp”: {
“start”: “2022-12-07T06:03:29.432212+00:00”,
“finish”: “2022-12-07T06:03:29.441176+00:00”
},
“domain”: “automation”,
“item_id”: “1667330095647”,
“trigger”: “state of binary_sensor.studio_motion_sensor_1_occupancy”,
“trace”: {
“trigger/0”: [
{
“path”: “trigger/0”,
“timestamp”: “2022-12-07T06:03:29.432382+00:00”,
“changed_variables”: {
“this”: {
“entity_id”: “automation.studio_lights_motion_with_id_s”,
“state”: “on”,
“attributes”: {
“last_triggered”: “2022-12-07T06:00:46.143155+00:00”,
“mode”: “single”,
“current”: 0,
“id”: “1667330095647”,
“friendly_name”: “Studio Lights Motion with ID’s”
},
“last_changed”: “2022-12-06T00:25:46.847139+00:00”,
“last_updated”: “2022-12-07T06:00:46.147643+00:00”,
“context”: {
“id”: “01GKNJR5SYDP2KCFV6TZYSEC4V”,
“parent_id”: “01GKNJR5SX8RHH10XAB4T38HH7”,
“user_id”: null
}
},
“trigger”: {
“id”: “Studio Motion Sensor On”,
“idx”: “0”,
“alias”: null,
“platform”: “state”,
“entity_id”: “binary_sensor.studio_motion_sensor_1_occupancy”,
“from_state”: {
“entity_id”: “binary_sensor.studio_motion_sensor_1_occupancy”,
“state”: “off”,
“attributes”: {
“device_class”: “motion”,
“friendly_name”: “Studio Motion Sensor 1 occupancy”
},
“last_changed”: “2022-12-07T06:02:36.446397+00:00”,
“last_updated”: “2022-12-07T06:02:36.446397+00:00”,
“context”: {
“id”: “01GKNJVHGYCNXEZPN8SZD9KHW9”,
“parent_id”: null,
“user_id”: null
}
},
“to_state”: {
“entity_id”: “binary_sensor.studio_motion_sensor_1_occupancy”,
“state”: “on”,
“attributes”: {
“device_class”: “motion”,
“friendly_name”: “Studio Motion Sensor 1 occupancy”
},
“last_changed”: “2022-12-07T06:03:29.426575+00:00”,
“last_updated”: “2022-12-07T06:03:29.426575+00:00”,
“context”: {
“id”: “01GKNJX58JWZTHHQTRWTH8N7T1”,
“parent_id”: null,
“user_id”: null
}
},
“for”: null,
“attribute”: null,
“description”: “state of binary_sensor.studio_motion_sensor_1_occupancy”
}
}
}
],
“action/0”: [
{
“path”: “action/0”,
“timestamp”: “2022-12-07T06:03:29.433998+00:00”,
“changed_variables”: {
“context”: {
“id”: “01GKNJX58RSFJNSKY5VYQTYGVM”,
“parent_id”: “01GKNJX58JWZTHHQTRWTH8N7T1”,
“user_id”: null
}
}
}
],
“action/0/choose/0”: [
{
“path”: “action/0/choose/0”,
“timestamp”: “2022-12-07T06:03:29.434197+00:00”,
“result”: {
“result”: false
}
}
],
“action/0/choose/0/conditions/0”: [
{
“path”: “action/0/choose/0/conditions/0”,
“timestamp”: “2022-12-07T06:03:29.434728+00:00”,
“result”: {
“result”: true
}
}
],
“action/0/choose/0/conditions/1”: [
{
“path”: “action/0/choose/0/conditions/1”,
“timestamp”: “2022-12-07T06:03:29.434787+00:00”,
“result”: {
“result”: false
}
}
],
“action/0/choose/0/conditions/1/entity_id/0”: [
{
“path”: “action/0/choose/0/conditions/1/entity_id/0”,
“timestamp”: “2022-12-07T06:03:29.434805+00:00”,
“result”: {
“result”: false,
“state”: 0,
“wanted_state_above”: 0
}
}
],
“action/0/choose/1”: [
{
“path”: “action/0/choose/1”,
“timestamp”: “2022-12-07T06:03:29.434872+00:00”,
“result”: {
“result”: false
}
}
],
“action/0/choose/1/conditions/0”: [
{
“path”: “action/0/choose/1/conditions/0”,
“timestamp”: “2022-12-07T06:03:29.434886+00:00”,
“result”: {
“result”: false
}
}
]
},
“config”: {
“id”: “1667330095647”,
“alias”: “Studio Lights Motion with ID’s”,
“description”: “”,
“trigger”: [
{
“platform”: “state”,
“entity_id”: [
“binary_sensor.studio_motion_sensor_1_occupancy”
],
“id”: “Studio Motion Sensor On”,
“from”: “off”,
“to”: “on”
},
{
“platform”: “state”,
“entity_id”: [
“binary_sensor.studio_motion_sensor_1_occupancy”
],
“id”: “Studio Motion Sensor Off”,
“from”: “on”,
“to”: “off”,
“for”: {
“hours”: 0,
“minutes”: 5,
“seconds”: 0
}
}
],
“condition”: [],
“action”: [
{
“choose”: [
{
“conditions”: [
{
“condition”: “trigger”,
“id”: “Studio Motion Sensor On”
},
{
“condition”: “numeric_state”,
“entity_id”: “sensor.studio_motion_sensor_1_illuminance_lux”,
“above”: 0,
“below”: 80
}
],
“sequence”: [
{
“service”: “light.turn_on”,
“data”: {
“transition”: 2,
“brightness”: 135
},
“target”: {
“entity_id”: [
“light.studio_main_lights”,
“light.studio_red_lamp”
]
}
}
]
},
{
“conditions”: [
{
“condition”: “trigger”,
“id”: “Studio Motion Sensor Off”
}
],
“sequence”: [
{
“service”: “light.turn_off”,
“data”: {},
“target”: {
“entity_id”: [
“light.studio_main_lights”,
“light.studio_red_lamp”
]
}
}
]
}
]
}
],
“mode”: “single”
},
“blueprint_inputs”: null,
“context”: {
“id”: “01GKNJX58RSFJNSKY5VYQTYGVM”,
“parent_id”: “01GKNJX58JWZTHHQTRWTH8N7T1”,
“user_id”: null
}
},
“logbookEntries”: [
{
“name”: “Studio Lights Motion with ID’s”,
“message”: “triggered by state of binary_sensor.studio_motion_sensor_1_occupancy”,
“source”: “state of binary_sensor.studio_motion_sensor_1_occupancy”,
“entity_id”: “automation.studio_lights_motion_with_id_s”,
“context_id”: “01GKNJX58RSFJNSKY5VYQTYGVM”,
“when”: 1670393009.432495,
“domain”: “automation”
}
]
}