Please can I ask for some advice. I am looking for two lamps to turn on (via smart plugs) after sunset and remain on whilst the room is occupied, and then turn the lamps off when the room is empty. I have two sonoff presence sensors and 1 aqara motion sensor along with two smart plugs.
When any of the presence sensors or motion sensor is triggered, I would like the lamps to turn on. To prevent the lamps turning off whilst the room is occupied I have inserted a 10 minute delay which I intended would reset the 10 minute delay each time any of the sensors are re-triggered.
However, my advanced flow does not seem to work correctly and the lights turn off after 10 mins when the room is still occupied.
Please can I ask for any suggestion on how I can modify the flow so the lamp remain on whilst the room is occupied? Thank you
You are missing a second trigger for turning off the lamps as the setup of your will always turn them off after the ten minutes timer is ended. Personally I have created zones for each room and will turn the lights on when the zone is activated, and tuning them off when the zone has been inactive for a certain amount of time. This way of doing it will also exclude the need of using a separate timer as you are using in the flow. Bear in mind that this is just one way of doing, but this is the one that I prefer. But despite of it all, you will need a second trigger.
âIf none of the presence sensors was activated for 10 minutes, turn off the lampsâ
Also look at the options to use the activity status of the room âLoungeâ. If all the sensors are in the same room that is much simpler than checking each sensor individually.
Most of the above solutions require more apps, so thatâs less space and less ram for your Homey for other use cases
The card already exists for Matter products, so just use that
Timers for presence is just time consuming to build, manage and troubleshoot. Also, if the community app stops being updated to be compatible for future Homey firmware updates, youâll have to redo those flows
People really need to start offering simple solutions for others on this forum and stop burdening them with unnecessary complexity
@Darren_Barton
I have written an extensive tutorial about how to implement presence detection and use it to control lights. You can read it down below.
However, for this specific use case I donât think youâll need that complex setup, nor any third party app. The Aqara apps allow you to just configure the reset time in the advanced settings of the presence sensor. Just increase the presence sensor reset time to 10 minutes (600 seconds) and youâre done.
I get that. It just occurred after a few weeks, and then several days all was ok again. That went on and on with unknown intervals;
I pulled my hair out what could be wrong, until I added a log card to that zone trigger card.
Maybe this issue is fixed in the meantime, I didnât notice it in the changelogs. Just to be sure to not be left in the dark, Iâll stick to the Chronograph timers