Aller au contenu

Diuck

Membres confirmés
  • Compteur de contenus

    682
  • Inscription

  • Dernière visite

  • Jours gagnés

    1

Tout ce qui a été posté par Diuck

  1. Shad Il faut ajouter les jours de la semaine dans cette scène ?
  2. Diuck

    LUA scheduler for HC2

    Merci pour tes encouragements mais il y a encore du boulo cf : >> http://www.domotique-fibaro.fr/index.php/topic/700-bien-utiliser-la-fonction-citation-dans-les-r%C3%A9ponses/
  3. Ok je pense c'est le oui du message 123 ?
  4. Merci à vous deux pour votre réponse Donc Maître Shad peux tu répondre au message 122 Stp
  5. --<ADD YOUR LINES HERE IN POFILE SECTIONS> luaDaySchedule:add("20:36","16", "turnOn" , "call", {"All"} ,false) Et si c'est le cas je les ajoute dans le sheduler à la suite de cette ligne ?
  6. 2.luaDaySchedule:add("Sunset","JOUR_NUIT", "JOUR" , "setGlobal", {"All"}, false , 0); 3.luaDaySchedule:add("Sunrise","JOUR_NUIT", "NUIT" , "setGlobal", {"All"}, false , 0); Salut Jossalf une petite question Si je rentre ces 2 variables dans le sheduler je peux supprimer les variables jour/nuit que j'ai créer en bloc sans modifier mes scènes actuel, les scènes en LUA bien sur
  7. Diuck

    LUA scheduler for HC2

    Merci Fredric pour ton tuto j'ai enfin réussi à configurer le sheduler
  8. Ca fonctionne nickel merci pour tous
  9. Majuscule ALL en All et c'est ok plus d'erreur --<ADD YOUR LINES HERE IN POFILE SECTIONS> luaDaySchedule:add("20:00","16", "turnOn" , "call", {"All"} ,false)
  10. En plus lisible la ligne 3 c'est la ligne 637 --<ADD YOUR LINES HERE IN POFILE SECTIONS> luaDaySchedule:add("19:14","16", "turnOn" , "call", {"all"} ,false) --add to the standard schedule table if schedule[luaDaySchedule.days[d]][sTime] == nill then
  11. Erreur !!
  12. ca te parle
  13. Ca y est sheduler est configuré peux tu me guider pour essayé si il est bien paramètré stp
  14. Diuck

    LUA scheduler for HC2

    Vraiment bizzare
  15. Diuck

    LUA scheduler for HC2

    bizarre je n'avais pas l'image en passant par IE mais avec google chromes c'est bon ?
  16. Diuck

    LUA scheduler for HC2

    Désolé, pour les variables àrenseigner àquelle endroit stp
  17. Diuck

    LUA scheduler for HC2

    Super merci je continue
  18. Diuck

    LUA scheduler for HC2

    Fredric je suis en pleine config et je bloque au moment ou il faut ajouter l'ID des virtual device, je ne trouve pas l'ID il n'est pas affiché
  19. Diuck

    LUA scheduler for HC2

    c'est bon
  20. Diuck

    LUA scheduler for HC2

    Salut Fredric Je suis en pleine configutation du sheduler et j'aurais besoin de ton aide si tu veux bien tu dis que tu importes le Virtual Device Alarm-Clock.vfib à quel endroit tu as recréer une scène LUA Merci d'avance
  21. Merci pour le temps que tu m'as consacré Très bien je commence à comprendre le sheduler peux en effet simplifier la programmation des scènes, mais je ne veux pas te paraître idiot mais je n'arrive pas à configurer le sheduler j'avance doucement mais j'avance
  22. Merci d'avance
  23. --[[ %% autostart %% properties %% globals JOUR_NUIT METEO --]] local sourceTrigger = fibaro:getSourceTrigger(); if (sourceTrigger["type"] == "autostart") then while true do local currentDate = os.date("*t"); local startSource = fibaro:getSourceTrigger(); if ( ( ((currentDate.wday == 1 or currentDate.wday == 2 or currentDate.wday == 3 or currentDate.wday == 4 or currentDate.wday == 5 or currentDate.wday == 6 or currentDate.wday == 7) and os.date("%H:%M", os.time()+45*60) == fibaro:getValue(1, "sunriseHour")) ) and ( fibaro:getGlobalValue("JOUR_NUIT") == "JOUR" ) and ( fibaro:getGlobalValue("METEO") == "DECOUVERT" ) ) then fibaro:call(24, "setValue", "75"); fibaro:call(19, "setValue", "75"); fibaro:call(22, "sendDefinedPushNotification", "4"); end fibaro:sleep(60*1000); end end Modification des scènes précédente Shad peux tu me donner ton avis STP
  24. Après plusieurs conseil de Jossalf J'ai modifié mes scènes bloc en Lua effectué quelques modif et Tout est parfait Encore un grand merci à JOSSALF Reste à affiner Ci-joint copie pour éventuellement avoir un Avis sur le Résultat. Déclenchement scène en CAS d'ensoleillement. --[[ %% autostart %% properties %% globals JOUR_NUIT METEO --]] local sourceTrigger = fibaro:getSourceTrigger(); if (sourceTrigger["type"] == "autostart") then while true do local currentDate = os.date("*t"); local startSource = fibaro:getSourceTrigger(); if ( ( ((currentDate.wday == 1 or currentDate.wday == 2 or currentDate.wday == 3 or currentDate.wday == 4 or currentDate.wday == 5 or currentDate.wday == 6 or currentDate.wday == 7) and os.date("%H:%M", os.time()+480*60) == fibaro:getValue(1, "sunsetHour")) ) and ( fibaro:getGlobalValue("JOUR_NUIT") == "JOUR" ) and ( fibaro:getGlobalValue("METEO") == "DECOUVERT" ) ) then fibaro:call(25, "setValue", "40"); fibaro:call(20, "setValue", "50"); fibaro:call(22, "sendDefinedPushNotification", "5"); end fibaro:sleep(60*1000); end else local currentDate = os.date("*t"); local startSource = fibaro:getSourceTrigger(); if ( ( (currentDate.wday == 1 or currentDate.wday == 2 or currentDate.wday == 3 or currentDate.wday == 4 or currentDate.wday == 5 or currentDate.wday == 6 or currentDate.wday == 7) ) and ( fibaro:getGlobalValue("JOUR_NUIT") == "JOUR" ) and ( fibaro:getGlobalValue("METEO") == "DECOUVERT" ) or startSource["type"] == "other" ) then fibaro:call(25, "setValue", "40"); fibaro:call(20, "setValue", "50"); fibaro:call(22, "sendDefinedPushNotification", "5"); end end Déclenchement scène en fin d'Après midi Ouverture Totale 1 heure 30 avant le couché du soleil --[[ %% autostart %% properties %% globals JOUR_NUIT --]] local sourceTrigger = fibaro:getSourceTrigger(); if (sourceTrigger["type"] == "autostart") then while true do local currentDate = os.date("*t"); local startSource = fibaro:getSourceTrigger(); if ( ( ((currentDate.wday == 1 or currentDate.wday == 2 or currentDate.wday == 3 or currentDate.wday == 4 or currentDate.wday == 5 or currentDate.wday == 6 or currentDate.wday == 7) and os.date("%H:%M", os.time()+90*60) == fibaro:getValue(1, "sunsetHour")) ) and ( fibaro:getGlobalValue("JOUR_NUIT") == "JOUR" ) ) then fibaro:call(25, "open"); fibaro:call(25, "setValue2", "99"); fibaro:call(20, "open"); fibaro:call(20, "setValue2", "99"); fibaro:call(22, "sendDefinedPushNotification", "6"); end fibaro:sleep(60*1000); end else local currentDate = os.date("*t"); local startSource = fibaro:getSourceTrigger(); if ( ( (currentDate.wday == 1 or currentDate.wday == 2 or currentDate.wday == 3 or currentDate.wday == 4 or currentDate.wday == 5 or currentDate.wday == 6 or currentDate.wday == 7) ) and ( fibaro:getGlobalValue("JOUR_NUIT") == "JOUR" ) or startSource["type"] == "other" ) then fibaro:call(25, "open"); fibaro:call(25, "setValue2", "99"); fibaro:call(20, "open"); fibaro:call(20, "setValue2", "99"); fibaro:call(22, "sendDefinedPushNotification", "6"); end end
×
×
  • Créer...