Hi
I have the following very simple blockly script
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)
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
Do you have any suggestions or should I simply write everything in Lua?
Simple blocky only triggered by push on webpage
Moderator: leecollings
- 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
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
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"
"We always done this way"
-
- 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
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.
that will work.
your second issue, is maybe wrong use of if/then/else.
If I build the same it also does not work.
that will work.
Who is online
Users browsing this forum: No registered users and 1 guest