I have HA on Raspberry. I bought an Aqara FP2 human detection sensor. I placed it in the living room and divided it into 4 zones: passage, sofa, relaxation, and TV. Now the problem begins because whatever I do, it doesn’t work. I need to create an automation such that:
- When someone enters the passage zone, the light turns on.
- When someone leaves the passage zone, the light turns off.
- When someone moves from the passage zone to another zone, the light should remain on until all zones are empty.
The same applies if someone moves between zones.
If I turn on the light using Alexa, the sensors should not work until I turn the light off also using voice through the Alexa system.
If I say the word ‘sleep’ to Alexa, the sensors will not work until 09:00 or until the ‘sleep’ command is canceled using the ‘reset sleep’ command.
If someone helps me figure this out, I will not fail to show my gratitude.