Blockly & Varíable does not work

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

Blockly & Varíable does not work

Post by Joerg99 » Wednesday 02 May 2018 14:19

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 226 times

EricT
Posts: 20
Joined: Tuesday 01 May 2018 8:09
Target OS: Raspberry Pi
Domoticz version: 3.9440
Location: Rijen, The Netherlands
Contact:

Re: Blockly & Varíable does not work

Post by EricT » Friday 04 May 2018 11:38

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: 5
Joined: Thursday 08 March 2018 14:35
Target OS: Windows
Domoticz version:
Contact:

Re: Blockly & Varíable does not work

Post by Joerg99 » Monday 07 May 2018 17:11

Thanks, I'll try that and get in touch

tozzke
Posts: 130
Joined: Friday 02 January 2015 10:22
Target OS: Raspberry Pi
Domoticz version: Beta
Location: Netherlands
Contact:

Re: Blockly & Varíable does not work

Post by tozzke » Monday 07 May 2018 18:16

Did you change your Blockly Event type to UserVariable?

Joerg99
Posts: 5
Joined: Thursday 08 March 2018 14:35
Target OS: Windows
Domoticz version:
Contact:

Re: Blockly & Varíable does not work

Post by Joerg99 » Monday 07 May 2018 21:09

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: 20
Joined: Tuesday 01 May 2018 8:09
Target OS: Raspberry Pi
Domoticz version: 3.9440
Location: Rijen, The Netherlands
Contact:

Re: Blockly & Varíable does not work

Post by EricT » Tuesday 08 May 2018 0:23

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 0 guests