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.