Example delay fan for bathroom
Maarten Hemker
Administrator
In this example, we made a fan that only starts if the lights in the bathroom are on for longer than 1 minute, and then as soon as the lights go out, runs for 5 more minutes.
This top part of the logic uses a delay bit, to let through the "ON" command only after 1 minute. In case the lights go off within that minute, nothing happens. Therefore, the delay should be set to delay only "1 values" and to make sure the fan is never turned off directly, a filter bit is added, only allowing the "ON" command through.
The second part of the logic, is to start the timer when the lights go off again. To do this, the "OFF" command is inverted with an invert bit and compared to the current status of the fan with an and port. If this results in "TRUE" the lights have gone off and the fan is on. Then, the light timer should be triggered to keep the fan on for another 5 minutes. To make sure the fan is not stopped prematurely, the light timer should be set to "allow immediate off" = NO.
This top part of the logic uses a delay bit, to let through the "ON" command only after 1 minute. In case the lights go off within that minute, nothing happens. Therefore, the delay should be set to delay only "1 values" and to make sure the fan is never turned off directly, a filter bit is added, only allowing the "ON" command through.
The second part of the logic, is to start the timer when the lights go off again. To do this, the "OFF" command is inverted with an invert bit and compared to the current status of the fan with an and port. If this results in "TRUE" the lights have gone off and the fan is on. Then, the light timer should be triggered to keep the fan on for another 5 minutes. To make sure the fan is not stopped prematurely, the light timer should be set to "allow immediate off" = NO.
Categorieën
- 361 Alle Categorieën
- 28 Release notes
- 8 Release notes - Pairot
- 20 Release notes - xxter
- 12 Pairot
- 48 Algemeen
- 5 Device
- App
- 1 Project
- 3 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