Aller au contenu

971jmd

Membres confirmés
  • Compteur de contenus

    3 525
  • Inscription

  • Dernière visite

  • Jours gagnés

    10

Tout ce qui a été posté par 971jmd

  1. 971jmd

    Support Gea

    Augmente le Max. running instances à 5
  2. 971jmd

    j'apprend le LUA mai

    if tonumber(trigger.deviceID) == 368 and tonumber(fibaro:getValue(368, "value")) == 1 then fibaro:call(369, "turnOff") si ????????? est égale à Id368 et si la valeur de Id 368 égale 1 aloes Off Id 369
  3. 971jmd

    j'apprend le LUA mai

    oui Bon ça fonctionne en deux mots quel est la fonction de fibaro:getSourceTrigger() Moi je comprends que c'est OU
  4. 971jmd

    j'apprend le LUA mai

    Merci, je teste demain matin. je doit avouer que cette semaine je sature sur le LUA mai je m’accroche
  5. 971jmd

    j'apprend le LUA mai

    Salut J'ai un code simple que je n'arrive pas à faire fonctionner Soi je suis c.. ou fatiguée si ma lampe id38 On alors OFF id 369 ou si ma lampe id369 On alors OFF id 368 --[[ %% properties 368 value 369 value %% events %% globals --]] local lp1 = tonumber(fibaro:getValue(368, "value")) local lp2 = tonumber(fibaro:getValue(369, "value")) if lp1 == 1 then fibaro:call(369, "turnOff") fibaro:abort() end if lp2 == 1 then fibaro:call(368, "turnOff") fibaro:abort() end
  6. 971jmd

    j'apprend le LUA mai

    Après une nuit de sommeil tout fonctionne function foncA (a, b ) arg_A = a arg_B = b return arg_A end local aze = 10 if aze == 10 then arg_A = 2 --- print(arg_A) end local aze = 10 if aze == 10 then arg_B = 100 --- print(arg_A) end if arg_A == 2 then print("arg A ok") end if arg_B == 100 then print("arg B ok") end
  7. 971jmd

    j'apprend le LUA mai

    Si je souhaite affecter une valeur 2 à l’argument A : 1>>>> if ...... then foncA (2)  ou 2>>>> if ....... then resultat_A_foncA (2) Et pour la lire 3>>>>. If resultat_A_foncA = 2 then..... ou 4>>>>. if fonc_A = 2 then ...... function foncA (z)
  8. 971jmd

    j'apprend le LUA mai

    En gros je n'arrive à dissocier les deux argument avec un seul argument ça fonctionne function foncA (z ) arg_A = z return arg_A end local aze = 10 if aze == 10 then foncA (2) print(arg_A) end if arg_A == 2 then print("ok youppp") end
  9. 971jmd

    j'apprend le LUA mai

    Non je n'ai pas trouver pk print (foncA(resultat_A_foncA)) me renvoi 10 et 100 pour moi print (foncA(resultat_A_foncA)) = 100 et print (foncA(resultat_B_foncA)) = 10 function foncA (a , b) resultat_A_foncA = 100 resultat_B_foncA = 10 return resultat_A_foncA , resultat_B_foncA end print (foncA(resultat_A_foncA))
  10. 971jmd

    Support Gea

    A la question Ça ne va pas saturer la box de vérifier cette lignependant 24h pour une action unique dans la journée? c’est NON pas de problème et la syntaxe est mode emploi de GEA
  11. 971jmd

    Support Gea

    Non de wi-fi la syntaxe de GEA
  12. 971jmd

    Support Gea

    En gros répète va répéter la ligne toutes les 30 secondes jusqu’à temps que les conditions soient remplies
  13. J’ai testé avec deux scénarios Block, Ça fonctionne très bien scénario N1 : SI s1 = on alors off S2 scénario N2 : SI s2 = on alors off S1
  14. 971jmd

    Support Gea

    C’est pour répéter la ligne de code jusqu’à que les conditions soient remplies
  15. 971jmd

    Support Gea

    GEA.add({{"Global", "Jour_Chome", "Non"},{"Time", "00:30", "00:31"}}, 30, "", {{"Scenario", xx}, {"Repeat"}})
  16. 971jmd

    Support Gea

    j'ai oublier le {"Repeat"} rajoute le
  17. 971jmd

    Support Gea

    donc GEA.add({{"Global", "Jour_Chome", "Non"},{"Time", "00:30", "00:31"}}, 30, "", {{"Scenario", xx}, {"Repeat"}})
  18. 971jmd

    Support Gea

    Pour être sûre que ta variable fonctionne bien et assure-toi que ta variable est bien à Non Essaye comme ça : GEA.add({"Global", "Jour_Chome", "Non"}, 30, "test de la variable ok")
  19. 971jmd

    Support Gea

    Test comme ça : GEA.add({"Global", "Jour_Chome", "Non"}, 30, "") Vérifie l'horographe de: Non ou non ou NON.....
  20. 971jmd

    Support Gea

    Attend je test de mon cotée
  21. 971jmd

    j'apprend le LUA mai

    j'ai trouver function foncA (z , x) resultat_foncA = z + x return resultat_foncA end if a == a then foncA (20, 230) print(resultat_foncA) end local azerty = resultat_foncA if resultat_foncA == 250 then print("ok") end
  22. 971jmd

    Support Gea

    non comme ça GEA.add({{"Global", "Jour_Chome", "Non"}, {"Time", "00:30", "00:31"}}, 30, "", {"Scenario", 6}})
  23. 971jmd

    Support Gea

    {"Time", "22:00", "23:00"} et comme ça GEA.add({{"Global", "Jour_Chome", "Non"}, 30, "", {"Time", "00:30", "00:31"}, {"Scenario", 6}})
  24. 971jmd

    Support Gea

    Peut-être le format heure {"Time", "09:12","09:13"},
  25. 971jmd

    j'apprend le LUA mai

    J'ai testé une fonction comme ça mai impossible d'exploiter le foncA si foncA = 20 alors.......ne fonctionne pas function foncA (z , x) resultat = z + x return resultat end local a = 100 if a == 100 then foncA (10, 10) print(resultat) end if foncA () == 20 then print("ok") end
×
×
  • Créer...