Dummy selector, script not running
Posted: Monday 18 February 2019 18:06
Hi,
First time post and I'm stumped..
I have a dummy selector switch called 'override'. I've set up values of 0, 10, 20, 30 with corresponding lua scripts of, e.g.,
The lua scripts contain
Eventually they'll set different levels but for now, that's it. If I click one of the levels, my log shows:
but absolutely nothing else happens.
If I rename the override30.lua script to script_device_override.lua it fires every time I press the selector and displays 'hello world' but if I run it from the selector - nothing.
After Googling other peoples' similar problems, I've tried making the lua file executable by everyone (to eliminate one error) and adding the #! line to eliminate a second but now I'm stumped. Any help greatly appreciated.
First time post and I'm stumped..
I have a dummy selector switch called 'override'. I've set up values of 0, 10, 20, 30 with corresponding lua scripts of, e.g.,
Code: Select all
script:///home/pi/domoticz/scripts/lua/override30.lua
Code: Select all
#!/usr/bin/lua
command Array = {}
print ('hello world')
return commandArray
Code: Select all
2019-02-18 16:54:55.872 Status: User: username initiated a switch command (60/Override/Set Level)
2019-02-18 16:54:56.081 Status: Executing script: /home/pi/domoticz/scripts/lua/override30.lua
If I rename the override30.lua script to script_device_override.lua it fires every time I press the selector and displays 'hello world' but if I run it from the selector - nothing.
After Googling other peoples' similar problems, I've tried making the lua file executable by everyone (to eliminate one error) and adding the #! line to eliminate a second but now I'm stumped. Any help greatly appreciated.