roller shutter and protect light on
Posted: Thursday 06 June 2019 12:39
Bonjour,
Je chercher a écrire mon dzvent pour l'ouverture et fermeture des volet selon le coucher ou lever du soleil mais je bloque sur la partie du script avec la lumière on
Je chercher a écrire mon dzvent pour l'ouverture et fermeture des volet selon le coucher ou lever du soleil mais je bloque sur la partie du script avec la lumière on
Code: Select all
return {
on = { timer = { '30 minutes after sunset','30 minutes after sunrise' },
devices = {'Lightgarden'}
},
execute = function(dz, item )
if dz.time.matchesRule('30 minutes after sunset') and then
if dz.devices == 'Off'
domoticz.openURL('https://maker.ifttt.com/trigger/Volet_salon_fermeture/with/key/xxxx) --closeblind
domoticz.openURL('https://maker.ifttt.com/trigger/Volet_cuisine_fermeture/with/key/xxxxx) --closeblind
elseif dz.time.matchesRule('30 minutes after sunrise') then
domoticz.openURL('https://maker.ifttt.com/trigger/Volet_salon_ouverture/with/key/xxxx') --Openblind
domoticz.openURL('https://maker.ifttt.com/trigger/Volet_cuisine_ouverture/with/key/xxxxx') --Openblind
If dz.device('Lifgtgarden'] == 'On' then
wait light garden off and close blind nightime
end
end
end
}