NOT Condition doesn't accept Lists

Hello

after the latest releases 0.112 and 0.113 I wanted to update/clean my automations.
The update lets us use list for entity_id’s and/or states.
But what I found was that at the moment of writing this doesn’t work for the condition: NOT.

example:
This will work

          - condition: not
            conditions:
            - condition: state
              state: 'playing'
              entity_id:
                - media_player.alexa_livingroom_1
            - condition: state
              state: 'playing'
              entity_id:
                - media_player.alexa_downstairs
            - condition: state
              state: 'playing'
              entity_id:
                - media_player.alexa_everywhere

This doesn’t seem to work:

          - condition: not
            conditions:
            - condition: state
              state: 'playing'
              entity_id:
                - media_player.alexa_livingroom_1
                - media_player.alexa_downstairs
                - media_player.alexa_everywhere

I think because the condition is true when one of the media_players is in NOT.
This would be contradictory because in a normal condition the entity_id list works as an AND condition.

I hope this information can help someone. And maybe if someone has more info or can confirm this, thank you.

1 Like