I want have for some automations an option that it sends notification when conditions are false. The automation won’t run but that’s what I want to know.
Idea was to put all the conditions into a choose: and of one or more are false then de default will run with a notification action.
But it will be nice to have something that when conditions are false send a message.
notify:
- condition: false
then:
- service: your service action here
I would use the choose action like you already said.
Make sure to use AND when only one needs to be false in order to go to default:
Example:
choose:
- conditions:
- condition: and
conditions:
- condition: state
entity_id: sensor.condtion1
state: on
- condition: state
entity_id: sensor.condtion2
state: on
sequence: []
default:
- service: notify.notify
metadata: {}
data:
message: "All conditions are false"
title: TEST
If those seven conditions are exclusively in the automation’s condition and it evaluates to false then the automation will stop and not execute its action. You can’t make it send a notification when that occurs.