Page 1 of 1

Simple blocky only triggered by push on webpage

Posted: Wednesday 16 November 2016 13:49
by wormiedk
Hi

I have the following very simple blockly script
Screen Shot 2016-11-16 at 13.42.47.png
Screen Shot 2016-11-16 at 13.42.47.png (19.4 KiB) Viewed 874 times
which is supposed to write "hej" to the log whenever I push a button on a remote.

Domoticz correctly receives the button push:
2016-11-16 13:43:17.343 (RFLink) Light/Switch (RemA_Lock)
Screen Shot 2016-11-16 at 13.47.14.png
Screen Shot 2016-11-16 at 13.47.14.png (20.88 KiB) Viewed 874 times
But the blockly is never triggered. I have tried saving both as a "Device" and "All" script. If I push the switch on the webinterface the blockly is triggered correctly.


I have similar problems with other scripts which are not triggered e.g. by time
Screen Shot 2016-11-16 at 13.49.16.png
Screen Shot 2016-11-16 at 13.49.16.png (90.83 KiB) Viewed 874 times
Do you have any suggestions or should I simply write everything in Lua?

Re: Simple blocky only triggered by push on webpage

Posted: Wednesday 16 November 2016 14:00
by emme
remote are push button.. could it be that by the time the script triggers, the button is already off

try to add 1sec delay in deactivation in the button config and see if there are differences

Re: Simple blocky only triggered by push on webpage

Posted: Wednesday 16 November 2016 14:23
by qwerk
In your first problem you use a different name in the script than you use for the button.

your second issue, is maybe wrong use of if/then/else.
If I build the same it also does not work.
Knipsel2.PNG
Knipsel2.PNG (13.83 KiB) Viewed 862 times
that will work.