FAQ: Getting Started with the new Rules API

You can set the Security Mode using code such as:

      then:
        - location:
            security:
              armState: ArmedAway

As you can see, I use YAML. The other states are Disarmed and ArmedStay.

I don’t seem to have an example of doing it the other way but I think it is:

    - equals:
        left:
          location:
            attribute: Security

You’d compare it with a string.

2 Likes