Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Script de commande de luminosité automatique - LFPoulain
- commandArray = {}
- DomDevice = 'PhotoResist'; -- Le capteur de luminosité
- InterDevice = 'LumiereAuto'; -- L'interrupteur d'activation du mode
- CommandDevice = 'Plafonnier Bureau'; -- Le peripherique à controler
- if otherdevices[InterDevice] == 'On' then
- if devicechanged[DomDevice] then
- DomValue = otherdevices_svalues[DomDevice]
- commandArray[CommandDevice]='Set Level '..(DomValue)
- end
- end
- return commandArray
Advertisement
Add Comment
Please, Sign In to add comment