So I have 4 RIP sensors, I was told. I should have gotten Mmmwavve, they all said. Nevertheless, I want to have my bedroom and other rooms to be able to pass a certain spot/area of the room and the lights will either come on if off or off if on. That never works cause the sensor, even putting it inside a throwaway cup, didn't do the trick. The sensor to power, I set the option to low on the sensitivity settings.
Here is one of my YAML files
alias: Bathroom Sensor
description: ""
triggers:
- type: occupied
device_id: 3e0d4ec27068d3a8cbfc18b71ca2508c
entity_id: c1c87224cd929fa026818dfd10995deb
domain: binary_sensor
trigger: device
conditions: - condition: zone
entity_id: person.david
zone: zone.home
actions: - action: light.toggle
metadata: {}
data: {}
target:
area_id: bathroom
mode: single