Seems like I’ve managed to catch traces both before and after the automation broke down.
First one: All good
Summary
{
"trace": {
"last_step": "action/2/then/0",
"run_id": "191f8aff4f150c9aa9cdc4e8e8ee0700",
"state": "stopped",
"script_execution": "finished",
"timestamp": {
"start": "2024-01-17T22:02:33.800663+00:00",
"finish": "2024-01-17T22:02:43.818101+00:00"
},
"domain": "automation",
"item_id": "1700583768333",
"trigger": "numeric state of sensor.available_power_this_hour",
"trace": {
"trigger/1": [
{
"path": "trigger/1",
"timestamp": "2024-01-17T22:02:33.800914+00:00",
"changed_variables": {
"this": {
"entity_id": "automation.home_power_overconsumption",
"state": "on",
"attributes": {
"id": "1700583768333",
"last_triggered": "2024-01-17T22:02:22.161340+00:00",
"mode": "restart",
"current": 0,
"friendly_name": "Power - Overconsumption"
},
"last_changed": "2024-01-17T13:36:27.046722+00:00",
"last_updated": "2024-01-17T22:02:32.234041+00:00",
"context": {
"id": "01HMCQ51DA0D80AQ8EPRPS52BQ",
"parent_id": null,
"user_id": null
}
},
"trigger": {
"id": "1",
"idx": "1",
"alias": null,
"platform": "numeric_state",
"entity_id": "sensor.available_power_this_hour",
"below": 1,
"above": null,
"from_state": {
"entity_id": "sensor.available_power_this_hour",
"state": "1155.2812",
"attributes": {
"grid_threshold_level": 5,
"unit_of_measurement": "W",
"icon": "mdi:lightning-bolt",
"friendly_name": "Available power this hour"
},
"last_changed": "2024-01-17T22:02:32.165295+00:00",
"last_updated": "2024-01-17T22:02:32.165295+00:00",
"context": {
"id": "01HMCQ51B51M4RFMCGRKV2G7HK",
"parent_id": null,
"user_id": null
}
},
"to_state": {
"entity_id": "sensor.available_power_this_hour",
"state": "-352.8873",
"attributes": {
"grid_threshold_level": 5,
"unit_of_measurement": "W",
"icon": "mdi:lightning-bolt",
"friendly_name": "Available power this hour"
},
"last_changed": "2024-01-17T22:02:33.796771+00:00",
"last_updated": "2024-01-17T22:02:33.796771+00:00",
"context": {
"id": "01HMCQ52Y4N52GSX23NJGDYDPJ",
"parent_id": null,
"user_id": null
}
},
"for": null,
"description": "numeric state of sensor.available_power_this_hour"
}
}
}
],
"action/0": [
{
"path": "action/0",
"timestamp": "2024-01-17T22:02:33.806536+00:00",
"changed_variables": {
"context": {
"id": "01HMCQ52Y8F51B04JD0DS47Q4G",
"parent_id": "01HMCQ52Y4N52GSX23NJGDYDPJ",
"user_id": null
}
},
"result": {
"choice": 0
}
}
],
"action/0/choose/0": [
{
"path": "action/0/choose/0",
"timestamp": "2024-01-17T22:02:33.806719+00:00",
"result": {
"result": true
}
}
],
"action/0/choose/0/conditions/0": [
{
"path": "action/0/choose/0/conditions/0",
"timestamp": "2024-01-17T22:02:33.806782+00:00",
"result": {
"result": true
}
},
{
"path": "action/0/choose/0/conditions/0",
"timestamp": "2024-01-17T22:02:33.806854+00:00",
"result": {
"result": true
}
}
],
"action/0/choose/0/conditions/0/entity_id/0": [
{
"path": "action/0/choose/0/conditions/0/entity_id/0",
"timestamp": "2024-01-17T22:02:33.806916+00:00",
"result": {
"result": true,
"state": "on",
"wanted_state": "on"
}
}
],
"action/0/choose/0/sequence/0": [
{
"path": "action/0/choose/0/sequence/0",
"timestamp": "2024-01-17T22:02:33.809110+00:00"
}
],
"action/1": [
{
"path": "action/1",
"timestamp": "2024-01-17T22:02:33.812611+00:00",
"result": {
"delay": 10,
"done": true
}
}
],
"action/2": [
{
"path": "action/2",
"timestamp": "2024-01-17T22:02:43.814073+00:00",
"result": {
"choice": "then"
}
}
],
"action/2/if": [
{
"path": "action/2/if",
"timestamp": "2024-01-17T22:02:43.814215+00:00",
"result": {
"result": true
}
}
],
"action/2/if/condition/0": [
{
"path": "action/2/if/condition/0",
"timestamp": "2024-01-17T22:02:43.814273+00:00",
"result": {
"result": true
}
}
],
"action/2/if/condition/0/entity_id/0": [
{
"path": "action/2/if/condition/0/entity_id/0",
"timestamp": "2024-01-17T22:02:43.814322+00:00",
"result": {
"result": true,
"state": -346.7368
}
}
],
"action/2/then/0": [
{
"path": "action/2/then/0",
"timestamp": "2024-01-17T22:02:43.815014+00:00",
"child_id": {
"domain": "automation",
"item_id": "1700583768333",
"run_id": "96a72f5267fc2e8422814b2e30ba8b8e"
},
"result": {
"params": {
"domain": "automation",
"service": "trigger",
"service_data": {
"skip_condition": false,
"entity_id": [
"automation.home_power_overconsumption"
]
},
"target": {
"entity_id": [
"automation.home_power_overconsumption"
]
}
},
"running_script": true
}
}
]
},
"config": {
"id": "1700583768333",
"alias": "Power - Overconsumption",
"description": "",
"trigger": [
{
"platform": "numeric_state",
"entity_id": [
"sensor.energy_used_this_hour"
],
"above": 1.99
},
{
"platform": "numeric_state",
"entity_id": [
"sensor.available_power_this_hour"
],
"below": 1
},
{
"platform": "numeric_state",
"entity_id": [
"sensor.available_power_this_hour"
],
"below": 1,
"for": {
"hours": 0,
"minutes": 1,
"seconds": 0
}
},
{
"platform": "numeric_state",
"entity_id": [
"sensor.available_power_this_hour"
],
"below": 1,
"for": {
"hours": 0,
"minutes": 10,
"seconds": 0
}
}
],
"condition": [],
"action": [
{
"choose": [
{
"conditions": [
{
"condition": "device",
"type": "is_on",
"device_id": "9b7bec08a8e423524852fefb1046d057",
"entity_id": "a44b2d8ba8e14733778e1a703c390ddd",
"domain": "switch"
}
],
"sequence": [
{
"type": "turn_off",
"device_id": "9b7bec08a8e423524852fefb1046d057",
"entity_id": "a44b2d8ba8e14733778e1a703c390ddd",
"domain": "switch"
}
]
},
{
"conditions": [
{
"condition": "state",
"entity_id": "switch.nexura_none",
"state": "on"
}
],
"sequence": [
{
"type": "turn_off",
"device_id": "dbcee93c68b85f9105452895a9e44810",
"entity_id": "601131f1f8242def6964518721537a99",
"domain": "switch"
}
]
}
],
"default": [
{
"if": [
{
"condition": "numeric_state",
"entity_id": "sensor.energy_used_this_hour",
"above": 1
}
],
"then": [
{
"service": "notify.notify",
"data": {
"message": "Power consumption too high, but out of options when it comes to turn off devices."
}
}
]
}
]
},
{
"delay": {
"hours": 0,
"minutes": 0,
"seconds": 10,
"milliseconds": 0
}
},
{
"if": [
{
"condition": "numeric_state",
"entity_id": "sensor.available_power_this_hour",
"below": 10
}
],
"then": [
{
"service": "automation.trigger",
"data": {
"skip_condition": false
},
"target": {
"entity_id": "automation.home_power_overconsumption"
}
}
]
}
],
"mode": "restart"
},
"blueprint_inputs": null,
"context": {
"id": "01HMCQ52Y8F51B04JD0DS47Q4G",
"parent_id": "01HMCQ52Y4N52GSX23NJGDYDPJ",
"user_id": null
}
},
"logbookEntries": [
{
"name": "Power - Overconsumption",
"message": "triggered by numeric state of sensor.available_power_this_hour",
"source": "numeric state of sensor.available_power_this_hour",
"entity_id": "automation.home_power_overconsumption",
"context_id": "01HMCQ52Y8F51B04JD0DS47Q4G",
"when": 1705528953.801102,
"domain": "automation"
}
]
}
Second one, not sure what happend here, seems like there was no triggers and no actions taken either
Summary
{
"trace": {
"last_step": "trigger",
"run_id": "96a72f5267fc2e8422814b2e30ba8b8e",
"state": "stopped",
"script_execution": null,
"timestamp": {
"start": "2024-01-17T22:02:43.816188+00:00",
"finish": "2024-01-17T22:02:43.817288+00:00"
},
"domain": "automation",
"item_id": "1700583768333",
"trigger": null,
"trace": {
"trigger": [
{
"path": "trigger",
"timestamp": "2024-01-17T22:02:43.816407+00:00",
"changed_variables": {
"this": {
"entity_id": "automation.home_power_overconsumption",
"state": "on",
"attributes": {
"id": "1700583768333",
"last_triggered": "2024-01-17T22:02:33.801147+00:00",
"mode": "restart",
"current": 1,
"friendly_name": "Power - Overconsumption"
},
"last_changed": "2024-01-17T13:36:27.046722+00:00",
"last_updated": "2024-01-17T22:02:33.801241+00:00",
"context": {
"id": "01HMCQ52Y8F51B04JD0DS47Q4G",
"parent_id": "01HMCQ52Y4N52GSX23NJGDYDPJ",
"user_id": null
}
},
"trigger": {
"platform": null
}
}
}
]
},
"config": {
"id": "1700583768333",
"alias": "Power - Overconsumption",
"description": "",
"trigger": [
{
"platform": "numeric_state",
"entity_id": [
"sensor.energy_used_this_hour"
],
"above": 1.99
},
{
"platform": "numeric_state",
"entity_id": [
"sensor.available_power_this_hour"
],
"below": 1
},
{
"platform": "numeric_state",
"entity_id": [
"sensor.available_power_this_hour"
],
"below": 1,
"for": {
"hours": 0,
"minutes": 1,
"seconds": 0
}
},
{
"platform": "numeric_state",
"entity_id": [
"sensor.available_power_this_hour"
],
"below": 1,
"for": {
"hours": 0,
"minutes": 10,
"seconds": 0
}
}
],
"condition": [],
"action": [
{
"choose": [
{
"conditions": [
{
"condition": "device",
"type": "is_on",
"device_id": "9b7bec08a8e423524852fefb1046d057",
"entity_id": "a44b2d8ba8e14733778e1a703c390ddd",
"domain": "switch"
}
],
"sequence": [
{
"type": "turn_off",
"device_id": "9b7bec08a8e423524852fefb1046d057",
"entity_id": "a44b2d8ba8e14733778e1a703c390ddd",
"domain": "switch"
}
]
},
{
"conditions": [
{
"condition": "state",
"entity_id": "switch.nexura_none",
"state": "on"
}
],
"sequence": [
{
"type": "turn_off",
"device_id": "dbcee93c68b85f9105452895a9e44810",
"entity_id": "601131f1f8242def6964518721537a99",
"domain": "switch"
}
]
}
],
"default": [
{
"if": [
{
"condition": "numeric_state",
"entity_id": "sensor.energy_used_this_hour",
"above": 1
}
],
"then": [
{
"service": "notify.notify",
"data": {
"message": "Power consumption too high, but out of options when it comes to turn off devices."
}
}
]
}
]
},
{
"delay": {
"hours": 0,
"minutes": 0,
"seconds": 10,
"milliseconds": 0
}
},
{
"if": [
{
"condition": "numeric_state",
"entity_id": "sensor.available_power_this_hour",
"below": 10
}
],
"then": [
{
"service": "automation.trigger",
"data": {
"skip_condition": false
},
"target": {
"entity_id": "automation.home_power_overconsumption"
}
}
]
}
],
"mode": "restart"
},
"blueprint_inputs": null,
"context": {
"id": "01HMCQ5CQ86HWEMHV0DQ2E1P95",
"parent_id": "01HMCQ52Y8F51B04JD0DS47Q4G",
"user_id": null
}
},
"logbookEntries": []
}
Third one triggered, but no actions taken
Summary
{
"trace": {
"last_step": "trigger/1",
"run_id": "0ae6f46b120482d806dccb9a110742b2",
"state": "running",
"script_execution": null,
"timestamp": {
"start": "2024-01-17T22:02:55.838517+00:00",
"finish": null
},
"domain": "automation",
"item_id": "1700583768333",
"trigger": "numeric state of sensor.available_power_this_hour",
"trace": {
"trigger/1": [
{
"path": "trigger/1",
"timestamp": "2024-01-17T22:02:55.838707+00:00",
"changed_variables": {
"this": {
"entity_id": "automation.home_power_overconsumption",
"state": "on",
"attributes": {
"id": "1700583768333",
"last_triggered": "2024-01-17T22:02:33.801147+00:00",
"mode": "restart",
"current": 1,
"friendly_name": "Power - Overconsumption"
},
"last_changed": "2024-01-17T13:36:27.046722+00:00",
"last_updated": "2024-01-17T22:02:33.801241+00:00",
"context": {
"id": "01HMCQ52Y8F51B04JD0DS47Q4G",
"parent_id": "01HMCQ52Y4N52GSX23NJGDYDPJ",
"user_id": null
}
},
"trigger": {
"id": "1",
"idx": "1",
"alias": null,
"platform": "numeric_state",
"entity_id": "sensor.available_power_this_hour",
"below": 1,
"above": null,
"from_state": {
"entity_id": "sensor.available_power_this_hour",
"state": "1590.5751",
"attributes": {
"grid_threshold_level": 5,
"unit_of_measurement": "W",
"icon": "mdi:lightning-bolt",
"friendly_name": "Available power this hour"
},
"last_changed": "2024-01-17T22:02:53.796411+00:00",
"last_updated": "2024-01-17T22:02:53.796411+00:00",
"context": {
"id": "01HMCQ5PF42PXT8MRPZKF6EBT1",
"parent_id": null,
"user_id": null
}
},
"to_state": {
"entity_id": "sensor.available_power_this_hour",
"state": "-351.6326",
"attributes": {
"grid_threshold_level": 5,
"unit_of_measurement": "W",
"icon": "mdi:lightning-bolt",
"friendly_name": "Available power this hour"
},
"last_changed": "2024-01-17T22:02:55.834342+00:00",
"last_updated": "2024-01-17T22:02:55.834342+00:00",
"context": {
"id": "01HMCQ5RETSF2SKV3R5JVJS0JF",
"parent_id": null,
"user_id": null
}
},
"for": null,
"description": "numeric state of sensor.available_power_this_hour"
}
}
}
]
},
"config": {
"id": "1700583768333",
"alias": "Power - Overconsumption",
"description": "",
"trigger": [
{
"platform": "numeric_state",
"entity_id": [
"sensor.energy_used_this_hour"
],
"above": 1.99
},
{
"platform": "numeric_state",
"entity_id": [
"sensor.available_power_this_hour"
],
"below": 1
},
{
"platform": "numeric_state",
"entity_id": [
"sensor.available_power_this_hour"
],
"below": 1,
"for": {
"hours": 0,
"minutes": 1,
"seconds": 0
}
},
{
"platform": "numeric_state",
"entity_id": [
"sensor.available_power_this_hour"
],
"below": 1,
"for": {
"hours": 0,
"minutes": 10,
"seconds": 0
}
}
],
"condition": [],
"action": [
{
"choose": [
{
"conditions": [
{
"condition": "device",
"type": "is_on",
"device_id": "9b7bec08a8e423524852fefb1046d057",
"entity_id": "a44b2d8ba8e14733778e1a703c390ddd",
"domain": "switch"
}
],
"sequence": [
{
"type": "turn_off",
"device_id": "9b7bec08a8e423524852fefb1046d057",
"entity_id": "a44b2d8ba8e14733778e1a703c390ddd",
"domain": "switch"
}
]
},
{
"conditions": [
{
"condition": "state",
"entity_id": "switch.nexura_none",
"state": "on"
}
],
"sequence": [
{
"type": "turn_off",
"device_id": "dbcee93c68b85f9105452895a9e44810",
"entity_id": "601131f1f8242def6964518721537a99",
"domain": "switch"
}
]
}
],
"default": [
{
"if": [
{
"condition": "numeric_state",
"entity_id": "sensor.energy_used_this_hour",
"above": 1
}
],
"then": [
{
"service": "notify.notify",
"data": {
"message": "Power consumption too high, but out of options when it comes to turn off devices."
}
}
]
}
]
},
{
"delay": {
"hours": 0,
"minutes": 0,
"seconds": 10,
"milliseconds": 0
}
},
{
"if": [
{
"condition": "numeric_state",
"entity_id": "sensor.available_power_this_hour",
"below": 10
}
],
"then": [
{
"service": "automation.trigger",
"data": {
"skip_condition": false
},
"target": {
"entity_id": "automation.home_power_overconsumption"
}
}
]
}
],
"mode": "restart"
},
"blueprint_inputs": null,
"context": {
"id": "01HMCQ5REYQDW2ZHEC8EG02DKQ",
"parent_id": "01HMCQ5RETSF2SKV3R5JVJS0JF",
"user_id": null
}
},
"logbookEntries": []
}
Fourth, different trigger, but still no actions taken
Summary
{
"trace": {
"last_step": "trigger/2",
"run_id": "f4e32d6b3ca69641d83f2c7970a9a7e4",
"state": "running",
"script_execution": null,
"timestamp": {
"start": "2024-01-17T22:03:55.837394+00:00",
"finish": null
},
"domain": "automation",
"item_id": "1700583768333",
"trigger": "numeric state of sensor.available_power_this_hour",
"trace": {
"trigger/2": [
{
"path": "trigger/2",
"timestamp": "2024-01-17T22:03:55.837564+00:00",
"changed_variables": {
"this": {
"entity_id": "automation.home_power_overconsumption",
"state": "on",
"attributes": {
"id": "1700583768333",
"last_triggered": "2024-01-17T22:02:33.801147+00:00",
"mode": "restart",
"current": 1,
"friendly_name": "Power - Overconsumption"
},
"last_changed": "2024-01-17T13:36:27.046722+00:00",
"last_updated": "2024-01-17T22:02:33.801241+00:00",
"context": {
"id": "01HMCQ52Y8F51B04JD0DS47Q4G",
"parent_id": "01HMCQ52Y4N52GSX23NJGDYDPJ",
"user_id": null
}
},
"trigger": {
"id": "2",
"idx": "2",
"alias": null,
"platform": "numeric_state",
"entity_id": "sensor.available_power_this_hour",
"below": 1,
"above": null,
"from_state": {
"entity_id": "sensor.available_power_this_hour",
"state": "1590.5751",
"attributes": {
"grid_threshold_level": 5,
"unit_of_measurement": "W",
"icon": "mdi:lightning-bolt",
"friendly_name": "Available power this hour"
},
"last_changed": "2024-01-17T22:02:53.796411+00:00",
"last_updated": "2024-01-17T22:02:53.796411+00:00",
"context": {
"id": "01HMCQ5PF42PXT8MRPZKF6EBT1",
"parent_id": null,
"user_id": null
}
},
"to_state": {
"entity_id": "sensor.available_power_this_hour",
"state": "-351.6326",
"attributes": {
"grid_threshold_level": 5,
"unit_of_measurement": "W",
"icon": "mdi:lightning-bolt",
"friendly_name": "Available power this hour"
},
"last_changed": "2024-01-17T22:02:55.834342+00:00",
"last_updated": "2024-01-17T22:02:55.834342+00:00",
"context": {
"id": "01HMCQ5RETSF2SKV3R5JVJS0JF",
"parent_id": null,
"user_id": null
}
},
"for": {
"__type": "<class 'datetime.timedelta'>",
"total_seconds": 60
},
"description": "numeric state of sensor.available_power_this_hour"
}
}
}
]
},
"config": {
"id": "1700583768333",
"alias": "Power - Overconsumption",
"description": "",
"trigger": [
{
"platform": "numeric_state",
"entity_id": [
"sensor.energy_used_this_hour"
],
"above": 1.99
},
{
"platform": "numeric_state",
"entity_id": [
"sensor.available_power_this_hour"
],
"below": 1
},
{
"platform": "numeric_state",
"entity_id": [
"sensor.available_power_this_hour"
],
"below": 1,
"for": {
"hours": 0,
"minutes": 1,
"seconds": 0
}
},
{
"platform": "numeric_state",
"entity_id": [
"sensor.available_power_this_hour"
],
"below": 1,
"for": {
"hours": 0,
"minutes": 10,
"seconds": 0
}
}
],
"condition": [],
"action": [
{
"choose": [
{
"conditions": [
{
"condition": "device",
"type": "is_on",
"device_id": "9b7bec08a8e423524852fefb1046d057",
"entity_id": "a44b2d8ba8e14733778e1a703c390ddd",
"domain": "switch"
}
],
"sequence": [
{
"type": "turn_off",
"device_id": "9b7bec08a8e423524852fefb1046d057",
"entity_id": "a44b2d8ba8e14733778e1a703c390ddd",
"domain": "switch"
}
]
},
{
"conditions": [
{
"condition": "state",
"entity_id": "switch.nexura_none",
"state": "on"
}
],
"sequence": [
{
"type": "turn_off",
"device_id": "dbcee93c68b85f9105452895a9e44810",
"entity_id": "601131f1f8242def6964518721537a99",
"domain": "switch"
}
]
}
],
"default": [
{
"if": [
{
"condition": "numeric_state",
"entity_id": "sensor.energy_used_this_hour",
"above": 1
}
],
"then": [
{
"service": "notify.notify",
"data": {
"message": "Power consumption too high, but out of options when it comes to turn off devices."
}
}
]
}
]
},
{
"delay": {
"hours": 0,
"minutes": 0,
"seconds": 10,
"milliseconds": 0
}
},
{
"if": [
{
"condition": "numeric_state",
"entity_id": "sensor.available_power_this_hour",
"below": 10
}
],
"then": [
{
"service": "automation.trigger",
"data": {
"skip_condition": false
},
"target": {
"entity_id": "automation.home_power_overconsumption"
}
}
]
}
],
"mode": "restart"
},
"blueprint_inputs": null,
"context": {
"id": "01HMCQ7K1XRAVJT92KJ8GYH5AF",
"parent_id": "01HMCQ5RETSF2SKV3R5JVJS0JF",
"user_id": null
}
},
"logbookEntries": []
}
I also have a fifth log, triggered 9 minutes after the last one above, but there’s no difference other than a different trigger point.