Domoticz: PHP event handling

It is possible to let PHP handle Domoticz events. Place the lua script script_device_php.lua in the lua folder of your Domoticz scripts folder. All scripts with a name that start with script_device_*.lua are executed upon every device update. # script_device_php.lua json = (loadfile "/home/pi/domoticz/scripts/lua/JSON.lua")()   devicechanged = json:encode(devicechanged) deviceslastupdate = json:encode(otherdevices_lastupdate)   command = string.format("php
Continue reading Domoticz: PHP event handling