#Is the logic for multiple "And if" conditions logic AND or OR? see pic

11 messages · Page 1 of 1 (latest)

dreamy fractal
#

Multiple "And if" conditions: logic AND or OR?

#

Is the logic for multiple "And if" conditions logic AND or OR?

#

Is the logic for multiple "And if" conditions logic AND or OR? see pic

exotic sluice
#

Conditions are 'and' by default unless you explicitly make them 'or'

#

Review the YAML to be sure

dreamy fractal
#

`
condition:

  • condition: device
    type: is_off
    device_id: 77ccdbd44b78adb21e785d930751a005
    entity_id: 71492142d63ad16e568b8ebf0041565e
    domain: switch
  • condition: zone
    entity_id: device_tracker.my_phone1
    zone: zone.home`
#

Thanks @exotic sluice. I couldn't find a reference to conditions being 'and' by default in the help page directly linked to that automation section. Would be nice if it was doc'd there.

exotic sluice
#

Unlike a trigger, which is always or, conditions are and by default - all conditions have to be true.

#

After a trigger occurred, all conditions will be checked. If any of them do not return true, the automation will stop executing.