- Got a virtual switch named: 'Yamaha'
- I've got the following lua script(script_device_Yamaha.lua) which resides in the folder: '/volume1/@appstore/domoticz/var/scripts/lua'
Code: Select all
commandArray = {}
if (devicechanged['Yamaha'] == 'Off') then
os.execute ("/volume1/@appstore/domoticz/var/scripts/test.sh")
end
return commandArray
- The 'test.sh' has got the following code:
Code: Select all
#!/bin/sh
python /volume1/@appstore/domoticz/var/scripts/rxv_uit.py
Problem lies with the lua script I think. Also I see no logging entries, looks like the lua script is not detected by Domoticz?
If someone can point me in the right direction that would be great!