I have an Ikea Trädfri connected trough Sonoff ZbBridge and I can control it fully with an switch (blinds percentage)
The only thing is it works inverted So open is closed and closed is open.... Is there a way to invert the switch?
Code: Select all
return {
on = {
devices = { 392 }, -- Rolgordijn switch
},
logging = {
level = domoticz.LOG_INFO,
marker = 'Rolgordijn',
},
execute = function(domoticz)
local level = domoticz.devices(392).level
local http_send = 'http://192.168.178.28/cs?c2=111&c1=ZbSend%20{"Device":"0x6A62",%20"Send":{"ShutterLift":%20'..level..'}}'
domoticz.log('Gordijn ingesteld op '..level..'')
domoticz.openURL({
url = http_send
})
end
}