Re: Script lumiere, capteur et heure marche pas
Publié : 22 déc. 2015, 21:40
okvil1driver a écrit :penses à réactiver les protocoles qui vont bien dans la config rfxcom
Reprenez le contrôle de votre domotique
https://easydomoticz.com/forum/
okvil1driver a écrit :penses à réactiver les protocoles qui vont bien dans la config rfxcom
-- script_device_spot_garage.lua
-- Allumage du spot garage pour 5 minutes
-- si motion_entree détecte
-- si le spot est éteint
-- s'il fait nuit.
-- device utilisés: motion sensor 'motion_entree' , interrupteur garage 'inter_garage'
-------------------------------------------------------------------------------------
time = os.date("*t")
commandArray = {}
if (devicechanged['motion_entree'] == 'On' and otherdevices['inter_garage'] == 'Off' and timeofday['Nighttime']) then
commandArray['Inter spot garage']='On FOR 5'
end
return commandArray
-- script_device_inter_wc.lua
-- Allumage de la lampe wc pour 2 minutes
-- si motion_wc détecte
-- si la lampe est éteinte
-- device utilisés: motion sensor 'motion_wc' , interrupteur wc 'Inter_wc'
-------------------------------------------------------------------------------------
commandArray = {}
if (devicechanged['motion_wc'] == 'On' and otherdevices['inter_wc'] == 'Off') then
commandArray['inter_wc']='On FOR 2'
end
return commandArray
2015-12-23 09:35:13.028 (RFXcom) Lighting 2 (motion_entree)
2015-12-23 09:35:43.162 (RFXcom) Lighting 2 (motion_entree)
2015-12-23 09:35:52.921 (RFXcom) Lighting 2 (motion_entree)
2015-12-23 09:36:17.720 (RFXcom) Lighting 2 (motion_entree)
2015-12-23 09:36:20.998 (RFXcom) Lighting 2 (motion_entree)
2015-12-23 09:36:30.509 (RFXcom) Lighting 2 (motion_entree)
2015-12-23 09:36:33.618 (RFXcom) Lighting 2 (motion_entree)
2015-12-23 09:37:08.888 (RFXcom) Lighting 2 (motion_entree)
2015-12-23 09:37:21.253 (RFXcom) Lighting 2 (motion_wc)
2015-12-23 09:37:22.119 (RFXcom) Lighting 2 (inter_wc)
2015-12-23 09:37:23.057 (RFXcom) Lighting 2 (motion_wc)
2015-12-23 09:38:18.028 (RFXcom) Lighting 2 (motion_wc)
2015-12-23 09:39:26.151 (RFXcom) Lighting 2 (inter_wc)
2015-12-23 09:40:07.297 (RFXcom) Lighting 2 (motion_wc)
2015-12-23 09:40:08.168 (RFXcom) Lighting 2 (inter_wc)
2015-12-23 09:40:08.451 (RFXcom) Lighting 2 (motion_wc)
2015-12-23 09:40:18.566 (RFXcom) Lighting 2 (motion_wc)
2015-12-23 09:42:12.199 (RFXcom) Lighting 2 (inter_wc)
2015-12-23 09:43:17.513 (RFXcom) Lighting 2 (motion_entree)
2015-12-23 09:43:18.541 (RFXcom) Lighting 2 (motion_entree)
2015-12-23 09:43:29.953 (RFXcom) Lighting 2 (motion_entree)
2015-12-23 09:45:46.762 (RFXcom) Lighting 2 (motion_entree)
2015-12-23 09:45:59.165 (RFXcom) Lighting 2 (motion_entree)
Ok je pensait que j'avais peut être mal renseignévil1driver a écrit :Lighting2 c'est le type, c'est lié au protocole de communication.
Et pour la lampe dehors...quand je passe devant le motion dans le log il n'y a pas d'eventsystem comme pour les toilettes.2015-12-23 18:42:14.337 EventSystem: Script event triggered: /home/pi/domoticz/scripts/lua/script_device_inter_wc.lua
2015-12-23 18:42:14.314 (RFXcom) Lighting 2 (motion_wc)
2015-12-23 18:42:14.946 (RFXcom) Lighting 2 (inter_wc)
2015-12-23 18:42:16.042 (RFXcom) Lighting 2 (motion_wc)
2015-12-23 18:42:19.489 Hardware Monitor: Fetching data (System sensors)
2015-12-23 18:42:24.310 (RFXcom) Lighting 2 (motion_wc)
2015-12-23 18:42:27.380 (RFXcom) Lighting 2 (motion_wc)
2015-12-23 18:42:38.761 (RFXcom) Temp + Humidity (exterieure)
2015-12-23 18:42:39.353 (RFXcom) Lighting 2 (motion_wc)
2015-12-23 18:42:49.582 Hardware Monitor: Fetching data (System sensors)