A trace of the failure isn’t available now. However, you did spur me to learn about traces so now I can debug future issues myself. I am not very knowledgeable about HA, still trying to learn. Thank you for the link to sharing traces! Just generating the json file for review is a huge help. Here are the contents of the json trace file. I have wondered how to access this debug level trace info. That gives all of the details about what was done. If I had gotten this after the failure it would have been really helpful!
{
"trace": {
"last_step": "action/0",
"run_id": "ab67e9fc74378f732ec214c31830a0e0",
"state": "stopped",
"script_execution": "finished",
"timestamp": {
"start": "2025-11-11T15:19:17.434692+00:00",
"finish": "2025-11-11T15:19:17.473530+00:00"
},
"domain": "automation",
"item_id": "1757860655875",
"trigger": "numeric state of sensor.greenhouse_temp_humidity_temperature",
"trace": {
"trigger/0": [
{
"path": "trigger/0",
"timestamp": "2025-11-11T15:19:17.434767+00:00",
"changed_variables": {
"this": {
"entity_id": "automation.heater_off",
"state": "on",
"attributes": {
"id": "1757860655875",
"last_triggered": "2025-11-11T14:36:19.115566+00:00",
"mode": "single",
"current": 0,
"friendly_name": "Heater Off"
},
"last_changed": "2025-10-30T18:01:59.678235+00:00",
"last_reported": "2025-11-11T14:36:19.138631+00:00",
"last_updated": "2025-11-11T14:36:19.138631+00:00",
"context": {
"id": "01K9SNH7SBPK68P686XZ2RNRKC",
"parent_id": "01K9SNH7SA9SCGA80QFVNH5BN8",
"user_id": null
}
},
"trigger": {
"id": "0",
"idx": "0",
"alias": null,
"platform": "numeric_state",
"entity_id": "sensor.greenhouse_temp_humidity_temperature",
"below": null,
"above": 63,
"from_state": {
"entity_id": "sensor.greenhouse_temp_humidity_temperature",
"state": "62.87",
"attributes": {
"state_class": "measurement",
"unit_of_measurement": "°F",
"device_class": "temperature",
"friendly_name": "Greenhouse Temp/Humidity Temperature"
},
"last_changed": "2025-11-11T15:18:18.738873+00:00",
"last_reported": "2025-11-11T15:18:18.738873+00:00",
"last_updated": "2025-11-11T15:18:18.738873+00:00",
"context": {
"id": "01K9SQY4BJP80RWY9DTP6A417Y",
"parent_id": null,
"user_id": null
}
},
"to_state": {
"entity_id": "sensor.greenhouse_temp_humidity_temperature",
"state": "63.39",
"attributes": {
"state_class": "measurement",
"unit_of_measurement": "°F",
"device_class": "temperature",
"friendly_name": "Greenhouse Temp/Humidity Temperature"
},
"last_changed": "2025-11-11T15:19:17.433958+00:00",
"last_reported": "2025-11-11T15:19:17.433958+00:00",
"last_updated": "2025-11-11T15:19:17.433958+00:00",
"context": {
"id": "01K9SQZXNSVTERPXGNQGKWYNFK",
"parent_id": null,
"user_id": null
}
},
"for": null,
"description": "numeric state of sensor.greenhouse_temp_humidity_temperature"
}
}
}
],
"action/0": [
{
"path": "action/0",
"timestamp": "2025-11-11T15:19:17.435127+00:00",
"changed_variables": {
"context": {
"id": "01K9SQZXNTGD56YRSHB7BT4M64",
"parent_id": "01K9SQZXNSVTERPXGNQGKWYNFK",
"user_id": null
}
},
"result": {
"params": {
"domain": "switch",
"service": "turn_off",
"service_data": {},
"target": {
"entity_id": [
"switch.shellyplusuni_c4d8d54f408c_switch_0"
]
}
},
"running_script": false
}
}
]
},
"config": {
"id": "1757860655875",
"alias": "Heater Off",
"description": "Turn heater off.",
"triggers": [
{
"trigger": "numeric_state",
"entity_id": [
"sensor.greenhouse_temp_humidity_temperature"
],
"above": 63
}
],
"conditions": [],
"actions": [
{
"action": "switch.turn_off",
"metadata": {},
"data": {},
"target": {
"entity_id": "switch.shellyplusuni_c4d8d54f408c_switch_0"
}
}
],
"mode": "single"
},
"blueprint_inputs": null,
"context": {
"id": "01K9SQZXNTGD56YRSHB7BT4M64",
"parent_id": "01K9SQZXNSVTERPXGNQGKWYNFK",
"user_id": null
}
},
"logbookEntries": [
{
"name": "Heater Off",
"message": "triggered by numeric state of sensor.greenhouse_temp_humidity_temperature",
"source": "numeric state of sensor.greenhouse_temp_humidity_temperature",
"entity_id": "automation.heater_off",
"context_id": "01K9SQZXNTGD56YRSHB7BT4M64",
"domain": "automation",
"when": 1762874357.434858
},
{
"state": "off",
"entity_id": "switch.shellyplusuni_c4d8d54f408c_switch_0",
"when": 1762874357.4943488,
"context_event_type": "automation_triggered",
"context_domain": "automation",
"context_name": "Heater Off",
"context_message": "triggered by numeric state of sensor.greenhouse_temp_humidity_temperature",
"context_source": "numeric state of sensor.greenhouse_temp_humidity_temperature",
"context_entity_id": "automation.heater_off"
}
]
}