I have now been testing couple precense blockly and lua, with my raspberry domoticz (stable).
It somehow broke up I think after one system upgrade. it was simple as any of 3 phones is online(simple dummy on/off switches) it set fourth switch on and set one variable to 1
I did make it up again but now it wont work. not with simple dummy aswitch or with door contact.
No I even installed clean domoticz (beta) debian vm to my vmware and made it again but now it just wont work. any help?
not even that print line wont work.
and lua
Code: Select all
ommandArray = {}
if (otherdevices['switch1'] == 'On' and otherdevices['home'] == 'Off' ) then
commandArray['home']='On'
commandArray['Variable:homeVar']='1'
print ('home !')
else
commandArray['home']='Off'
commandArray['Variable:homeVar']='0'
print ('not at home')
end
return commandArray
Code: Select all
2018-03-27 19:33:39.029 EventSystem: reset all device statuses...
2018-03-27 19:33:54.316 EventSystem: reset all events...
2018-03-27 19:33:59.014 User: Admin initiated a switch command (1/switch1/Off)
2018-03-27 19:33:59.015 (dummy) Lighting 1 (switch1)
2018-03-27 19:34:00.654 User: Admin initiated a switch command (1/switch1/On)
2018-03-27 19:34:00.655 (dummy) Lighting 1 (switch1)