J'ai essayé d'allumer ma yeelight par un switch en blocky en activant un groupe, ca fonctionne bien pour l'allumage, mais l'extinction prend 30 secondes.
Donc je me suis dit, tentons une 1ere expérience simple en lua.
J'ai donc fait ce petit script :
Code : Tout sélectionner
commandArray = {}
if (devicechanged['Switch essai']=='Click' and devicechanged['Ampoule Salon']=='Off') then
commandArray['Group:Lumiere blanche']='On'
else
if (devicechanged['Switch essai']=='Click' and devicechanged['Ampoule Salon']=='On') then
commandArray['Group:Lumiere blanche']='Off'
end
return commandArrayDe l'aide svp pour un débutant...
Merci.