Aller au contenu

speedoxx007

Membres confirmés
  • Compteur de contenus

    272
  • Inscription

  • Dernière visite

Tout ce qui a été posté par speedoxx007

  1. speedoxx007

    Yaps - Présence Simulator, Un De Plus

    personne a une idée, pourquoi les lampes ne sont pas éteint à la fin de la simulation?
  2. speedoxx007

    HC2 & HCL - 4.621 - BETA - 21/04/2022

    Selon le forum officiel ce sera le cas dès la version 4.630.
  3. speedoxx007

    Sauvegarde HC3 automatique sur NAS Synology

    @Lazer Merci . Il y a une faute de frappe dans formware.
  4. speedoxx007

    Sauvegarde HC3 automatique sur NAS Synology

    Voici mon code qui fonctionne avec HC2 V4.621 beta: backup-hc2(orig).sh
  5. Hello, J'ai une simple question: J'aimerai changer le status "OFF" ou "On" de ma PAC O'Foehn depuis un VD ou depuis GEA en envoyant simplement la commande http://IP/changeOnOff.cgi sans paramètre. Comment je peux faire? Merci pour vos idées
  6. speedoxx007

    Envoyer une commande http://IP/changeOnOff.cgi depuis un VD

    Voilà ma solution J'ai simplement créé avec GEA une vérification de ma production Photovoltaïque qui lance ensuite une Scene comme ceci: --[[ %% properties %% events %% globals --]] local http = net.HTTPClient() function call(url) http:request(url, { options = { method = 'GET' }, success =function() fibaro:debug(url.." ,done.") end, error = function(errorcode) fibaro:debug("error=" .. errorcode) end }) end if ( tonumber(fibaro:getValue(547, "value")) > 0 ) then call("http://192.168.1.69/changeOnOff.cgi") -- fill in your own IP else fibaro:debug("Device is Off") end Cette scene vérifie si la PAC est sous tension avec if (tonumber(fibaro:getValue('DeviceID', "value")) > 0) Si elle sous tension j'envoie la commande changeOnOff.cgi vers l'adresse IP de la PAC. Ceci changera simplement l'état ON ou Off de la PAC. Salutations
  7. speedoxx007

    Sauvegarde HC3 automatique sur NAS Synology

    C'est déjà un peu mieux, mais pas encore Top... Thomas@Speedy-NAS:~$ /volume1/Backup/HC2/backup-hc2.sh Backup Fibaro Home Center : Tuesday 26/04/2022 20:56:10 Vérification de la valeur de la variable globale 'PresentState'... Variable globale 'PresentState' = 'Home' identique à 'Home' => Sauvegarde Sauvegarde... .............................................. Sauvegarde terminée Erreur : impossible d'obtenir la version : code de retour HTTP 503 title: 'Sauvegarde' is neither mail string key nor i18n format. Téléchargement de backup_HC2-030945_2022_04_26-20_56_55.fbi... % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 2904 0 2904 0 0 1262k 0 --:--:-- --:--:-- --:--:-- 2835k Erreur : impossible de télécharger le dernier backup : code de retour HTTP 404 title: 'Sauvegarde' is neither mail string key nor i18n format. Thomas@Speedy-NAS:~$ Le problème avec le i18n format c'est un problème du DMS 7.1. Mais que il ne télécharge pas le fichier .fbi c'est bizarre. Et la version de ma HC aussi bizarre car quand je fait l'URL: http://${HC2_ADDRESS}/api/settings/info je reçois les infos.
  8. speedoxx007

    Sauvegarde HC3 automatique sur NAS Synology

    @Lazer merci pour ta réponse. Effetiviement j'ai la dernière mise à jour beta. Je vais essayer de bidouiller...
  9. speedoxx007

    Sauvegarde HC3 automatique sur NAS Synology

    Sur mon Synology en DSM7.1 le script tourne tourne, et la HC2 fait la sauvegarder et redémarre les Services, mais le scripte ne fait pas le fichier et me donne ceci: Thomas@Speedy-NAS:/$ /volume1/Backup/HC2/backup-hc2.sh Backup Fibaro Home Center : Monday 25/04/2022 11:52:04 Vérification de la valeur de la variable globale 'PresentState'... Variable globale 'PresentState' = 'Home' identique à 'Home' => Sauvegarde Sauvegarde... .................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................... Erreur : services Fibaro non redémarrés après le timeout de 600 secondes title: 'Sauvegarde' is neither mail string key nor i18n format. Reboot forcé du Home Center... Erreur : impossible de forcer le reboot de la box Fibaro : code de retour HTTP 405 title: 'Sauvegarde' is neither mail string key nor i18n format. Thomas@Speedy-NAS:/$ Je ne comprends pas. Quelqu'un peut m'aider?
  10. speedoxx007

    Yaps - Présence Simulator, Un De Plus

    Hello, J'ai toujours un souci que mes lampes ne s'eteignent pas a la fin de la simulation quand la simulation rest en route pour le lendemain. Voici mon script: --[[ %% autostart %% properties %% globals Simu_presence --]] --------------------------------------- local version = "3.6.1"; -- YAPS Presence Simulation by SebcBien -- August 2015 -- modifications Hue de Pepite, merci! ---------------------- if (fibaro:countScenes() > 1) then fibaro:debug("Scene already active! Aborting this new instance !!"); fibaro:abort(); end -------------------- USER SETTINGS -------------------------------- local id = { LAMPE_SALON_SPOT = 855, LAMPE_TOILETTE = 544, LAMPE_TABLE = 197, LAMPE_CUISINE = 813, LAMPE_HALL = 878, LAMPE_LED_SALON = 890, LAMPE_ESCALIER = 213, PHONE_PAPA = 1290, LAMPE_GARAGE = 826 } local Stop_hour = "01"; -- Hour when you want Simulation to stop local Stop_minute = "05"; -- 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. (even more with var Random_max_TurnOff_duration) -- 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 Sunset_offset = -15 -- number of minutes before or after sunset to activate Simulation local Random_max_duration = 18; -- random time of light change in minutes --> here each device is on maximum 30min local Random_max_TurnOff_duration = 22; -- random time to add at the stop hour+stop minute so the Simulation can be more variable (0 to deactivate) local Lights_always_on = {} -- IDs of lights who will always stay on during Simulation - leave empty array if none -> {} local Random_lights = {id["LAMPE_SALON_SPOT"],id["LAMPE_HALL"],id["LAMPE_TABLE"],id["LAMPE_CUISINE"],id["LAMPE_TOILETTE"],id["LAMPE_ESCALIER"]} -- IDs of lights to use in Simulation --local Random_lights = {id["LAMPE_HALL"],id["LAMPE_CELLIER"],id["LAMPE_CH_AMIS"]} -- Reduced set for test purposes local Lights_On_at_end_Simulation = 0; -- If next line is commented, no light will turn on after Simulation ends -- local Lights_On_at_end_Simulation = id["LAMPE_COULOIR"]; -- ID of a light (Only One) to turn on after Simulation ends (at specified Stop_hour & Stop_minute). Comment this line to turn off this feature local Lights_On_if_Simulation_deactivated = 0; -- If next line is commented, no light will turn on after Simulation is stopped (by putting Simu_presence to 0) local Lights_On_if_Simulation_deactivated = id["LAMPE_HALL"]; -- ID of a light (Only One) to turn on after Simulation is stopped (Simulation_). Comment this line to turn off this feature YAPS_Engine = {}; YAPS_Engine.notifications = true; -- send notifications YAPS_Engine.notificationTypes = {"push", "email"}; --notification types {"push", "email", "sms"} but they are overriden in the code YAPS_Engine.Activate_FreeSms = false; -- activate push with Activate_FreeSms (Activate_Push must be true also) YAPS_Engine.smartphoneID = {id["PHONE_PAPA"]}; -- Smartphone Id to send push to. {id1, id2, id3} YAPS_Engine.userID = {id["ADMIN"]}; -- User Id to send email to. {id1, id2, id3} YAPS_Engine.sms = { ["VD_ID"] = 0, -- Virtual Device ID ["VD_Button"] = "1", -- Virtual Device Button ["VG_Name"] = "SMS"}; -- Global Variable Name --------------------- USER SETTINGS END ---------------------------- ----------------------ADVANCED SETTINGS----------------------------- local Show_standard_debug = true; -- Debug displayed in white local Show_extra_debug = true; -- Debug displayed in orange -------------------------------------------------------------------- -------------------- DO NOT CHANGE CODE BELOW ---------------------- -------------------------------------------------------------------- local Number_of_lights = #Random_lights; -- numbers of light devices listed above local Simulation = fibaro:getGlobal("Simu_presence"); --value of the global value: Simulation is on or off local Manual_overide = fibaro:getGlobal("overideSimuSunset"); -- if = 1 then the Simulation is forced local Start_simulation_time = fibaro:getValue(1, "sunsetHour"); --Start Simulation when sunset local End_simulation_time,Sunrise_unix_hour,Sunset_unix_hour,Converted_var,Midnight,End_simulation_time_with_random_max_TurnOff,Sleep_between_TurnOff; local Is_first_launch = true; local NotifLoop = 0; function Debug(color, message) fibaro:debug(string.format('<%s style="color:%s;">%s</%s>', "span", color, os.date("%a %d/%m", os.time()).." "..message, "span")); end function ExtraDebug(debugMessage) if ( Show_extra_debug ) then Debug( "orange", debugMessage); end end function StandardDebug(debugMessage) if ( Show_standard_debug ) then Debug( "white", debugMessage); end end function round(num, idp) local mult = 10^(idp or 0) return math.floor(num * mult + 0.5) / mult end function YAPS_Engine:notification(message, subject, param) local message = os.date("%H:%M", os.time()).." "..message or "<vide>"; if YAPS_Engine.debug_messages then ExtraDebug("yellow", "Notification : "..message); end if Activate_FreeSms then fibaro:setGlobal("Activate_FreeSms", message) ExtraDebug("Message ("..message..") sent to Activate_FreeSms"); end if param then for _, notif in ipairs(param) do if YAPS_Engine.debug_messages then ExtraDebug("grey", notif); end -- Envoi Push if notif == "push" and YAPS_Engine.smartphoneID then for _, id in ipairs(YAPS_Engine.smartphoneID) do if YAPS_Engine.debug_messages then ExtraDebug("grey", "Send Push smartphone ID : "..id); end fibaro:call(id, "sendPush", message); end -- Envoi Email elseif notif == "email" and YAPS_Engine.userID then for _, id in ipairs(YAPS_Engine.userID) do if YAPS_Engine.debug_messages then ExtraDebug("grey", "Send Email user ID : "..id); end fibaro:call(id, "sendEmail", subject, message); end -- Envoi SMS elseif notif == "sms" and YAPS_Engine.sms then if YAPS_Engine.debug_messages then ExtraDebug("grey", "Send SMS : VD_ID="..(YAPS_Engine.sms["VD_ID"] or 0).." VD_Button="..(YAPS_Engine.sms["VD_Button"] or "0").." VG_Name="..(YAPS_Engine.sms["VG_Name"] or "")); end fibaro:setGlobal(YAPS_Engine.sms["VG_Name"], message); if YAPS_Engine.sms["VD_ID"] and tonumber(YAPS_Engine.sms["VD_ID"])>0 and YAPS_Engine.sms["VD_Button"] and tonumber(YAPS_Engine.sms["VD_Button"])>0 then fibaro:call(YAPS_Engine.sms["VD_ID"], "pressButton", YAPS_Engine.sms["VD_Button"]); end end end else Debug("orange", "Warning : no notification options given"); end end function YAPS_Engine:UnixTimeCalc(Converted_var, hour, min) local time = os.time(); local date = os.date("*t", time); local year = date.year; local month = date.month; local day = date.day; unix_hour = os.time{year=year, month=month, day=day, hour=hour, min=min, sec=sec}; ExtraDebug("converted "..Converted_var..": "..hour..":"..min.." to Unix Time: "..unix_hour..")") return unix_hour end function YAPS_Engine:ReverseUnixTimeCalc(Converted_var,hour) reverse_unix = os.date("%H:%M", hour) ExtraDebug("Reverse converted Unix Time of "..Converted_var.." : "..hour.." To: "..reverse_unix) return reverse_unix end function YAPS_Engine:EndTimeCalc() local hour,min ExtraDebug ("Current Unix Time: "..os.time()) End_simulation_time = YAPS_Engine:UnixTimeCalc("Original planed End_simulation_time", Stop_hour, Stop_minute); -- generate End_simulation_time (changes at midnight) will not change during Simulation, only when ended Midnight = YAPS_Engine:UnixTimeCalc("Midnight", 00, 00); Sunset_unix_hour = fibaro:getValue(1,'sunsetHour'); hour = string.sub(Sunset_unix_hour, 1 , 2); min = string.sub(Sunset_unix_hour,4); Sunset_unix_hour = (YAPS_Engine:UnixTimeCalc("Sunset", hour, min))+Sunset_offset*60; -- if stop hour is between 00 and 12h then add 24 hours to End_simulation_time if tonumber(Stop_hour) <= 12 and (os.time() >= End_simulation_time) then End_simulation_time = End_simulation_time + 24*60*60 ExtraDebug ("stop hour <= 12, Added 24H to End_simulation_time (End_simulation_time is ending after midnignt)"); ExtraDebug ("New End_simulation_time: "..End_simulation_time); end if Random_max_TurnOff_duration ~= 0 and Number_of_lights > 1 then -- if Simulation = 1 then slow turn off, else turn off all immediately Sleep_between_TurnOff = round((math.random(Random_max_TurnOff_duration)/(Number_of_lights-1)),1); Sleep_between_TurnOff = math.random(Random_max_TurnOff_duration)/(Number_of_lights-1); ExtraDebug("Calculated sleeping between each turn off: "..Sleep_between_TurnOff.." min"); else Sleep_between_TurnOff = 0; ExtraDebug("No sleeping between turn off"); end End_simulation_time_with_random_max_TurnOff = End_simulation_time + ((Sleep_between_TurnOff*(Number_of_lights-1))*60) ExtraDebug("End_simulation_time_with_random_max_TurnOff: "..End_simulation_time_with_random_max_TurnOff); if ((os.time() < End_simulation_time) and (Sunset_unix_hour - End_simulation_time > 0) and (Is_first_launch == true)) then -- if calculation is done between midnight and End_simulation_time and sunset is wrongly calculated after endtime (at first start only) Sunset_unix_hour = Sunset_unix_hour - (24*60*60) + 70; -- remove 24h58m50s of sunsettime ExtraDebug ("launch after Midnight and before End_simulation_time, removed 24H to Sunset_unix_hour (Only at the first start)"); ExtraDebug ("New SunsetTime: "..Sunset_unix_hour); end Is_first_launch = false end -- Presence Simulation actions Main loop function YAPS_Engine:Launch() YAPS_Engine:notification("Presence Simulation started. Will stop at: "..YAPS_Engine:ReverseUnixTimeCalc("End_simulation_time", End_simulation_time).." + rand("..Random_max_TurnOff_duration.."min) : "..YAPS_Engine:ReverseUnixTimeCalc("End_simulation_time_with_random_max_TurnOff", End_simulation_time_with_random_max_TurnOff), "Presence Simulator", {"push"}); -- push only StandardDebug("Presence Simulation started. Will stop at: "..YAPS_Engine:ReverseUnixTimeCalc("End_simulation_time", End_simulation_time).." + rand("..Random_max_TurnOff_duration.."min) : "..YAPS_Engine:ReverseUnixTimeCalc("End_simulation_time_with_random_max_TurnOff", End_simulation_time_with_random_max_TurnOff)); if Lights_always_on[1] ~= nil then YAPS_Engine:TurnOn(Lights_always_on); end while ((os.time() <= End_simulation_time) and (Simulation == "1")) or ((Manual_overide == "1")) do local random_light = tonumber(Random_lights[math.random(Number_of_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:'.. fibaro:getName(random_light) ..' status:'..lightstatus); local sleeptime = math.random(Random_max_duration*60000) --random sleep StandardDebug("Entering loop of " .. round(sleeptime/60000,2) .. " minutes"); -- Allows to exit the scene if the Simu_presence global var changes to 0 during the random sleep local counterexitSimulation = 200 while (counterexitSimulation > 0) and ((os.time() <= End_simulation_time) or Manual_overide == "1") do counterexitSimulation = counterexitSimulation - 1; test_presence_state = fibaro:getGlobal("Simu_presence"); Simulation = tonumber(test_presence_state); --verify the global value, if the virtual device is deactivated, the loop stops. --fibaro:debug("Simulation var state : " .. Simulation.." override var state : " .. Manual_overide); if Simulation == 0 then Manual_overide = fibaro:getGlobalValue("overideSimuSunset"); if Simulation == 0 or Manual_overide == "0" then counterexitSimulation = 0 end end fibaro:sleep(sleeptime/200); end ExtraDebug("Exiting loop of "..round(sleeptime/60000,2).." minutes"); local sleeptimemin = math.abs(sleeptime/60000) Simulation = fibaro:getGlobal("Simu_presence"); --verify the global value, if the virtual device is deactivated, the scene stops. Manual_overide = fibaro:getGlobalValue("overideSimuSunset"); end end function YAPS_Engine:EndSimulation() if Lights_always_on[1] ~= nil then YAPS_Engine:TurnOff(Random_lights,Lights_always_on); end Debug("red","Presence Simulation deactivated"); if (Simulation == "1") then Debug("yellow","Presence Simulation will restart tomorrow."); Debug("yellow","Sunset is around "..fibaro:getValue(1, "sunsetHour").." + Sunset Shift of "..Sunset_offset.."min = Start Time around "..YAPS_Engine:ReverseUnixTimeCalc("Sunset unix time", Sunset_unix_hour)); YAPS_Engine:notification("Presence Simulation will restart tomorrow. Sunset is around "..fibaro:getValue(1, "sunsetHour").." + Sunset Shift of "..Sunset_offset.."min = Start Time around "..YAPS_Engine:ReverseUnixTimeCalc("Sunset unix time", Sunset_unix_hour), "Presence Simulator", {"push"}); -- push only end NotifLoop = 0; -- will force main loop notifications at end of Simulation end function YAPS_Engine:ExitSimulation() --YAPS_Engine:notification("Presence Simulation is terminated", "Presence Simulator", {"push"}); -- push only Debug("red","Simu_presence = 0, Aborting Simulation scene"); fibaro:abort(); end function YAPS_Engine:TurnOff(group,group2) Debug("red","TurnOff All Simulation lights!"); local name, id2; local ID_devices_group = group; if ID_devices_group ~= 0 then for i=1, #ID_devices_group do Simulation = fibaro:getGlobal("Simu_presence"); --verify the global value, if Simulation presence is deactivated if Simulation == "0" then Sleep_between_TurnOff = 0; end; -- if Simulation ended before End_simulation_time, then no turn off delay if i > 1 then -- wait Number of lights -1 (do not need to wait for the first TurnOff) StandardDebug("Sleeping "..Sleep_between_TurnOff.." minute(s) before next TurnOff"); fibaro:sleep(Sleep_between_TurnOff*60000); end id2 = tonumber(ID_devices_group); 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 end Debug("red","TurnOff All Always_On lights!"); local ID_devices_group = group2; if ID_devices_group ~= 0 then for i=1, #ID_devices_group do id2 = tonumber(ID_devices_group); 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 end if Lights_On_at_end_Simulation ~= 0 and Simulation == "1" then fibaro:call(Lights_On_at_end_Simulation, "turnOn"); name = fibaro:getName(Lights_On_at_end_Simulation); --[[if (name == nil or name == string.char(0)) then name = "Unknown" end--]] Debug("red","Turned On light Lights_On_at_end_Simulation:"); --Debug("white", name); end if Lights_On_if_Simulation_deactivated ~= 0 and Simulation == "0" then fibaro:call(Lights_On_if_Simulation_deactivated, "turnOn"); name = fibaro:getName(Lights_On_if_Simulation_deactivated); if (name == nil or name == string.char(0)) then name = "Unknown" end Debug("red","Turned On light Lights_On_if_Simulation_deactivated:"); Debug("white", name); end end function YAPS_Engine:TurnOn(group) Debug("red","Turning On Always_On lights:"); local name, id2; local ID_devices_group = group; for i=1, #ID_devices_group do id2 = tonumber(ID_devices_group); fibaro:call(id2, "turnOn"); name = fibaro:getName(id2); if (name == nil or name == string.char(0)) then name = "Unknown" end StandardDebug("Device: "..name.." Turned On "); end Debug("red","Now randomizing other lights..."); end Debug("green", "Presence Simulation | v" .. version .. " Starting up"); Debug("green", "--------------------------------------------------------------------------"); ------------------------ Main Loop ---------------------------------- -- first start notifications YAPS_Engine:EndTimeCalc(); YAPS_Engine:notification("Scheduled presence Simulation at "..YAPS_Engine:ReverseUnixTimeCalc("Sunset unix time", Sunset_unix_hour).." (Sunset: "..fibaro:getValue(1, "sunsetHour")..")", "Presence Simulator", {"email"}); -- mail only Debug("green","Sunset is at "..fibaro:getValue(1, "sunsetHour").." + Sunset Shift of "..Sunset_offset.."min = Start Time at "..YAPS_Engine:ReverseUnixTimeCalc("Sunset unix time", Sunset_unix_hour)); Debug("green","End of Simulation: "..YAPS_Engine:ReverseUnixTimeCalc("End Simulation", End_simulation_time).." + random of "..Random_max_TurnOff_duration.."min"); Debug("green", "Checking for actions every minute."); Is_first_launch = true while true do -- Infinite loop of actions checking, hours calculations, notifications YAPS_Engine:EndTimeCalc(); -- local Sunset_unix_hour = Midnight -- un-comment this line when testing to force a start hour (or use Sunset_offset) if os.time() >= Sunset_unix_hour then -- define if nighttime (sunset = 1) sunset = 1 else sunset = 0 end if (Simulation == "1") then if sunset == 1 and (os.time() <= End_simulation_time) then Debug("yellow", "It's sunset time -> Simulation ON"); YAPS_Engine:Launch(); YAPS_Engine:EndSimulation(); end if Manual_overide == "1" then Debug("yellow", "Manual Override Activated -> Simulation ON"); YAPS_Engine:Launch(); YAPS_Engine:EndSimulation(); end if Manual_overide == "0" and sunset == 0 and NotifLoop == 0 then Debug("yellow", "Sunset is at "..fibaro:getValue(1, "sunsetHour").." + Sunset Shift of "..Sunset_offset.."min = Start Time at "..YAPS_Engine:ReverseUnixTimeCalc("Sunset unix time", Sunset_unix_hour)); Debug("yellow", "End of Simulation: "..YAPS_Engine:ReverseUnixTimeCalc("End Simulation", End_simulation_time).." + random of "..Random_max_TurnOff_duration.."min = "..YAPS_Engine:ReverseUnixTimeCalc("End Simulation", End_simulation_time_with_random_max_TurnOff)); end end if (Simulation == "0") then -- Condition to end Simulation YAPS_Engine:ExitSimulation(); end if NotifLoop <= 120 then --a waiting xx times the fibaro sleep below (2 hours) before resetting counter (and notifying) if NotifLoop == 120 then NotifLoop = 0 end if NotifLoop == 0 then ExtraDebug("Now, checking for actions every minute. Next notify: in 2 hours"); end end fibaro:sleep(1*60*1000); -- wait 1 minutes before testing again the global vars below Simulation = fibaro:getGlobal("Simu_presence"); Manual_overide = fibaro:getGlobal("overideSimuSunset"); NotifLoop = NotifLoop + 1; end Ou ce trouve le problème ? Merci pour votre aide.
  11. speedoxx007

    HC2 & HCL - 4.621 - BETA - 21/04/2022

    Installé RAS. Enfin https [emoji3] Envoyé de mon SM-G998B en utilisant Tapatalk
  12. speedoxx007

    Piscine - Suivi du PH, Chlore & Température

    Idem pour moi, pour flipr et HC2. Envoyé de mon SM-G998B en utilisant Tapatalk
  13. speedoxx007

    Application Yubii

    Moi aussi, car avec ma HC2 et l'appli Yubii cela fonctionne pas mal.
  14. speedoxx007

    Envoyer une commande http://IP/changeOnOff.cgi depuis un VD

    @Lazer merci quand-même pour ton aide. Je vais encore chercher un peu... Envoyé de mon SM-G998B en utilisant Tapatalk
  15. speedoxx007

    Envoyer une commande http://IP/changeOnOff.cgi depuis un VD

    Alors response (vide), Status (vide) et errorCode: 2
  16. speedoxx007

    Envoyer une commande http://IP/changeOnOff.cgi depuis un VD

    Alors, je ne comprends toujours pas. Aucun retour. HC2 = Net.FHttp("192.168.1.69",80) HC2:setBasicAuthentication("user","user") --response = HC2:GET("/ChangeOnOff.cgi") local response, status, errorCode = HC2:GET("/ChangeOnOff.cgi") fibaro:debug(response, status, errorCode) Google Chrome p.ex. donne ceci: Bizarre
  17. speedoxx007

    Envoyer une commande http://IP/changeOnOff.cgi depuis un VD

    Le login user/user est juste. Le Debug ne donne rien en retour sur response. HC2 = Net.FHttp("192.168.1.69") HC2:setBasicAuthentication("user","user") response = HC2:GET("/ChangeOnOff.cgi") fibaro:debug(response) Je ne comprends pas
  18. speedoxx007

    Envoyer une commande http://IP/changeOnOff.cgi depuis un VD

    Merci @Lazer J'ai essayé ceci dans un bouton VD: HC2 = Net.FHttp("192.168.1.69",80) HC2:setBasicAuthentication("user","user") response = HC2:GET("/ChangeOnOff.cgi") Mais il ne se passe rien. Manuellement si je fait avec p.ex. Google Chrome http://192.168.1.69/changeOnOff.cgi la PAC elle s'enclenche ou se déclenche selon le status précédent.
  19. speedoxx007

    Yaps - Présence Simulator, Un De Plus

    Personne à YAPS à partager avec le Philips Hue qui fonctionne bien? Juste la scène LUA?
  20. speedoxx007

    Yaps - Présence Simulator, Un De Plus

    Hello, Quelqu'un à un YAPS qui fonctionne bien avec les Hue? Si oui, quelqu'un peut partager son code LUA de la scène?
  21. speedoxx007

    Support Gea

    Euh mais oui, merci @Lazer . Je vais tout de suite essayer.
  22. speedoxx007

    Support Gea

    Bonjour, J'ai une question avec GEA.add({"JSONDecodeFromGlobal", "MaVariableGlobale", "properties.modules[2].value", 0}, 30, "", {ACTIONS} ) J'ai cette Table JSON: { "name": "NetatmoWeather", "value": "{\"wsource\":[{\"src\":\"openmap\"}],\"tableVer\":\"3.0\",\"netatmo\":[{\"temp_trend\":\"stable\",\"co2\":578,\"press_min\":1018,\"last_status_store\":1623412162,\"wifi\":46,\"humid_min\":59,\"_id\":\"70:ee:50:1b:0e:ee\",\"intm\":[{\"temp_max\":23.6,\"name\":\"Chambre parentale\",\"temp\":23.4,\"co2\":523,\"batt_vp\":4812,\"humid_min\":57,\"last_seen\":1623412140,\"_id\":\"03:00:00:04:e4:7c\",\"last_message\":1623412159,\"fail\":0,\"batt\":34,\"_rf\":21,\"firmware\":51,\"temp_min\":22.9,\"humid\":58,\"humid_max\":59,\"temp_trend\":\"\",\"failch\":0},{\"temp_max\":23.9,\"name\":\"Chambre Leandro\",\"temp\":23.7,\"co2\":495,\"batt_vp\":5173,\"humid_min\":57,\"last_seen\":1623412133,\"_id\":\"03:00:00:07:34:72\",\"last_message\":1623412159,\"fail\":0,\"batt\":54,\"_rf\":20,\"firmware\":51,\"temp_min\":23.2,\"humid\":57,\"humid_max\":60,\"temp_trend\":\"\",\"failch\":0},{\"temp_max\":24.9,\"name\":\"Chambre Yaniss\",\"temp\":24.7,\"co2\":637,\"batt_vp\":5056,\"humid_min\":56,\"last_seen\":1623412153,\"_id\":\"03:00:00:07:40:9e\",\"last_message\":1623412159,\"fail\":0,\"batt\":48,\"_rf\":26,\"firmware\":51,\"temp_min\":24.3,\"humid\":56,\"humid_max\":58,\"temp_trend\":\"\",\"failch\":0}],\"feels_like\":\"Humidex\",\"reg_locale\":\"fr-CH\",\"firmware\":181,\"humid\":60,\"country\":\"FR_CH\",\"failch\":0,\"unit\":\"metric\",\"name\":\"Famille Perez (Famille Perez)\",\"temp\":24.6,\"place\":{\"lat\":46.833606528957,\"time_zone\":\"Europe\\/Zurich\",\"country\":\"CH\",\"city\":\"Grolley\",\"altitude\":616,\"lon\":7.0558180127864},\"humid_max\":62,\"abs_press\":946.2,\"press_unit\":\"hPa\",\"noise\":45,\"press_trend\":\"stable\",\"lang\":\"fr\",\"outm\":{\"temp_max\":26.2,\"name\":\"Extérieur\",\"temp\":26.2,\"batt_vp\":5128,\"humid_min\":51,\"last_seen\":1623412159,\"ozone_trend\":\"\",\"ozone\":0,\"_id\":\"02:00:00:1a:ef:86\",\"last_message\":1623412159,\"humid_max\":85,\"fail\":0,\"temp_min\":13,\"batt\":52,\"_rf\":32,\"firmware\":50,\"temp_trend\":\"up\",\"humid\":52,\"ozone_min\":0,\"ozone_max\":0,\"failch\":0},\"temp_min\":23.2,\"fail\":0,\"wind\":{\"dir\":\"ENE\",\"gust_max\":11,\"batt_vp\":5271,\"last_seen\":1623412159,\"speed_max\":4,\"gust\":7,\"deg\":73,\"_id\":\"06:00:00:01:cd:b6\",\"fail\":0,\"last_message\":1623412159,\"speed\":2,\"_rf\":26,\"firmware\":25,\"name\":\"Anémomètre\",\"gust_dir\":\"N\",\"gust_deg\":350,\"batt\":64,\"failch\":0},\"module_name\":\"Famille Perez\",\"temp_unit\":\"°C\",\"wind_unit\":\"km\\/h\",\"temp_max\":24.6,\"press\":1018,\"rain\":{\"name\":\"Pluviomètre\",\"batt_vp\":5102,\"last_seen\":1623412159,\"month\":121.099,\"_id\":\"05:00:00:02:fc:1a\",\"hour\":0,\"_rf\":25,\"fail\":0,\"firmware\":12,\"batt\":59,\"last_message\":1623412159,\"day\":0,\"week\":41.814,\"hour3\":0,\"hour6\":0,\"live\":0.101,\"failch\":0},\"press_max\":1019,\"rain_unit\":\"mm\"}]}", "readOnly": "false", "isEnum": "true", "enumValues": [ "Table" ], "created": "1623067580", "modified": "1623412191" } Comment je fais pour récuperer la pluie de la dernière heure avec la valeur 0 dans la Conditions? Comme ceci ? {"JSONDecodeFromGlobal", "NetatmoWeather", "hour", 0} Je suis un peu nul en LUA...
  23. speedoxx007

    Piscine - Suivi du PH, Chlore & Température

    @kevin39 @thierry@leslinder.ch @mora @djtic @DomGreg Est-ce que quelqu'un entre temps à evtl. ce VD pour flipr ?
  24. speedoxx007

    HC2 & HCL - 4.601 - BETA - 15/03/2021

    Je viens de redémarrer ma HCL, et elle redémarre drôlement vite. Pas de PING. J'ai l'impression que le "Restart" est uniquement le redémarrage du HCSERVER?.?.?
  25. speedoxx007

    HC2 & HCL - 4.601 - BETA - 15/03/2021

    Mise à jour fait. R.A.S. sauf que le PING de la box ne réponds plus. C'est une partie des - Important security fixes. ? Je pense que la réponse des PING n'est plus autorisé.
×