Blockly & Varíable does not work

Moderator: leecollings

Post Reply
Joerg99
Posts: 6
Joined: Thursday 08 March 2018 13:35
Target OS: Windows
Domoticz version:
Contact:

Blockly & Varíable does not work

Post by Joerg99 »

I have the following problem, I have written the blockly shown below but it does not work. It switches once when I change the variable but it does not automatically turn on. The internal temperature I have entered via a virtual dummy he is visible and displays correctly in Domoticz. does anyone know a solution?
Attachments
20180502_135554.jpg
20180502_135554.jpg (103.32 KiB) Viewed 1387 times
EricT
Posts: 30
Joined: Tuesday 01 May 2018 8:09
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.9440
Location: Rijen, The Netherlands
Contact:

Re: Blockly & Varíable does not work

Post by EricT »

I don't know much about Blockly but I think you are missing something to trigger that script. Maybe adding a time or a switch to the script may solve your problem.

E.g
if time is 9 AM and temp < 20 then turn on heating
or
if switch is On and temp < 20 then turn on heating
if it was easy everybody would do it
Joerg99
Posts: 6
Joined: Thursday 08 March 2018 13:35
Target OS: Windows
Domoticz version:
Contact:

Re: Blockly & Varíable does not work

Post by Joerg99 »

Thanks, I'll try that and get in touch
tozzke
Posts: 135
Joined: Friday 02 January 2015 9:22
Target OS: Raspberry Pi / ODroid
Domoticz version: Stable
Location: Netherlands
Contact:

Re: Blockly & Varíable does not work

Post by tozzke »

Did you change your Blockly Event type to UserVariable?
Joerg99
Posts: 6
Joined: Thursday 08 March 2018 13:35
Target OS: Windows
Domoticz version:
Contact:

Re: Blockly & Varíable does not work

Post by Joerg99 »

I don't know much about Blockly but I think you are missing something to trigger that script. Maybe adding a time or a switch to the script may solve your problem.

E.g
if time is 9 AM and temp < 20 then turn on heating
or
if switch is On and temp < 20 then turn on heating




Thanks that was exactly the right idea !!!
it works perfect !!
Thank you so much EricT !!
EricT
Posts: 30
Joined: Tuesday 01 May 2018 8:09
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.9440
Location: Rijen, The Netherlands
Contact:

Re: Blockly & Varíable does not work

Post by EricT »

I am glad to be able to help. :)
if it was easy everybody would do it
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest