Help!!! Blockly timer

Moderator: leecollings

Post Reply
delfisastre
Posts: 18
Joined: Wednesday 05 October 2016 11:08
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.1
Location: Catalonia, Barcelona
Contact:

Help!!! Blockly timer

Post by delfisastre »

Hello people!

I'm working to improve my blockly's scripts and one of theaseone's is not working.

The light works good, and turn on or off depends the conditions, but doesn't work the timer. I want to dimmer the light depending of the hours.

any idea? thanks!!!!
Attachments
blockly.JPG
blockly.JPG (41.56 KiB) Viewed 1070 times
bert
Posts: 17
Joined: Monday 27 October 2014 23:57
Target OS: Linux
Domoticz version:
Contact:

Re: Help!!! Blockly timer

Post by bert »

you will need a time trigger for the Do's to be executed.
Right now your triggers are light level, the TV and the PC. if either of them change state, the function will check the time and act accordingly.
Time itself is not a trigger in your blocky at the moment; you will need to include that in the IF statement.

A good example:
https://www.domoticz.com/forum/viewtopi ... 911#p15911
delfisastre
Posts: 18
Joined: Wednesday 05 October 2016 11:08
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.1
Location: Catalonia, Barcelona
Contact:

Re: Help!!! Blockly timer

Post by delfisastre »

Now works!!! thanks!
Attachments
somot2.JPG
somot2.JPG (53.58 KiB) Viewed 1021 times
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests