GUI Not conditions basic help

So I’m using the HA gui to create all my automations, and the one thing I am struggling with at the moment is implementing NOT and OR.

I this case I have a dropdown select option, one of which is Shower. If I have selected “Shower” mode I don’t want the automation to fire. If it’s in any other mode then yes, proceed. Except for some reason this just doesn’t fire off at all. Fairly basic question, sorry.

choose:
  - conditions:
      - condition: trigger
        id: tank full
      - condition: not
        conditions:
          - condition: state
            entity_id: input_select.dropdown
            state: Shower
    sequence:
      - service: timer.start
        data:
          duration: '0:15:00'
        target:
          entity_id: timer.pumppause
      - service: input_select.select_option
        target:
          entity_id: input_select.dropdown
        data:
          option: Auto
default: []

I’ll look more now to see if I see something but have you tried the trace function in the automations, they help a lot to find these issues?

Thank you, yes looked at the trace, it just stops at the “top” so to speak, when I remove the “NOT shower” condition it proceeds perfectly.

Tried reloading automations, tried changing the dropdown selection to other options.

This is not (chuckle at ‘not’ pun here) the first time I have had issues with NOT and OR implementation in the GUI. Usually I have avoided them by creating choose options for when the automation should work.

I assuming your trace will look something like this
image .

What are you step details for the conditions? e.g.
image

sigh Apparently all I needed to do was hang my tongue out the other side of my mouth while re-configuring the automation.

Its working now, off to create a snapshot before I loose it.

Glad about that as I couldn’t see anything wrong and when I replicated it, it worked fine :slight_smile:

1 Like