Simple blocky only triggered by push on webpage

Moderator: leecollings

Post Reply
wormiedk
Posts: 15
Joined: Wednesday 18 May 2016 5:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Simple blocky only triggered by push on webpage

Post 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 870 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 870 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 870 times
Do you have any suggestions or should I simply write everything in Lua?
User avatar
emme
Posts: 909
Joined: Monday 27 June 2016 11:02
Target OS: Raspberry Pi / ODroid
Domoticz version: latest
Location: Milano, Italy
Contact:

Re: Simple blocky only triggered by push on webpage

Post 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
The most dangerous phrase in any language is:
"We always done this way"
qwerk
Posts: 222
Joined: Tuesday 22 July 2014 7:21
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Netherlands
Contact:

Re: Simple blocky only triggered by push on webpage

Post 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 858 times
that will work.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest