Example button detector
Maarten Hemker
Administrator
In this example, you can see how to use a button detector.
We have used a pulse switch (binary status component in the project), as the trigger.
- When you press the pulse switch 1x for a short time, the basic scenario of the kitchen is activated.
- When you press the pulse switch 2x for a short time, the hood in the kitchen is toggled, so it switches on if it was off, and vice versa. For this action a bit toggle element is added, where we included the current value of the hood as a status value for the toggle.
- When you press the pulse switch for a long time, the scenario "Kitchen off" is activated.
That way, a single pulse switch in the room now has three distinct functions, that are easy to use.
We have used a pulse switch (binary status component in the project), as the trigger.
- When you press the pulse switch 1x for a short time, the basic scenario of the kitchen is activated.
- When you press the pulse switch 2x for a short time, the hood in the kitchen is toggled, so it switches on if it was off, and vice versa. For this action a bit toggle element is added, where we included the current value of the hood as a status value for the toggle.
- When you press the pulse switch for a long time, the scenario "Kitchen off" is activated.
That way, a single pulse switch in the room now has three distinct functions, that are easy to use.
Categorieën
- 348 Alle Categorieën
- 26 Release notes
- 8 Release notes - Pairot
- 18 Release notes - xxter
- 8 Pairot
- 47 Algemeen
- 4 Device
- App
- Project
- 2 Voice assistants
- 3 xxter
- 122 Algemeen
- 46 Algemeen
- 31 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
- 93 Project
- 6 Logica
- 1 Aanwezigheidsdetectie
- 12 Acties
- 3 BREEAM
- 14 Cameras
- 16 Componenten
- 1 Config Tool
- 6 Opdrachten
- 28 Native scripts
- 3 LUA scripts
- 3 Statistieken
- 48 Device
- 41 Device algemeen
- 3 Toegangsrechten en lokale gebruikers
- 4 Aanwezigheidssimulatie / Presence simulation