Sure, hereâs the last trace:
{
"trace": {
"last_step": "condition/0/entity_id/0",
"run_id": "4b67a45a56947a4f29eddbd0a1dc0ff1",
"state": "stopped",
"script_execution": "failed_conditions",
"timestamp": {
"start": "2023-08-16T14:03:40.746542+00:00",
"finish": "2023-08-16T14:03:40.747226+00:00"
},
"domain": "automation",
"item_id": "1691882354648",
"trigger": "numeric state of sensor.inverter_input_power",
"trace": {
"trigger/0": [
{
"path": "trigger/0",
"timestamp": "2023-08-16T14:03:40.746770+00:00",
"changed_variables": {
"this": {
"entity_id": "automation.heat_water_while_the_sun_shines_level_4",
"state": "on",
"attributes": {
"id": "1691882354648",
"last_triggered": "2023-08-16T11:24:36.802088+00:00",
"mode": "single",
"current": 0,
"friendly_name": "Heat water while the sun shines, level 4"
},
"last_changed": "2023-08-15T16:21:24.625933+00:00",
"last_updated": "2023-08-16T11:24:37.639967+00:00",
"context": {
"id": "01H7Z1E9200RXG6E576HEC2DYN",
"parent_id": "01H7Z0VZ3KJJ01AAHRCM084F86",
"user_id": null
}
},
"trigger": {
"id": "0",
"idx": "0",
"alias": null,
"platform": "numeric_state",
"entity_id": "sensor.inverter_input_power",
"below": 5500,
"above": 1500,
"from_state": {
"entity_id": "sensor.inverter_input_power",
"state": "1457",
"attributes": {
"state_class": "measurement",
"unit_of_measurement": "W",
"device_class": "power",
"friendly_name": "Input power (from PV)"
},
"last_changed": "2023-08-16T13:53:06.161582+00:00",
"last_updated": "2023-08-16T13:53:06.161582+00:00",
"context": {
"id": "01H7Z9Y5KH79F612C8N0T9RPZ7",
"parent_id": null,
"user_id": null
}
},
"to_state": {
"entity_id": "sensor.inverter_input_power",
"state": "1569",
"attributes": {
"state_class": "measurement",
"unit_of_measurement": "W",
"device_class": "power",
"friendly_name": "Input power (from PV)"
},
"last_changed": "2023-08-16T13:53:40.740636+00:00",
"last_updated": "2023-08-16T13:53:40.740636+00:00",
"context": {
"id": "01H7Z9Z7C45YEXWAXR1XZRTR2V",
"parent_id": null,
"user_id": null
}
},
"for": {
"__type": "<class 'datetime.timedelta'>",
"total_seconds": 600
},
"description": "numeric state of sensor.inverter_input_power"
}
}
}
],
"condition/0": [
{
"path": "condition/0",
"timestamp": "2023-08-16T14:03:40.746895+00:00",
"result": {
"result": false
}
},
{
"path": "condition/0",
"timestamp": "2023-08-16T14:03:40.746967+00:00",
"result": {
"result": false
}
}
],
"condition/0/entity_id/0": [
{
"path": "condition/0/entity_id/0",
"timestamp": "2023-08-16T14:03:40.747039+00:00",
"result": {
"result": false,
"state": 60,
"wanted_state_below": 58
}
}
]
},
"config": {
"id": "1691882354648",
"alias": "Heat water while the sun shines, level 4",
"description": "When solar is producing between 1.5 kW and 5.5 kW for at least 10 mins and water tank temp is < 58 °C and battery SoC is > 90%, set DHW target temp to 64 °C and force DHW and set quiet mode to off",
"trigger": [
{
"platform": "numeric_state",
"entity_id": "sensor.inverter_input_power",
"for": {
"hours": 0,
"minutes": 10,
"seconds": 0
},
"above": 1500,
"below": 5500
}
],
"condition": [
{
"type": "is_temperature",
"condition": "device",
"device_id": "5146f5c31651abb30cdec21b28d85838",
"entity_id": "61d9b2152c9c77348139394701a4a822",
"domain": "sensor",
"below": 58
},
{
"condition": "numeric_state",
"entity_id": "sensor.battery_state_of_capacity",
"above": 90
}
],
"action": [
{
"type": "turn_on",
"device_id": "5146f5c31651abb30cdec21b28d85838",
"entity_id": "a5cf0afd27214ecf8de5a48fbc255f4d",
"domain": "switch"
},
{
"type": "turn_on",
"device_id": "5146f5c31651abb30cdec21b28d85838",
"entity_id": "9a3b39024483d0512994ba6ae4243083",
"domain": "switch"
},
{
"device_id": "5146f5c31651abb30cdec21b28d85838",
"domain": "number",
"entity_id": "8c5b97bd43e6e7688e1c4a0ff676c388",
"type": "set_value",
"value": 64
},
{
"device_id": "5146f5c31651abb30cdec21b28d85838",
"domain": "select",
"entity_id": "d9016c9419c55e0ee4a4b1e07595aac0",
"type": "select_option",
"option": "Off"
},
{
"service": "notify.pushover",
"data": {
"message": "When solar is producing between 1.5 kW and 5.5 kW for at least 10 mins and water tank temp is < 58 °C and battery SoC is > 90%, set DHW target temp to 64 °C and force DHW and set quiet mode to off\n\nInput power from PV {{states(\"sensor.inverter_input_power\") }} W\nTank temp {{states(\"sensor.panasonic_heat_pump_main_dhw_temp\") }} °C\nBattery SoC {{states(\"sensor.battery_state_of_capacity\") }}%",
"title": "Automation triggered: Heat water while the sun shines, level 4"
}
}
],
"mode": "single"
},
"blueprint_inputs": null,
"context": {
"id": "01H7ZAHHAAAJGZH1QQZ9Y0C6TH",
"parent_id": "01H7Z9Z7C45YEXWAXR1XZRTR2V",
"user_id": null
}
},
"logbookEntries": []
}