Example button detector

Maarten Hemker
Maarten Hemker Administrator
October 2022 aangepast in Logica
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.