Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 95451

Is this condition correct?

$
0
0

@Argo wrote:

Hi! Changing a little bit my alarm automation. Would like to make sure if I got right how conditions works with ‘or’:

  condition:
    condition: and
    conditions:
      - condition: state
        entity_id: alarm_control_panel.ha_alarm
        state: disarmed
      - condition: state
        entity_id: group.family
        state: home
      - condition: or
        conditions:
          - condition: state
            entity_id: binary_sensor.motion_sensor_158d00031b4772
            state: 'on'
          - condition: state
            entity_id: binary_sensor.motion_sensor_158d0003667bcb
            state: 'on'

Am I saying this in code?

  • alarm panel has to be ‘disarmed’
  • group family has to be ‘home’
  • one or both of two motion sensors should be on

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 95451

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>