My eventdoes not work like I expect

Topics (not sure which fora)
when not sure where to post, post here and mods will move it to right forum.

Moderators: leecollings, remb0

Post Reply
casn
Posts: 13
Joined: Tuesday 29 January 2019 20:24
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

My eventdoes not work like I expect

Post by casn »

I have set up the following event in blockly:
blockly.JPG
blockly.JPG (38.33 KiB) Viewed 307 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 :mrgreen:

What am I missing?
User avatar
jvdz
Posts: 2335
Joined: Tuesday 30 December 2014 19:25
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.107
Location: Netherlands
Contact:

Re: My eventdoes not work like I expect

Post by jvdz »

The On logic will ONLY be true at 20:00 as you test for: Time = 20:00.

Jos
New Garbage collection scripts: https://github.com/jvanderzande/GarbageCalendar
casn
Posts: 13
Joined: Tuesday 29 January 2019 20:24
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: My eventdoes not work like I expect

Post by casn »

Thanks, missed that one :roll:
casn
Posts: 13
Joined: Tuesday 29 January 2019 20:24
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: My eventdoes not work like I expect

Post 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
blockly2.JPG (108.3 KiB) Viewed 288 times
User avatar
jvdz
Posts: 2335
Joined: Tuesday 30 December 2014 19:25
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.107
Location: Netherlands
Contact:

Re: My eventdoes not work like I expect

Post 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
New Garbage collection scripts: https://github.com/jvanderzande/GarbageCalendar
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest