Example time dependent brightness level
Maarten Hemker
Administrator
in Logica
In this example, you can see how to use logic to switch a dimmer to a certain brightness depending on circumstances.
The first part, sets the dim level to use. Depending on the time of day, or the current status of the lights in de bedroom, the lights will be set very low (byte value for 4%) or normal (byte value for 80%). That way, when you turn on the lights at night, you are not blinded by bright lights. However, when you are already awake and have the lights on in the bedroom, or it is daytime, the lights will turn on as normal.
The second part will actually switch the lights. When you turn on the switch, the light will be set to the right dim level, when you turn it off, it will be set to 0.
The first part, sets the dim level to use. Depending on the time of day, or the current status of the lights in de bedroom, the lights will be set very low (byte value for 4%) or normal (byte value for 80%). That way, when you turn on the lights at night, you are not blinded by bright lights. However, when you are already awake and have the lights on in the bedroom, or it is daytime, the lights will turn on as normal.
The second part will actually switch the lights. When you turn on the switch, the light will be set to the right dim level, when you turn it off, it will be set to 0.
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