Page 1 of 1
My eventdoes not work like I expect
Posted: Saturday 02 February 2019 13:13
by casn
I have set up the following event in blockly:

- blockly.JPG (38.33 KiB) Viewed 305 times
My intention is the following:
If between 7 and hours
if switch is Off
if temperature <= 20
set switch on
else
if temp > 20
set switch off
However the event is not making any changes although switch = off and temperature is below 20.
The event is active
What am I missing?
Re: My eventdoes not work like I expect
Posted: Saturday 02 February 2019 13:26
by jvdz
The On logic will ONLY be true at 20:00 as you test for: Time = 20:00.
Jos
Re: My eventdoes not work like I expect
Posted: Saturday 02 February 2019 17:23
by casn
Thanks, missed that one

Re: My eventdoes not work like I expect
Posted: Sunday 03 February 2019 12:27
by casn
Trying to expand my logic such that I have a different event logic in the weekend compared to weekdays.
It is now Sunday 12:15 and my temperature gives 19,3 degrees, why is the device not switched ON?
If I switch it on manually, it remains ON?

- blockly2.JPG (108.3 KiB) Viewed 286 times
Re: My eventdoes not work like I expect
Posted: Sunday 03 February 2019 12:46
by jvdz
Nested If's don't work in Blockly as far as I know. I always use LUA scripts for any logic, but you could also use DzVents scripts.
Jos