20230325 multi motion sensor run ok
http://192.168.2.50:8123/config/automation/edit/1694039063484
alias: >-
Book Room | A - turn off/on input only when no motion Aqara Motion Sensor
CN Version (RTCGQ11LM) no3 by homekit contreller in Bedroom
description: ""
trigger:
- platform: state
entity_id:
- binary_sensor.motion_sensor_4
- binary_sensor.aqara_motion_sensor_e1_cn_version_rtcgq15lm_no1_7
- binary_sensor.aqara_motion_sensor_p1_cn_version_rtcgq14lm_3
condition:
- condition: state
entity_id: input_boolean.input_boolean_dark
state: "on"
action:
- service: input_boolean.turn_on
data: {}
target:
entity_id: input_boolean.input_boolean_husband
- service: light.turn_on
data: {}
target:
entity_id: light.yeelight_ceil26_0x1c5c4959
- service: light.turn_on
data: {}
target:
entity_id: light.yeelink_ceil26_ef4f_light
- delay:
hours: 0
minutes: 1
seconds: 0
milliseconds: 0
- service: input_boolean.turn_off
data: {}
target:
entity_id: input_boolean.input_boolean_husband
- service: light.turn_off
data: {}
target:
entity_id: light.yeelight_ceil26_0x1c5c4959
mode: restart