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
- 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