at the moment im using Tautulli to monitor plex activitys, Tautulli can send an json call to domoticz based on playbacks.
i tested this with updating some uservariables and this works great..
But is there a way to trigger a dz.vents script by using a json call?
try to do something like this, but its not working..
Code: Select all
return {
on = {
devices = {
'test'
}
},
execute = function(domoticz, mySwitch)
domoticz.emitEvent('my_switch').switchOn()
end
}Code: Select all
http://192.168.1.11:8080/json.htm?type=command¶m=customevent&event=my_switch