In my TV Room, I have an Aqara Presence Sensor and some Aqara Light Bulbs that are connected to Homey using Matter through the Aqara M3 hub.
I have created an automation to turn the light bulbs on at sunset through Homey which works fine.
I have another automation in Homey to turn the lights off at 10:30 PM in other parts of the house. However, in my TV Room, I would like to have the following:
- At 10:30, If no one is in the TV room then turn the lights off but if someone is there keep the lights on
- Between 10:30 and sunrise, if anyone enters the room, turn the lights on and stay on until no one is in the room, at which point, wait for a minute and turn the lights off.