I was trying to make basic presence lua script where any of three switches are on (phones) and then lua script switches on "anyone home" switch.
but I cannot get work even with only one (MyPhone) switch
script is named "script_device_anyonehome.lua" and its chmodded with +x
Code: Select all
commandArray = {}
if (devicechanged['MyPhone'] == 'On')
then
commandArray['anyonehome']='On'
end
return commandArray
I dont understand, even simple blockly event doesnt work anymore..
edit:
this can be deletet, I will make new topic to general. something wrong with my domoticz because in another domoticz rpi this blockly event works..