Blockly script does not what I expect

Moderator: leecollings

Post Reply
rick8245
Posts: 74
Joined: Wednesday 22 April 2020 15:59
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Blockly script does not what I expect

Post by rick8245 »

Hi,

I have this blockly script which has to do the following:

- After 15:00 and lux lower than 70 then switch on the light (that step works fine)
- Than switch the lamp of during weekdays at 22:31 (that works fine too)
- Or switch off the lamp during the weekend at 23:31 (this does not work, the lamp will be switched off at 22:30 )

What is wrong here?
I tried all kind of settings but it
dom_week.png
dom_week.png (43.73 KiB) Viewed 931 times
still does not work.

Thanks in advance.

Rick8245
BennY
Posts: 24
Joined: Tuesday 27 February 2018 8:25
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Blockly script does not what I expect

Post by BennY »

Your Second condition is true in every weekday.

Change "Not friday or Not saturday" to "not friday and Not saturday".
rick8245
Posts: 74
Joined: Wednesday 22 April 2020 15:59
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Blockly script does not what I expect

Post by rick8245 »

Hi BennY,

Thanks for your reply.

I will test this one off these days and I will let you know the result.

Regards, Rick8245
rick8245
Posts: 74
Joined: Wednesday 22 April 2020 15:59
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Blockly script does not what I expect

Post by rick8245 »

Hi BennY,

It works GREAT !!!!
Thank you very much

Regards, Rick8245
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest