I'm fairly good at programming but new to Domoticz and Blocky. I'm trying to create a script that turns on a light if the following conditions are met:
- Frontdoor [voordeur] (switch) set to open
- Time is between 22:00 and 23:59
- Light at staircase [trap] (dimmer) = off
Below the Blocky build (name=Voordeur): When triggering the event (door opens) however the if's, other than the first are not correcty evaluated, so no matter what the time is, nor what the state of [trap] is, the action is performed always:
Logfile:
Code: Select all
2017-01-27 19:55:31.452 EventSystem: Event triggered: Voordeur_1
2017-01-27 19:55:31.452 Voordeur open
2017-01-27 19:55:31.453 Tijd 22:00-23:59
2017-01-27 19:55:31.453 Licht bij trap is uit: tijdelijk aan
Thanks in advance for the help.