The way this worked before was if any of the ‘not’ conditions were the trigger, then the auto off would not work. i triggered with one of the conditions and the auto off still worked with the new update
here is a trace when triggered by the first condition in the automations which should not run the automation
{
"trace": {
"last_step": "action/0",
"run_id": "26abe1c9b2e1edf430cb47af8266f1ee",
"state": "stopped",
"script_execution": "finished",
"timestamp": {
"start": "2023-03-03T05:06:47.301412+00:00",
"finish": "2023-03-03T05:06:47.508337+00:00"
},
"domain": "automation",
"item_id": "1659379544981",
"trigger": "state of switch.pentair_chlor",
"trace": {
"trigger/0": [
{
"path": "trigger/0",
"timestamp": "2023-03-03T05:06:47.301412+00:00",
"changed_variables": {
"this": {
"entity_id": "automation.auto_off_chlorinator",
"state": "on",
"attributes": {
"last_triggered": "2023-03-03T05:06:45.932642+00:00",
"mode": "single",
"current": 0,
"id": "1659379544981",
"friendly_name": "Auto off chlorinator"
},
"last_changed": "2023-03-03T04:47:22.324840+00:00",
"last_updated": "2023-03-03T05:06:46.006936+00:00",
"context": {
"id": "01GTJXV3HAZJ7QER9RYZ16SBD6",
"parent_id": "01GTJXV3GJYKRXXC6Q9Q86E15W",
"user_id": null
}
},
"trigger": {
"id": "0",
"idx": "0",
"alias": null,
"platform": "state",
"entity_id": "switch.pentair_chlor",
"from_state": {
"entity_id": "switch.pentair_chlor",
"state": "off",
"attributes": {
"icon": "mdi:water-opacity",
"friendly_name": "Pentair: 18-41-CA Chlorinator"
},
"last_changed": "2023-03-03T04:56:28.102101+00:00",
"last_updated": "2023-03-03T04:56:28.102101+00:00",
"context": {
"id": "01GTJX87N5CCJ1WSDZHPGCRZ8M",
"parent_id": "01GTJX866RAKD59N8R6WATQ6VX",
"user_id": null
}
},
"to_state": {
"entity_id": "switch.pentair_chlor",
"state": "on",
"attributes": {
"icon": "mdi:water-opacity",
"friendly_name": "Pentair: 18-41-CA Chlorinator"
},
"last_changed": "2023-03-03T05:06:47.251695+00:00",
"last_updated": "2023-03-03T05:06:47.251695+00:00",
"context": {
"id": "01GTJXV3H80GST756MYRGMKY7V",
"parent_id": "01GTJXV3GJYKRXXC6Q9Q86E15W",
"user_id": null
}
},
"for": null,
"attribute": null,
"description": "state of switch.pentair_chlor"
}
}
}
],
"condition/0": [
{
"path": "condition/0",
"timestamp": "2023-03-03T05:06:47.301412+00:00",
"result": {
"result": true
}
}
],
"condition/0/conditions/0": [
{
"path": "condition/0/conditions/0",
"timestamp": "2023-03-03T05:06:47.302058+00:00",
"result": {
"result": false
}
}
],
"condition/0/conditions/0/entity_id/0": [
{
"path": "condition/0/conditions/0/entity_id/0",
"timestamp": "2023-03-03T05:06:47.302619+00:00",
"result": {
"result": false,
"state": "2023-03-03T05:06:45.913837+00:00",
"wanted_state": ""
}
}
],
"condition/1": [
{
"path": "condition/1",
"timestamp": "2023-03-03T05:06:47.302735+00:00",
"result": {
"result": true
}
}
],
"condition/1/conditions/0": [
{
"path": "condition/1/conditions/0",
"timestamp": "2023-03-03T05:06:47.302800+00:00",
"result": {
"result": true
}
}
],
"condition/1/conditions/0/conditions/0": [
{
"path": "condition/1/conditions/0/conditions/0",
"timestamp": "2023-03-03T05:06:47.302852+00:00",
"result": {
"result": false
}
}
],
"condition/1/conditions/0/conditions/0/entity_id/0": [
{
"path": "condition/1/conditions/0/conditions/0/entity_id/0",
"timestamp": "2023-03-03T05:06:47.302905+00:00",
"result": {
"result": false,
"state": "2023-03-03T04:56:10.007248+00:00",
"wanted_state": ""
}
}
],
"condition/2": [
{
"path": "condition/2",
"timestamp": "2023-03-03T05:06:47.302979+00:00",
"result": {
"result": true
}
}
],
"condition/2/conditions/0": [
{
"path": "condition/2/conditions/0",
"timestamp": "2023-03-03T05:06:47.303021+00:00",
"result": {
"result": true
}
}
],
"condition/2/conditions/0/conditions/0": [
{
"path": "condition/2/conditions/0/conditions/0",
"timestamp": "2023-03-03T05:06:47.303056+00:00",
"result": {
"result": false
}
}
],
"condition/2/conditions/0/conditions/0/entity_id/0": [
{
"path": "condition/2/conditions/0/conditions/0/entity_id/0",
"timestamp": "2023-03-03T05:06:47.303095+00:00",
"result": {
"result": false,
"state": "2023-03-03T04:55:21.618247+00:00",
"wanted_state": ""
}
}
],
"condition/3": [
{
"path": "condition/3",
"timestamp": "2023-03-03T05:06:47.303164+00:00",
"result": {
"result": true
}
}
],
"condition/3/conditions/0": [
{
"path": "condition/3/conditions/0",
"timestamp": "2023-03-03T05:06:47.303201+00:00",
"result": {
"result": true
}
}
],
"condition/3/conditions/0/conditions/0": [
{
"path": "condition/3/conditions/0/conditions/0",
"timestamp": "2023-03-03T05:06:47.303236+00:00",
"result": {
"result": false
}
}
],
"condition/3/conditions/0/conditions/0/entity_id/0": [
{
"path": "condition/3/conditions/0/conditions/0/entity_id/0",
"timestamp": "2023-03-03T05:06:47.303274+00:00",
"result": {
"result": false,
"state": "2023-03-03T04:56:26.055376+00:00",
"wanted_state": ""
}
}
],
"action/0": [
{
"path": "action/0",
"timestamp": "2023-03-03T05:06:47.359673+00:00",
"changed_variables": {
"context": {
"id": "01GTJXV4W595VE5WNN1W4NC76S",
"parent_id": "01GTJXV3H80GST756MYRGMKY7V",
"user_id": null
}
},
"result": {
"params": {
"domain": "switch",
"service": "turn_off",
"service_data": {},
"target": {
"entity_id": [
"switch.pentair_chlor"
]
}
},
"running_script": false,
"limit": 10
}
}
]
},
"config": {
"id": "1659379544981",
"alias": "Auto off chlorinator",
"description": "",
"trigger": [
{
"platform": "state",
"entity_id": [
"switch.pentair_chlor"
],
"from": "off",
"to": "on"
},
{
"platform": "state",
"entity_id": [
"input_button.add_per_input_box_cup"
]
},
{
"platform": "state",
"entity_id": [
"input_button.add_per_input_box_gal"
]
},
{
"platform": "state",
"entity_id": [
"input_button.morning_chlorine"
]
},
{
"platform": "state",
"entity_id": [
"input_button.afternoon_chlorine"
]
}
],
"condition": [
{
"condition": "not",
"conditions": [
{
"condition": "state",
"entity_id": "input_button.add_per_input_box_cup",
"state": ""
}
]
},
{
"condition": "or",
"conditions": [
{
"condition": "not",
"conditions": [
{
"condition": "state",
"entity_id": "input_button.add_per_input_box_gal",
"state": ""
}
]
}
]
},
{
"condition": "or",
"conditions": [
{
"condition": "not",
"conditions": [
{
"condition": "state",
"entity_id": "input_button.morning_chlorine",
"state": ""
}
]
}
]
},
{
"condition": "or",
"conditions": [
{
"condition": "not",
"conditions": [
{
"condition": "state",
"entity_id": "input_button.afternoon_chlorine",
"state": ""
}
]
}
]
}
],
"action": [
{
"service": "switch.turn_off",
"data": {},
"target": {
"entity_id": "switch.pentair_chlor"
}
}
],
"mode": "single"
},
"blueprint_inputs": null,
"context": {
"id": "01GTJXV4W595VE5WNN1W4NC76S",
"parent_id": "01GTJXV3H80GST756MYRGMKY7V",
"user_id": null
}
},
"logbookEntries": [
{
"name": "Auto off chlorinator",
"message": "triggered by state of switch.pentair_chlor",
"source": "state of switch.pentair_chlor",
"entity_id": "automation.auto_off_chlorinator",
"context_id": "01GTJXV4W595VE5WNN1W4NC76S",
"when": 1677820007.303391,
"domain": "automation"
},
{
"when": 1677820007.557568,
"state": "off",
"entity_id": "switch.pentair_chlor",
"icon": "mdi:water-opacity",
"context_event_type": "automation_triggered",
"context_domain": "automation",
"context_name": "Auto off chlorinator",
"context_message": "triggered by state of switch.pentair_chlor",
"context_source": "state of switch.pentair_chlor",
"context_entity_id": "automation.auto_off_chlorinator"
}
]
}