Send notification when 1 or more conditions are false automation

Hi All,

Does someone have a solution for following:

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.

    - condition: false
        - service: your service action here

Sounds easy. What are the conditions?

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:


  - conditions:
      - condition: and
          - condition: state
            entity_id: sensor.condtion1
            state: on
          - condition: state
            entity_id: sensor.condtion2
            state: on
    sequence: []
  - service: notify.notify
    metadata: {}
      message:  "All conditions are false"
      title: TEST
1 Like

Had same idea.

@123 you are always come with some “wow” solutions haha:

    - condition: time
      after: "15:00:00"
      before: "04:00:00"
    - "{{ is_state('select.logitech_harmony_activities', 'power_off') }}"
    - "{{ is_state('input_select.helpers_sunrise_sunset', 'below_horizon') }}"
    - "{{ is_state('input_boolean.function_full_manual_mode', 'off') }}"
    - "{{ is_state('switch.momentary_early_sleep', 'off') }}"
    - "{{ is_state('binary_sensor.group_family_manual', 'on') }}"
    - "{{ states('input_select.helpers_scenes') not in ['scene evening', 'scene goodnight','scene dinner'] }}"

Do that (or use if-then-else).

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.

1 Like