#so what should my condition be? My two
1 messages · Page 1 of 1 (latest)
Well, I can't turn device triggers to conditions, but something like:
action:
- if:
- condition:
- type: motion
condition: device
device_id: c8a8036d5bceea86d8946fc6b28e53f4
entity_id: 0d398691e7b095c7961b33a44caf878b
domain: binary_sensor
- type: illuminance
condition: device
device_id: c8a8036d5bceea86d8946fc6b28e53f4
entity_id: 1ab1886b6e819e410948956659bfa4eb
domain: sensor
above: 315
then:
- service: light.turn_on
metadata: {}
data: {}
target:
device_id:
- bddae8452869d076ad927d88dac0ec30
- 57c4911d61a5f424fa6de79acf1b4ac5
- 473daa8240832e056f4e38f200e4f104