Hi,
I have the following automation and I used Triggers in it. I learned about it from some online video.
How can I introduce Sensor6 to this automation I mean combine it with Sensor4 as a single binary sensor?
`- id: '1718231664600'
alias: Hallway_temporary_lamp
description: Turn on the entrance light upstairs
trigger:
- type: motion
platform: device
device_id: b6768ec1f085ee7f1929773d33c5dae3
entity_id: 8b35a5aea18064f332bc359c7db48840
domain: binary_sensor
id: MotionSensor4_Hallway_Detected - type: no_motion
platform: device
device_id: b6768ec1f085ee7f1929773d33c5dae3
entity_id: 8b35a5aea18064f332bc359c7db48840
domain: binary_sensor
id: MotionSensor4_Hallway_Cleared
for:
hours: 0
minutes: 6
seconds: 0
condition: - condition: sun
before: sunrise
after: sunset
before_offset: -01:00:00
after_offset: -01:00:00
action: - if:
- condition: trigger
id:- MotionSensor4_Hallway_Detected
then:
- MotionSensor4_Hallway_Detected
- type: turn_on
device_id: d1359a619afdc6b0460905931e9d3ab5
entity_id: b8325217e48512071316c07325e9e70e
domain: switch
else: - if:
- condition: trigger
id:- MotionSensor4_Hallway_Cleared
then:
- MotionSensor4_Hallway_Cleared
- type: turn_off
device_id: d1359a619afdc6b0460905931e9d3ab5
entity_id: b8325217e48512071316c07325e9e70e
domain: switch
mode: single`
- condition: trigger
- condition: trigger