Aller au contenu

sebcbien

Membres confirmés
  • Compteur de contenus

    4 189
  • Inscription

  • Dernière visite

  • Jours gagnés

    85

Tout ce qui a été posté par sebcbien

  1. Attention, vu les grosses modifs, il reste sans doute des bugs ;-) Sent From my Vic20
  2. j'ai mon temps :-) pour toutes les versions du code: https://github.com/sjauquet et aussi dans ma signature.
  3. voici la V2.4.2 --[[ %% autostart %% properties %% globals Simu_presence --]] -------------------------------- -- YAPS Presence Simulator V2.4.2 -- SebcBien -- Janvier 2015 -------------------------------- --v2.4.2 -- Fine tuning --v2.4.1 -- fixed big bug simulator restarting after end time --V2.3.1 -- small notification and debug changes --V2.3 -- Rewriting the engine -- now relaunch automatically the next day, even if Simu_presence has not changed --V2.2 -- Added Manual Stop variable -- added list of mobiles if (fibaro:countScenes() > 1) then fibaro:debug("More than one scene active, exiting!"); fibaro:abort(); end --------------------- USER SETTINGS -------------------------------- local id = { LAMPE_SDB = 16, LAMPE_CH_AMIS = 24, LAMPE_SALON = 45, LAMPE_BUREAU = 49, LAMPE_HALL = 52, LAMPE_CELLIER = 56, LAMPE_CH_EMILIEN = 58, PHONE_NEXUS_5 = 53, PHONE_NEXUS_4 = 104 } local stop_hour = "01"; -- Hour when you want simulation to stop local stop_minute = "10"; -- Minute of the hour you want simulation to stop -- note 1: the script will not exit while waiting the random time of the last light turned on. So end time can be longer than specified end time -- note 2: if the global variable changes during the same wait time as above, it will exit immediately (when back home while simulation runs) local rndmaxtime = 15 -- random time of light change in minutes --> here each device is on maximum 30min local ID_devices_lights = {id["LAMPE_SDB"],id["LAMPE_BUREAU"],id["LAMPE_HALL"],id["LAMPE_CELLIER"],id["LAMPE_CH_AMIS"]} -- IDs of lights to use in simulation --local ID_devices_lights = {id["LAMPE_BUREAU"],id["LAMPE_CELLIER"]} -- IDs of lights to use in simulation local activatePush = true; -- activate push when simulation starts and stops --local ID_Smartphone = 53; -- ID of your smartphone --local ID_Smartphones = {id["PHONE_NEXUS_5"],id["PHONE_NEXUS_4"]}; local ID_Smartphones = {id["PHONE_NEXUS_5"]}; local ID_On_After_Simu = id["LAMPE_HALL"] -- Only One ID of a lamp to turn on after simulation ends (set 0 to disable) local Manual_Stop = 1 -- 0 will not turn on the lamp "ID_On_After_Simu" at the end of the script. Replace this variable by a global value if you want to automate --------------------- USER SETTINGS END ---------------------------- ----------------------ADVANCED SETTINGS----------------------------- local showStandardDebugInfo = true; -- Debug shown in white local showExtraDebugInfo = true; -- Debug shown in orange local numbers_lights = #ID_devices_lights -- numbers of light devices listed above local manualOveride = fibaro:getGlobal("overideSimuSunset"); -- if = 1 then the simulation is forced -------------------------------------------------------------------- ----------------------------------- ----- Do not change code below ---- ----------------------------------- local simu = fibaro:getGlobal("Simu_presence"); --value of the global value: simulation is on or off local start_simu = fibaro:getValue(1, "sunsetHour"); --Start simulation when sunset local endtime local wait_for_tomorrow = 0 local NotifLoop = 30 version = "2.4.2" SimulatorPresenceEngine = {}; -- debug function Debug = function ( color, message ) fibaro:debug(string.format('<%s style="color:%s;">%s</%s>', "span", color, message, "span")); end ExtraDebug = function (debugMessage) if ( showExtraDebugInfo ) then Debug( "orange", debugMessage); end end StandardDebug = function (debugMessage) if ( showStandardDebugInfo ) then Debug( "white", debugMessage); end end -- function push message to mobile pushMessage = function (sendPush) if (activatePush) then for i=1, #ID_Smartphones do fibaro:call(tonumber(ID_Smartphones[i]), 'sendPush', sendPush); ExtraDebug("Push message ("..sendPush..") sent to mobile: "..tonumber(ID_Smartphones[i])); end end end -- function to calculate endtime function SimulatorPresenceEngine:EndTimeCalc() local start = os.date("%H:%M") local time = os.time() local date = os.date("*t", time) local year = date.year local month = date.month local day = date.day endtime = os.time{year=year, month=month, day=day, hour=stop_hour, min=stop_minute, sec=sec} -- to calculate when it's daytime local currentHour = os.date("*t") local sunrise = tonumber(string.sub (fibaro:getValue(1,'sunriseHour'), 1 , 2) ) * 60 + tonumber(string.sub(fibaro:getValue(1,'sunriseHour'), 4) ) local sunset = tonumber(string.sub (fibaro:getValue(1,'sunsetHour'), 1 , 2) ) * 60 + tonumber(string.sub(fibaro:getValue(1,'sunsetHour'), 4) ) local now = currentHour.hour * 60 + currentHour.min; --ExtraDebug ("debug info: Sunrise : " .. sunrise .. " Sunset : "..sunset .. " Now : " ..now); --ExtraDebug ("debug info: Current OS Time" ..os.time()) --ExtraDebug ("debug info: Original planed EndTime " ..endtime) --ExtraDebug ("debug info: os.date: "..os.date("%H:%M").. " sunrisehour: "..fibaro:getValue(1, "sunriseHour")) if ((wait_for_tomorrow == 0) and (endtime < os.time())) then -- if endtime is gone and it's the first launch of simulator endtime = endtime + 24*60*60 -- add 24h at endtime after the night is gone start_simu = fibaro:getValue(1, "sunsetHour"); -- recalculate for next day ExtraDebug ("Added 24H to Endtime (first start ending after midnignt)"); ExtraDebug ("Recalculated Simulation StartHour (Sunset): " .. start_simu); wait_for_tomorrow = 1 end if (wait_for_tomorrow == 1 and (endtime < os.time()) and ((now >= sunrise) and (now <= sunset))) then -- if it looping days and endtime is gone and we are daytime endtime = endtime + 24*60*60 -- add 24h at endtime after the night is gone start_simu = fibaro:getValue(1, "sunsetHour"); -- recalculate for next day ExtraDebug ("Added One Day to Endtime: " .. endtime); ExtraDebug ("Recalculated Simulation StartHour (Sunset): " .. start_simu); end --ExtraDebug ("debug info: Recalculated planed EndTime " ..endtime) end -- function to simulate a presence function SimulatorPresenceEngine:Launch() pushMessage("Lights simulation started, will stop at: "..stop_hour..":"..stop_minute) ExtraDebug("Lights simulation started, will stop at: "..stop_hour..":"..stop_minute ); while ((os.time() <= endtime) and (simu == "1")) or ((manualOveride == "1")) do -- original code: while ((os.time() <= endtime) and (simu == "1")) or ((os.time() <= endtime) and (simu == "1") and (manualOveride == "1")) do if time == endtime then StandardDebug("time and endtime same value -> end") end local random_light = tonumber(ID_devices_lights[math.random(numbers_lights)]) --choose a random light in the list local lightstatus = fibaro:getValue(random_light, 'value') --get the value of the random light in the list -- turn on the light if off or turn off if on if tonumber(lightstatus) == 0 then fibaro:call(random_light, 'turnOn') else fibaro:call(random_light, 'turnOff') end fibaro:sleep(1000); --necessary to get back the new status, because HC2 is too fast :-) lightstatus = fibaro:getValue(random_light, 'value') --get the value of the random light after his update StandardDebug('light ID:'..random_light..' status:'..lightstatus); local sleeptime = math.random(rndmaxtime*60000) --random sleep fibaro:debug("entering loop of " .. sleeptime/60000 .. "minutes"); -- This modification allows to exit the scene if the Simu_presence global var changes to 0 during the random sleep local counterexitsimu = 200 while (counterexitsimu > 0) do counterexitsimu = counterexitsimu - 1; test_presence_state = fibaro:getGlobal("Simu_presence"); simu = tonumber(test_presence_state); --verify the global value, if the virtual device is deactivated, the scene stops. --fibaro:debug("simu var state : " .. simu); if simu == 0 then counterexitsimu = 0 end fibaro:sleep(sleeptime/200); end fibaro:debug("exiting loop of " .. sleeptime/60000 .. "minutes"); local sleeptimemin = math.abs(sleeptime/60000) StandardDebug('sleeptime:'..sleeptimemin); simu = fibaro:getGlobal("Simu_presence"); --verify the global value, if the virtual device is deactivated, the scene stops. manualOveride = fibaro:getGlobalValue("overideSimuSunset"); end end function SimulatorPresenceEngine:EndSimulation() SimulatorPresenceEngine:TurnOff(ID_devices_lights); Debug("red","Simulation is deactivated"); if (simu == "1") then Debug("grey", "Presence Simulator will Restart tomorrow around ".. fibaro:getValue(1, "sunsetHour")); pushMessage("Presence Simulator will Restart tomorrow around ".. fibaro:getValue(1, "sunsetHour")); wait_for_tomorrow = 1 -- will make EndTimeCalc add 24h to endtime during daytime end end function SimulatorPresenceEngine:ExitSimulation() --SimulatorPresenceEngine:TurnOff(ID_devices_lights); Debug("red","Presence Simulator is Terminated"); pushMessage("Presence Simulator is Terminated"); end -- function to switch off devices in the list function SimulatorPresenceEngine:TurnOff(group) Debug("red","TurnOff All lights!"); local name, id2; local ID_devices_group = group; for i=1, #ID_devices_group do id2 = tonumber(ID_devices_group[i]); fibaro:call(id2, "turnOff"); name = fibaro:getName(id2); if (name == nil or name == string.char(0)) then name = "Unknown" end StandardDebug("Device:" .. name .. " Off "); end if (ID_On_After_Simu ~= 0 and Manual_Stop == 1) then fibaro:call(ID_On_After_Simu, "turnOn"); end end -- tester startup type et si autostart ou simu = 0 ne pas push et exit Debug("green", "Presence Simulator | v" .. version ); Debug( "green", "--------------------------------"); -- Main Loop --------------------------------------- if (simu == "0") then Debug("red","Not starting Simulation (Simu_presence = 0)"); SimulatorPresenceEngine:ExitSimulation(); fibaro:abort(); end pushMessage("Scheduled Simulation starting time: " .. start_simu); ExtraDebug("Today's sunset is at "..fibaro:getValue(1, "sunsetHour").." - End of Simulation at "..stop_hour..":"..stop_minute); while (simu=="1" or simu=="0" ) do SimulatorPresenceEngine:EndTimeCalc(); -- local start_simu = "00:01" -- uncomment this line when testing to force a start hour. ex: 1 min after saving the scene. -- define if nighttime (sunset) if (os.date("%H:%M") >= start_simu) then sunset = 1 else sunset = 0 end if (simu == "1") then if sunset == 1 and (os.time() <= endtime) then Debug("grey", "It's sunset time -> Simulation ON"); SimulatorPresenceEngine:Launch(); --launch the simulation. SimulatorPresenceEngine:EndSimulation(); end if manualOveride == "1" then Debug("grey", "Manual Override Activated -> Simulation ON"); SimulatorPresenceEngine:Launch(); --launch the simulation. SimulatorPresenceEngine:EndSimulation(); end --fibaro:debug("sunset: "..sunset .. "endtime: " .. endtime .. "ostime: " .. os.time()); if manualOveride == "0" and sunset == 0 and NotifLoop == 30 then Debug("grey", "Waiting for next Sunset -> Simulation OFF."); end end if sunset == 1 and (os.time() >= endtime) and (os.time() <= (endtime + 60)) then Debug("grey","Simulation ended for this night."); end -- Condition to end simulation if (simu == "0") then SimulatorPresenceEngine:ExitSimulation(); Debug("red","Simu = 0, Exit from scene"); fibaro:abort(); end if NotifLoop <= 30 then if NotifLoop == 30 then NotifLoop = 0 end if NotifLoop == 0 then ExtraDebug("Looping to check for changes every 2min") end NotifLoop = NotifLoop + 1 end fibaro:sleep(2*60*1000); simu = fibaro:getGlobal("Simu_presence"); manualOveride = fibaro:getGlobal("overideSimuSunset"); end
  4. J'ai ajouté des vérifications pour que l'ajout de 24h pour le prochain endtime ne se fasse qu'après la nuit. j'ai aussi peaufiné un peu plus les notifications et debug pour que ça prenne moins de place
  5. Ok, merci du retour, mais je pense que je testais avec une heure de fin après minuit. (1h10 du matin) et làle script ne savais pas le gérer. Je fais encore quelques tests avec la dernière version qui jusqu'ici fonctionne bien et puis je la poste.
  6. sebcbien

    Support Gea

    Le sysmometre fonctionne en v3... En fait quand il est secoué, il envoie une détection de mouvement. Petit truc: NZ pas l'installer sur le boitier de la pompe a eau de pluie, chaque fois que quelqu'un tire la chasse d'eau, il y a du mouvement détecté dans le garage ;-) Sent From my Vic20
  7. quel cauchemar ces gestions d'heures Je pense que je devrais prendre une autre approche... la nuit porte conseil
  8. bon y'a un bug :-/ le script se relance tout seul 5 minutes après la simulation.. Je vais voir ce que je peux faire...
  9. Si ça peut t'aider, la variable local rndmaxtime = 30 Définit aussi la latitude possible de l'heure de fin. En effet, le script ne se termine qu'a près la fin du temps aléatoire qui a été donné à la dernière lampe allumée ou éteinte. Donc certains jours la simulation se terminera à l'heure désirée + un random time de 2 min, et un autre jour, il faudra ajouter 28 minutes.
  10. Nickel, j'attends le retour ! De mon côté j'améliore encore un peu mais ce sont surtout les notifications, debug etc, le fonctionnement n'est pas modifié (pour le moment)
  11. Voici la V 2.3, beaucoup de travail dessus, maintenant la scène tourne en permanence tant que la VG = 1 Je ne sais pas tester en réel sur 2 jours, je compte sur vous pour me dire si ça tourne comme il faut Pour ne pas charger la HC1, j'ai mis une boucle d'attente de 5 minutes entre les vérifications Petits rappels: - L'arrêt en mettant la VG à 0, pendant une simulation l'arrête tout de suite et peut allumer une lampe dédiée - L'arrêt à lieu à l'heure prévue + le temps restant de la dernière boucle d'attente (random de rndmaxtime) debug de lancement: [DEBUG] 01:50:50: Simulate Presence at Home | v2.3 [DEBUG] 01:50:50: -------------------------------------------------- [DEBUG] 01:50:50: Push message (Simulate Presence will start today at 17:27) sent to mobile: 53 [DEBUG] 01:50:50: Today''s sunset: 17:27 [DEBUG] 01:50:50: Simulation will stop: 01:10 [DEBUG] 01:50:50: Waiting for next Sunset -> Simulation OFF [DEBUG] 01:50:50: sleeping 5min before re-check [DEBUG] 01:55:50: Waiting for next Sunset -> Simulation OFF [DEBUG] 01:55:50: sleeping 5min before re-check --[[ %% autostart %% properties %% globals Simu_presence --]] -------------------------------- -- YAPS Presence Simulator V2.3 -- SebcBien -- Janvier 2015 -------------------------------- --V2.3 -- Rewriting the engine -- now relaunch automatically the next day, even if Simu_presence has not changed --V2.2 -- Added Manual Stop variable -- added list of mobiles if (fibaro:countScenes() > 1) then fibaro:debug("More than one scene active, exiting!"); fibaro:abort(); end --------------------- USER SETTINGS -------------------------------- local id = { LAMPE_SDB = 16, LAMPE_CH_AMIS = 24, LAMPE_SALON = 45, LAMPE_BUREAU = 49, LAMPE_HALL = 52, LAMPE_CELLIER = 56, LAMPE_CH_EMILIEN = 58, PHONE_NEXUS_5 = 53, PHONE_NEXUS_4 = 104 } local stop_hour = "01"; -- Hour when you want simulation to stop local stop_minute = "23"; -- Minute of the hour you want simulation to stop -- note 1: the script will not exit while waiting the random time of the last light turned on. So end time can be longer than specified end time -- note 2: if the global variable changes during the same wait time as above, it will exit immediately (when back home while simulation runs) local rndmaxtime = 15 -- random time of light change in minutes --> here each device is on maximum 30min local ID_devices_lights = {id["LAMPE_SDB"],id["LAMPE_BUREAU"],id["LAMPE_HALL"],id["LAMPE_CELLIER"],id["LAMPE_CH_AMIS"]} -- IDs of lights to use in simulation --local ID_devices_lights = {id["LAMPE_BUREAU"],id["LAMPE_CELLIER"]} -- IDs of lights to use in simulation local activatePush = true; -- activate push when simulation starts and stops --local ID_Smartphone = 53; -- ID of your smartphone --local ID_Smartphones = {id["PHONE_NEXUS_5"],id["PHONE_NEXUS_4"]}; local ID_Smartphones = {id["PHONE_NEXUS_5"]}; local ID_On_After_Simu = id["LAMPE_HALL"] -- Only One ID of a lamp to turn on after simulation ends (set 0 to disable) local Manual_Stop = 1 -- 0 will not turn on the lamp "ID_On_After_Simu" at the end of the script. Replace this variable by a global value if you want to automate --------------------- USER SETTINGS END ---------------------------- ----------------------ADVANCED SETTINGS----------------------------- local showStandardDebugInfo = true; -- Debug shown in white local showExtraDebugInfo = true; -- Debug shown in orange local numbers_lights = #ID_devices_lights -- numbers of light devices listed above local manualOveride = fibaro:getGlobal("overideSimuSunset"); -- if = 1 then the simulation is forced -------------------------------------------------------------------- ----------------------------------- ----- Do not change code below ---- ----------------------------------- local simu = fibaro:getGlobal("Simu_presence"); --value of the global value: simulation is on or off local start_simu = fibaro:getValue(1, "sunsetHour"); --Start simulation when sunset local endtime version = "2.3" if (simu == "0") then fibaro:debug("No need to start scene, simu = 0, Exiting") fibaro:abort(); end SimulatorPresenceEngine = {}; -- debug function Debug = function ( color, message ) fibaro:debug(string.format('<%s style="color:%s;">%s</%s>', "span", color, message, "span")); end ExtraDebug = function (debugMessage) if ( showExtraDebugInfo ) then Debug( "orange", debugMessage); end end StandardDebug = function (debugMessage) if ( showStandardDebugInfo ) then Debug( "white", debugMessage); end end -- function push message to mobile pushMessage = function (sendPush) if (activatePush) then for i=1, #ID_Smartphones do fibaro:call(tonumber(ID_Smartphones[i]), 'sendPush', sendPush); ExtraDebug("Push message ("..sendPush..") sent to mobile: "..tonumber(ID_Smartphones[i])); end end end -- function to calculate endtime function SimulatorPresenceEngine:EndTimeCalc() local start = os.date("%H:%M") local time = os.time() local date = os.date("*t", time) local year = date.year local month = date.month local day = date.day endtime = os.time{year=year, month=month, day=day, hour=stop_hour, min=stop_minute, sec=sec} start_simu = fibaro:getValue(1, "sunsetHour"); -- recalculate for next day --ExtraDebug ("Current OS Time" ..os.time()) --ExtraDebug ("Original planed EndTime " ..endtime) --[[if endtime < os.time() then endtime = endtime + 24*60*60 ExtraDebug ("Modified Endtime +24h " ..endtime) end --]] end -- function to simulate a presence function SimulatorPresenceEngine:Launch() pushMessage("Lights simulation started, will stop at: "..stop_hour..":"..stop_minute) ExtraDebug("Lights simulation started, will stop at: "..stop_hour..":"..stop_minute ); while ((os.time() <= endtime) and (simu == "1")) or ((manualOveride == "1")) do -- original code: while ((os.time() <= endtime) and (simu == "1")) or ((os.time() <= endtime) and (simu == "1") and (manualOveride == "1")) do if time == endtime then StandardDebug("time and endtime same value -> end") end local random_light = tonumber(ID_devices_lights[math.random(numbers_lights)]) --choose a random light in the list local lightstatus = fibaro:getValue(random_light, 'value') --get the value of the random light in the list -- turn on the light if off or turn off if on if tonumber(lightstatus) == 0 then fibaro:call(random_light, 'turnOn') else fibaro:call(random_light, 'turnOff') end fibaro:sleep(1000) ; --necessary to get back the new status, because HC2 is too fast :-) lightstatus = fibaro:getValue(random_light, 'value') --get the value of the random light after his update StandardDebug('light ID:'..random_light..' status:'..lightstatus) local sleeptime = math.random(rndmaxtime*60000) --random sleep fibaro:debug("entering loop of " .. sleeptime/60000 .. "minutes") -- This modification allows to exit the scene if the Simu_presence global var changes to 0 during the random sleep local counterexitsimu = 200 while (counterexitsimu > 0) do counterexitsimu = counterexitsimu - 1; test_presence_state = fibaro:getGlobal("Simu_presence") simu = tonumber(test_presence_state); --verify the global value, if the virtual device is deactivated, the scene stops. --fibaro:debug("simu var state : " .. simu) if simu == 0 then counterexitsimu = 0 end fibaro:sleep(sleeptime/200) end fibaro:debug("exiting loop of " .. sleeptime/60000 .. "minutes") local sleeptimemin = math.abs(sleeptime/60000) StandardDebug('sleeptime:'..sleeptimemin) simu = fibaro:getGlobal("Simu_presence"); --verify the global value, if the virtual device is deactivated, the scene stops. manualOveride = fibaro:getGlobalValue("overideSimuSunset") end end function SimulatorPresenceEngine:EndSimulation() SimulatorPresenceEngine:TurnOff(ID_devices_lights); Debug("red","Simulation is deactivated") --ExtraDebug("Tomorrow sunset: "..fibaro:getValue(1, "sunsetHour")); if (simu == "1") then Debug("grey", "Simulate Presence will Restart tomorrow at "..start_simu) pushMessage("Simulate Presence will Restart tomorrow at "..start_simu) end end function SimulatorPresenceEngine:ExitSimulation() SimulatorPresenceEngine:TurnOff(ID_devices_lights); Debug("red","Presence Simulator is Terminated") pushMessage("Presence Simulator is Terminated") end -- function to switch off devices in the list function SimulatorPresenceEngine:TurnOff(group) Debug("red","TurnOff All lights!") local name, id2; local ID_devices_group = group; for i=1, #ID_devices_group do id2 = tonumber(ID_devices_group[i]); fibaro:call(id2, "turnOff"); name = fibaro:getName(id2); if (name == nil or name == string.char(0)) then name = "Unknown" end StandardDebug("Device:" .. name .. " Off "); end if (ID_On_After_Simu ~= 0 and Manual_Stop == 1) then fibaro:call(ID_On_After_Simu, "turnOn"); end end Debug("green", "Simulate Presence at Home | v" .. version ); Debug( "green", "--------------------------------------------------"); pushMessage("Simulate Presence will start today at "..start_simu) ExtraDebug("Today's sunset: "..fibaro:getValue(1, "sunsetHour")); ExtraDebug( "Simulation will stop: "..stop_hour..":"..stop_minute ); while (simu=="1" or simu=="0" ) do SimulatorPresenceEngine:EndTimeCalc(); --local start_simu = "00:01" -- uncomment this line when testing to force a start hour 1 min after saving the scene. -- define if nighttime (sunset) if (os.date("%H:%M") >= start_simu) then sunset = 1 else sunset = 0 end if sunset == 1 and (os.time() >= endtime) then ExtraDebug("Simulation ended for this night.") end if (simu == "1") then if sunset == 1 and os.time() <= endtime then Debug("grey", "It's sunset time -> Simulation ON") SimulatorPresenceEngine:Launch(); --launch the simulation. SimulatorPresenceEngine:EndSimulation(); end if manualOveride == "1" then Debug("grey", "Manual Override Activated -> Simulation ON") SimulatorPresenceEngine:Launch(); --launch the simulation. SimulatorPresenceEngine:EndSimulation(); end --fibaro:debug("sunset: "..sunset .. "endtime: " .. endtime .. "ostime: " .. os.time()) if manualOveride == "0" and sunset == 0 then Debug("grey", "Waiting for next Sunset -> Simulation OFF"); end end -- Condition to end simulation if (simu == "0") then SimulatorPresenceEngine:ExitSimulation() ; Debug("red","Simu = 0, Exit from scene") fibaro:abort(); end fibaro:debug("sleeping 5 min before re-check") fibaro:sleep(5*60*1000); simu = fibaro:getGlobal("Simu_presence"); manualOveride = fibaro:getGlobal("overideSimuSunset"); end
  12. sebcbien

    Support Gea

    et donc, en diminuant les déclencheurs, tu gagnes combien de temps ?
  13. sebcbien

    Support Gea

    Oui il faut mettre le minimum de déclencheurs pour ne pas lancer des instances pour rien... Ne met que ceux que tu as besoin. C valable pour toutes les scènes.... Sent From my Vic20
  14. sebcbien

    Support Gea

    oui, exemple: function yourcode() -- ================================================== -- [FR] A VOUS DE JOUER -- [EN] YOUR TIME TO PLAY -- ================================================== -- Variable Globale de l'instance GEA.globalTasks = "GEA_Tasks_V5_1" et qu'avais tu mis comme gea spéciaux dans 3e et 4 ??? c'est pas trop logique... tu es sur de ne pas avoir laissé trop de déclencheurs dans l'entête ?
  15. sebcbien

    Support Gea

    Variable globale ( definie dans gea.tasks dans gea je crois) Sent From my Vic20
  16. sebcbien

    Support Gea

    Attention de bien avoir des VG gea différentes. Ou en tout cas si deux gea on des restart task etc. Sent From my Vic20
  17. sebcbien

    Support Gea

    moi j'ai 4 instances GEA, sans problème... une de plus une de moins, c kif kif ;-)
  18. sebcbien

    Alarme Satel

    "Petite" question pour les experts Pensez-vous qu'il est possible de surveiller deux contacts magnétiques avec une seule zone ? (Ces contacts ne seraient jamais armés/utilisés pour l'alarme) Il me serviraient de contacts de début et de fin de course pour ma porte de garage. Le principe auquel je pense est de faire un pont de résistances: - quand la résistance est nulle, tout est fermé - quand on a 1.1k on a un état "en cours d'ouverture" - quand on a le circuit ouvert, ça veut dire que la porte est arrivée au contact magnétique de fin de course. Une carte integra 32 peut'elle signaler un 3e état "sabotage" (résistance nulle) sans déclencher l'alarme, juste en activant une sortie "virtuelle" ? je demande ça car il ne me reste qu'une seule zone disponible et je n'ai plus la place pour mettre une carte d'extention ;-)
  19. Le problème apparait beaucoup moins pour les fgd en v2.2 et quand on met le paramètre soft start. Avec un allumage immédiat, normalement le problème est réglé mais ça arrive quand même. Le problème survient quand on utilise s2 et softstart. Sent From my Vic20
  20. j'ai fait ça a l'époque: bien sur ça n'a rien changé et ils font le mort...
  21. Tous les ramper sur une zone ça fonctionnera mais bonne chance après pour savoir d'où ça vient... Moi je cablerais le capteur incendie sur la Satel, c'est plus fiable. Sent From my Vic20
  22. Hmmm... C'est bien possible mais je ne l'avais jamais remarqué. C'est vrai que je ne suis généralement absent que 1 jour ou deux. Difficile de regarder sur mon tel mais je jetterai un coup d'œil, le script sur lequel je me suis base n'était pas prévu pour tourner dans une scene. Sent From my Vic20
  23. sebcbien

    Support Gea

    Plus je lis plis je me sens bien en 3.6. Merci a ceux qui beta testent, mais moi je vais encore attendre quelques mois ;-) Sent From my Vic20
  24. sebcbien

    Support Gea

    Pour moi ce ne peut pas être gea ni les variables. Je dirais plutôt que ça vient de la lenteur de la détection a ajouter peut être a une lenteur de ton réseau zwave. Sent From my Vic20
  25. You will love the virtual sensor of krikroff in V4 ;-) Sent From my Vic20
×
×
  • Créer...