I've followed the instructions of renaming the demo scripts, but they never ever seem to trigger.
cat script_time_test.lua
Code: Select all
print('this will end up in the domoticz log')
Code: Select all
print('Light Test One')
commandArray = {}
if (devicechanged['Trap/Gang Licht'] == 'Off' then
commandArray['Trap/Gang Licht']='On'
end
return commandArray