Using timers in actions
Ivo Jansch
Gebruiker, Specialist
in Acties
I have an action that triggers a set of lights if I hit a motion detector.
Now I want to turn off the lights 10 minutes after the last time I hit the motion detector. How do I achieve this?
I.e. I walk through the detector, timer gets reset to 10 minutes.
I walk through the detector again, timer gets reset to 10 minutes again.
When timer gets to 0: turn off the lights.
Now I want to turn off the lights 10 minutes after the last time I hit the motion detector. How do I achieve this?
I.e. I walk through the detector, timer gets reset to 10 minutes.
I walk through the detector again, timer gets reset to 10 minutes again.
When timer gets to 0: turn off the lights.
Reacties
-
Hi Ivo,
Good question.
I recommend to create a script for this. See below.WAIT 10MIN SET BIT(xx/Lamp) to 0
Next change the action you already created to trigger the script instead of the lights. Also set the script to "restart" instead of "start". This way the WAIT period will be reset to 10 minutes when the motion sensor is triggered again.
* Some extra information on the actions.
It's possible to add a "WAIT" to an action, but this is only meant for a "WAIT" that will only be triggered once. So in this case this is not suitable because the motion sensor can be triggered multiple times. It will result in the actions being stacked and this can lead to unexpected results.
Categorieën
- 360 Alle Categorieën
- 28 Release notes
- 8 Release notes - Pairot
- 20 Release notes - xxter
- 11 Pairot
- 48 Algemeen
- 5 Device
- App
- 1 Project
- 2 Voice assistants
- 10 xxter
- 126 Algemeen
- 47 Algemeen
- 34 Nieuwe functionaliteiten en nieuwe features
- 21 Apps
- 20 Apps algemeen
- 1 Apps Beta release
- 24 Profielen
- 7 Profiel algemeen
- 16 Pagina's en pagina elementen
- 1 Waarschuwingsservice
- 94 Project
- 6 Logica
- 2 Aanwezigheidsdetectie
- 12 Acties
- 3 BREEAM
- 14 Cameras
- 16 Componenten
- 1 Config Tool
- 6 Opdrachten
- 28 Native scripts
- 3 LUA scripts
- 3 Statistieken
- 50 Device
- 42 Device algemeen
- 3 Toegangsrechten en lokale gebruikers
- 4 Aanwezigheidssimulatie / Presence simulation