I did had some issues to get it working, most of the time the return was a nill value, after some playing around I have found a solution by sending a http message witch I adjusted. Now I finally can control my eurotronic device like mentioned. Thanks
Code that did the trick for me,
Code: Select all
return {
on = {
devices = { 197, --Setpoint gang
},
},
logging = {
level = domoticz.LOG_INFO,
marker = 'Heater',
},
execute = function(domoticz)
local mySetpoint = domoticz.devices(197).setPoint
local http_send = 'http://192.168.178.162/cs?c2=111&c1=ZbSend%20{"Device":"0x8A30",%20"Write":{"OccupiedHeatingSetpoint":%20'..mySetpoint..'}}'
domoticz.log('Temperatuur ingesteld op '..mySetpoint..'')
domoticz.openURL({
url = http_send
})
end
}