J'aurais besoin d'un petit coup de main j'ai écrit mon dzvent mais malheureusement celui-ci ne fonctionne pas j'ai essayer une bonne dizaine de combinaison mais je n'y arrive pas un coup de main serait pas de refus
Code : Tout sélectionner
return {
on = { devices = { "Capteur Porte"}},
execute = function(domoticz, item, devices )
if item.state == "Open" and devices.name == 'Plan de travail' == "Off" then
domoticz.devices("Plan de travail").dimTo(25)
end
if item.state == "Open" and devices.name == 'Plan de travail' == "On" then
domoticz.devices("Plan de travail").switchOff()
end
end
}