Pasted both below, I think. I donât really know what you want from the âtraceâ. I donât know how to hunt through the history of the automation, but it doesnât matter because the trace says ânothing changedâ but the boolean is clearly being changed (set to âonâ incorrectly, never being set back to âoffâ correctly) and pointing back at the automation as the source of the change. It will actually actively set the boolean back to on if you manually turn it off, which is completely backward.
I donât have a lot of interest litigating whether or not itâs broken or configured incorrectly. Itâs configured correctly, the service is definitely broken. Somebody can look for the bug or not. Iâve found the HA communities to be fairly hostile so I frankly donât care to dig too deep or work too hard on it.
{
"trace": {
"last_step": "action/0/choose/2/sequence/0",
"run_id": "d93e565330b4182fe8189d6b219a638d",
"state": "stopped",
"script_execution": "finished",
"timestamp": {
"start": "2026-07-08T23:57:35.143292+00:00",
"finish": "2026-07-08T23:57:35.143930+00:00"
},
"domain": "automation",
"item_id": "1783024864428",
"trigger": "time pattern",
"trace": {
"trigger/0": [
{
"path": "trigger/0",
"timestamp": "2026-07-08T23:57:35.143343+00:00",
"changed_variables": {
"this": {
"entity_id": "automation.hood_ventilation",
"state": "on",
"attributes": {
"id": "1783024864428",
"last_triggered": "2026-07-08T23:57:30.143349+00:00",
"mode": "single",
"current": 0,
"friendly_name": "Hood ventilation"
},
"last_changed": "2026-07-04T20:59:38.897281+00:00",
"last_reported": "2026-07-08T23:57:30.143740+00:00",
"last_updated": "2026-07-08T23:57:30.143740+00:00",
"context": {
"id": "01KX22MJMZJ1BJAP02RGQA7MFN",
"parent_id": null,
"user_id": null
}
},
"trigger": {
"id": "0",
"idx": "0",
"alias": null,
"platform": "time_pattern",
"now": "2026-07-08T16:57:35.143223-07:00",
"description": "time pattern"
}
}
}
],
"condition/0": [
{
"path": "condition/0",
"timestamp": "2026-07-08T23:57:35.143356+00:00",
"result": {
"result": true
}
}
],
"action/0": [
{
"path": "action/0",
"timestamp": "2026-07-08T23:57:35.143493+00:00",
"changed_variables": {
"context": {
"id": "01KX22MQH7GZNFXHKNY8PT3PQV",
"parent_id": null,
"user_id": null
}
},
"result": {
"choice": 2
}
}
],
"action/0/choose/0": [
{
"path": "action/0/choose/0",
"timestamp": "2026-07-08T23:57:35.143527+00:00",
"result": {
"result": false
}
}
],
"action/0/choose/0/conditions/0": [
{
"path": "action/0/choose/0/conditions/0",
"timestamp": "2026-07-08T23:57:35.143539+00:00",
"result": {
"result": false
}
}
],
"action/0/choose/0/conditions/0/entity_id/0": [
{
"path": "action/0/choose/0/conditions/0/entity_id/0",
"timestamp": "2026-07-08T23:57:35.143549+00:00",
"result": {
"result": false,
"state": "off",
"wanted_state": "on"
}
}
],
"action/0/choose/1": [
{
"path": "action/0/choose/1",
"timestamp": "2026-07-08T23:57:35.143570+00:00",
"result": {
"result": false
}
}
],
"action/0/choose/1/conditions/0": [
{
"path": "action/0/choose/1/conditions/0",
"timestamp": "2026-07-08T23:57:35.143576+00:00",
"result": {
"result": true
}
}
],
"action/0/choose/1/conditions/0/entity_id/0": [
{
"path": "action/0/choose/1/conditions/0/entity_id/0",
"timestamp": "2026-07-08T23:57:35.143582+00:00",
"result": {
"result": true,
"state": "off",
"wanted_state": "off"
}
}
],
"action/0/choose/1/conditions/1": [
{
"path": "action/0/choose/1/conditions/1",
"timestamp": "2026-07-08T23:57:35.143592+00:00",
"result": {
"result": false
}
}
],
"action/0/choose/2": [
{
"path": "action/0/choose/2",
"timestamp": "2026-07-08T23:57:35.143612+00:00",
"result": {
"result": true
}
}
],
"action/0/choose/2/conditions/0": [
{
"path": "action/0/choose/2/conditions/0",
"timestamp": "2026-07-08T23:57:35.143619+00:00",
"result": {
"result": true
}
}
],
"action/0/choose/2/conditions/0/entity_id/0": [
{
"path": "action/0/choose/2/conditions/0/entity_id/0",
"timestamp": "2026-07-08T23:57:35.143625+00:00",
"result": {
"result": true,
"state": "off",
"wanted_state": "off"
}
}
],
"action/0/choose/2/sequence/0": [
{
"path": "action/0/choose/2/sequence/0",
"timestamp": "2026-07-08T23:57:35.143670+00:00",
"result": {
"params": {
"domain": "input_boolean",
"service": "turn_off",
"service_data": {},
"target": {
"entity_id": [
"input_boolean.hood_ventilation_control_active"
]
}
},
"running_script": false
}
}
]
},
"config": {
"id": "1783024864428",
"alias": "Hood ventilation",
"description": "",
"triggers": [
{
"trigger": "time_pattern",
"hours": "*",
"minutes": "*",
"seconds": "/5"
}
],
"conditions": [
{
"condition": "switch.is_off",
"target": {
"entity_id": "input_boolean.cerv_manual_override"
},
"options": {
"behavior": "any",
"for": "00:00:00"
}
}
],
"actions": [
{
"choose": [
{
"conditions": [
{
"condition": "state",
"entity_id": "binary_sensor.e2m_hood_act_pir",
"state": [
"on"
]
}
],
"sequence": [
{
"action": "input_boolean.turn_on",
"metadata": {},
"target": {
"entity_id": [
"input_boolean.cerv_vent_high",
"input_boolean.hood_ventilation_control_active"
]
},
"data": {}
},
{
"action": "input_boolean.turn_off",
"metadata": {},
"target": {
"entity_id": [
"input_boolean.cerv_vent_medium_request",
"input_boolean.cerv_vent_medhigh",
"input_boolean.cerv_recirc_high",
"input_boolean.cerv_recirc_med",
"input_boolean.cerv_recirc_medhigh"
]
},
"data": {}
},
{
"if": [
{
"condition": "switch.is_off",
"target": {
"entity_id": "input_boolean.bath1_ventilation_request"
},
"options": {
"behavior": "any",
"for": "00:00:00"
}
}
],
"then": [
{
"action": "switch.turn_on",
"metadata": {},
"target": {
"entity_id": "switch.hvac_6ch_relay_output_relay_2"
},
"data": {}
}
]
},
{
"if": [
{
"condition": "switch.is_off",
"target": {
"entity_id": "input_boolean.bath2_ventilation_request"
},
"options": {
"behavior": "any",
"for": "00:00:00"
}
}
],
"then": [
{
"action": "switch.turn_on",
"metadata": {},
"target": {
"entity_id": "switch.hvac_6ch_relay_output_relay_3"
},
"data": {}
}
]
},
{
"if": [
{
"condition": "switch.is_off",
"target": {
"entity_id": "input_boolean.bath3_ventilation_request"
},
"options": {
"behavior": "any",
"for": "00:00:00"
}
}
],
"then": [
{
"action": "switch.turn_on",
"metadata": {},
"target": {
"entity_id": "switch.hvac_6ch_relay_output_relay_4"
},
"data": {}
}
]
}
]
},
{
"conditions": [
{
"condition": "state",
"entity_id": "binary_sensor.e2m_hood_act_pir",
"state": [
"off"
]
},
{
"condition": "switch.is_off",
"target": {
"entity_id": "input_boolean.dehu_control_active"
},
"options": {
"behavior": "any",
"for": "00:00:00"
}
},
{
"condition": "switch.is_off",
"target": {
"entity_id": "input_boolean.bathroom_ventilation_control_active"
},
"options": {
"behavior": "any",
"for": "00:00:00"
}
}
],
"sequence": [
{
"action": "switch.turn_off",
"metadata": {},
"target": {
"entity_id": [
"switch.hvac_6ch_relay_output_relay_2",
"switch.hvac_6ch_relay_output_relay_3",
"switch.hvac_6ch_relay_output_relay_4"
]
},
"data": {}
},
{
"action": "input_boolean.turn_off",
"metadata": {},
"target": {
"entity_id": [
"input_boolean.cerv_vent_high"
]
},
"data": {}
}
]
},
{
"conditions": [
{
"condition": "state",
"entity_id": "binary_sensor.e2m_hood_act_pir",
"state": [
"off"
]
}
],
"sequence": [
{
"action": "input_boolean.turn_off",
"metadata": {},
"target": {
"entity_id": "input_boolean.hood_ventilation_control_active"
},
"data": {}
}
]
}
]
}
],
"mode": "single"
},
"blueprint_inputs": null,
"context": {
"id": "01KX22MQH7GZNFXHKNY8PT3PQV",
"parent_id": null,
"user_id": null
}
},
"logbookEntries": [
{
"name": "Hood ventilation",
"message": "triggered by time pattern",
"source": "time pattern",
"entity_id": "automation.hood_ventilation",
"context_id": "01KX22MQH7GZNFXHKNY8PT3PQV",
"domain": "automation",
"when": 1783555055.1434052
}
]
}
alias: Hood ventilation
description: ""
triggers:
- trigger: time_pattern
hours: "*"
minutes: "*"
seconds: /5
conditions:
- condition: switch.is_off
target:
entity_id: input_boolean.cerv_manual_override
options:
behavior: any
for: "00:00:00"
actions:
- choose:
- conditions:
- condition: state
entity_id: binary_sensor.e2m_hood_act_pir
state:
- "on"
sequence:
- action: input_boolean.turn_on
metadata: {}
target:
entity_id:
- input_boolean.cerv_vent_high
- input_boolean.hood_ventilation_control_active
data: {}
- action: input_boolean.turn_off
metadata: {}
target:
entity_id:
- input_boolean.cerv_vent_medium_request
- input_boolean.cerv_vent_medhigh
- input_boolean.cerv_recirc_high
- input_boolean.cerv_recirc_med
- input_boolean.cerv_recirc_medhigh
data: {}
- if:
- condition: switch.is_off
target:
entity_id: input_boolean.bath1_ventilation_request
options:
behavior: any
for: "00:00:00"
then:
- action: switch.turn_on
metadata: {}
target:
entity_id: switch.hvac_6ch_relay_output_relay_2
data: {}
- if:
- condition: switch.is_off
target:
entity_id: input_boolean.bath2_ventilation_request
options:
behavior: any
for: "00:00:00"
then:
- action: switch.turn_on
metadata: {}
target:
entity_id: switch.hvac_6ch_relay_output_relay_3
data: {}
- if:
- condition: switch.is_off
target:
entity_id: input_boolean.bath3_ventilation_request
options:
behavior: any
for: "00:00:00"
then:
- action: switch.turn_on
metadata: {}
target:
entity_id: switch.hvac_6ch_relay_output_relay_4
data: {}
- conditions:
- condition: state
entity_id: binary_sensor.e2m_hood_act_pir
state:
- "off"
- condition: switch.is_off
target:
entity_id: input_boolean.dehu_control_active
options:
behavior: any
for: "00:00:00"
- condition: switch.is_off
target:
entity_id: input_boolean.bathroom_ventilation_control_active
options:
behavior: any
for: "00:00:00"
sequence:
- action: switch.turn_off
metadata: {}
target:
entity_id:
- switch.hvac_6ch_relay_output_relay_2
- switch.hvac_6ch_relay_output_relay_3
- switch.hvac_6ch_relay_output_relay_4
data: {}
- action: input_boolean.turn_off
metadata: {}
target:
entity_id:
- input_boolean.cerv_vent_high
data: {}
- conditions:
- condition: state
entity_id: binary_sensor.e2m_hood_act_pir
state:
- "off"
sequence:
- action: input_boolean.turn_off
metadata: {}
target:
entity_id: input_boolean.hood_ventilation_control_active
data: {}
mode: single