I have the next automation, and I want to add a conditon that if zzz mode (on/off - i have a boolean state zzz) on the automation will no go on, how do i do it:
alias: Outside motion
description: ""
trigger:
- type: motion
platform: device
device_id: db6f630efb7fd3eee1f2af771875debb
entity_id: binary_sensor.motion_yard
domain: binary_sensor
condition:
- condition: or
conditions:
- condition: state
entity_id: input_boolean.away_mode
state: "on"
- condition: or
conditions:
- condition: state
entity_id: input_boolean.night_mode
state: "on"
action:
- type: turn_on
device_id: 6d88c9db519e7fd6f5ec003a8efb4555
entity_id: light.on_off_light_7_2
domain: light
- service: notify.mobile_app_lior_s_cell
data:
title: Alarm
message: "Motion detected outside "
mode: single