lua script system broken

Moderator: leecollings

Post Reply
timop
Posts: 57
Joined: Sunday 03 January 2016 17:10
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

lua script system broken

Post by timop »

I have whole weekend to made different lua scripts with my domoticz v. 3.8153.
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


what is wrong ?

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..
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest