return {
on = {
devices = {
'SwitchA',
'SwitchB'
}
},
execute = function(domoticz, device)
if (device.name == 'SwitchA') then
domoticz.openURL({
url = 'https://maker.ifttt.com/trigger/Zonnescherm_open/with/key/aBc0DEFGHIjklmnopQRStuVwxYZA234BcDEfGHijklM'
})
domoticz.variables('zonnescherm_status').set("Open")
else
domoticz.openURL({
url = 'https://maker.ifttt.com/trigger/Zonnescherm_dicht/with/key/aBc0DEFGHIjklmnopQRStuVwxYZA234BcDEfGHijklM'
})
domoticz.variables('zonnescherm_status').set("Dicht")
end
domoticz.log ("Zonnescherm status" .. zonnescherm_status, domoticz.LOG_INFO)
end
}