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

    getSourceTrigger

    j'ai tester ça mai rien local device02 = fibaro.getValue(134, "value") print("value modul 2 = ", device02) if (val == 2) and (device02 == "true") then fibaro.call(134, "turnOff") elseif (val == 2) and (device02 == "false") then fibaro.call(134, "turnOn")
  2. 971jmd

    getSourceTrigger

    salut bon ça commence à fonctionner local val = tonumber(json.encode(sourceTrigger.value)) local device01 = tonumber(fibaro.getValue(107, "value")) print("value = ", device01) if (val == 1) then if (device01 > 0) then fibaro.call(107, 'setValue', 0) else fibaro.call(107, 'setValue', 99) end end mai je n'arrive pas à rajoutée un autre device sur les autre bouton J'ai essayer d'ajouter ça a la suite mai, rien ne fonctionne Si bouton 2 alors allume device 134 local device02 = tonumber(fibaro.getValue(134, "value")) if (val == 2) then if (device02 == "false") then fibaro.call({134}, "turnOn") else fibaro.call({134}, "turnOff") end end
  3. 971jmd

    getSourceTrigger

    Merci je teste A lala nous somme perdu sans GEA
  4. j'ai cherché a récupéré la valeur retournée par le TRIGGER { conditions = { { id = 87, isTrigger = true, operator = "==", property = "sceneActivationEvent", type = "device", value = {} } }, operator = "all" },
  5. salut voila une semaine je cherche une solution pour fair foncgtionner ma telecommande sur ma HC3 avez vous une idée --[[ %% properties 687 sceneActivation -- nastavte vase ID zariadenia Minimote miesto 687, najdeteho ked kliknete na nastavenia zariadenia %% globals --]] local ButtonPressed = fibaro:getValue(687, "sceneActivation") -- takisto treba zmenit ID miesto 687 if (tonumber(ButtonPressed) == 1) then fibaro:debug("MiniMote button 1 pressed") -- spusti sa scena s ID 11 fibaro:startScene(11) elseif (tonumber(ButtonPressed) == 2) then fibaro:debug("MiniMote button 2 pressed") -- naraz sa vypnu zariadenia s ID 580, 629, 678 fibaro:call(580,"turnOff") fibaro:call(629,"turnOff") fibaro:call(678,"turnOff") elseif (tonumber(ButtonPressed) == 3) then fibaro:debug("MiniMote button 3 pressed") elseif (tonumber(ButtonPressed) == 4) then fibaro:debug("MiniMote button 4 pressed") elseif (tonumber(ButtonPressed) == 5) then fibaro:debug("MiniMote button 5 pressed") elseif (tonumber(ButtonPressed) == 6) then fibaro:debug("MiniMote button 6 pressed") fibaro:call(689, "turnOff") elseif (tonumber(ButtonPressed) == 7) then fibaro:debug("MiniMote button 7 pressed") elseif (tonumber(ButtonPressed) == 8) then fibaro:debug("MiniMote button 8 pressed") else fibaro:debug("No response") end
  6. 971jmd

    getSourceTrigger

    il que arrive récupéré la valeur du trigeur
  7. 971jmd

    getSourceTrigger

    non j'ai 8 boutons sur la telecommande
  8. 971jmd

    getSourceTrigger

    deja tester ça fonctionne sur bouton 2 par exemple { conditions = { { id = 87, isTrigger = true, operator = "==", property = "sceneActivationEvent", type = "device", value = 2 } }, operator = "all" } ----ACTION---- fibaro.call(107, 'setValue', 50)
  9. 971jmd

    getSourceTrigger

    j'ai tester la telecommande avec une scene bloc et ça fonctionne et concerti en code LUA { conditions = { { id = 87, isTrigger = true, operator = "==", property = "sceneActivationEvent", type = "device", value = 1 } }, operator = "all" } action local sa = tonumber(json.encode(sourceTrigger.value)) i then use the statements: if (sa == 1) then fibaro.call(107, 'setValue', 2) end mai ça ne fonctionne pas
  10. 971jmd

    getSourceTrigger

    salut j'ai tester çaça mai rein j { conditions = { { id = 87, isTrigger = true, operator = "!=", property = "sceneActivation", type = "device", value = 1 } }, operator = "all" } action local ButtonPressed = fibaro:getValue(87, "sceneActivation") if ( tonumber(ButtonPressed) == 1) then fibaro.call(21, 'turnOn')
  11. 971jmd

    getSourceTrigger

    Oui Scene Activation
  12. 971jmd

    getSourceTrigger

    Une minimote https://www.amazon.fr/Aeotec-Minimote-télécommande-blanc-DSA03202W-ZWEU/dp/B00JGT8EO0
  13. 971jmd

    getSourceTrigger

    Ok mai pour le moment rien ne bouge
  14. 971jmd

    getSourceTrigger

    Si je comprend bien ça --[[ %% autostart %% events %% properties %% globals --]] Et remplacer par { operator = "any", conditions = { {id = 89, isTrigger = true, operator = "!=", property = "centralSceneEvent", type = "device", value = {}}, } }
  15. 971jmd

    getSourceTrigger

    Salut La scène est censé faire quoi exactement ? { operator = "any", conditions = { {id = 89, isTrigger = true, operator = "!=", property = "centralSceneEvent", type = "device", value = {}}, } } local NameScene = "Ma Scène" local _KeyAttribute = sourceTrigger.value.keyAttribute local _KeyId = sourceTrigger.value.keyId fibaro.debug(NameScene, string.format("Scene starting with '%s' key %s", _KeyAttribute, _KeyId))
  16. 971jmd

    getSourceTrigger

    Salut pour ton aide
  17. Salut j’ai trouvé ça sur le Net si ça peut servir
  18. 971jmd

    getSourceTrigger

    Salut et merci pour ton aide j’ai tester et pour le moment impossible d’enregistrer, il y a quel que chose qui vas pas.
  19. 971jmd

    getSourceTrigger

    J ai tester ça mai rien DÉCLARATIONS (Conditions/Déclencheurs) { operator = "all", conditions = {{ id = 87, isTrigger = true, operator = "anyValue", property = "centralSceneEvent", type = "device" }} } Action local trigger = sourceTrigger if (trigger.property == "centralSceneEvent") then -- Tu devrais voir ici tout ce qui passe... for key,value in pairs(trigger.value) do debug(key ..": ".. value) end -- exemple.. --- if (trigger.value.keyId==1) then if (tonumber(ButtonPressed) == 1) then trace("------->>>>> "..trigger.value.keyAttribute) fibaro.call(21, "toggle") end -- etc... end
  20. 971jmd

    getSourceTrigger

    Salut à tous j’ai essayé plusieurs truc et Avec le code suivant de faire fonctionner : centralSceneEvent. Sur la HC3 code ci-dessous de ma HC2 que j’essaye de faire fonctionner sur ma HC3 merci de votre aide --[[ %% properties 42 sceneActivation %% globals --]] local ButtonPressed = fibaro:getValue(42, "sceneActivation") -------ON OFF sup cuisine if ( tonumber(ButtonPressed) == 1) then local deviceValue1 = tonumber(fibaro:getValue(14, "value")); if (deviceValue1 > 0) then fibaro:call(14, "turnOff") else fibaro:call(14, "turnOn"); end end
  21. Salut je migre en douceur, mai pour le LUA c’est pas simple sur HC2 j’ai une télécommande avec plusieurs bouton --[[ %% properties 42 sceneActivation %% globals --]] --TESTEUR --local NumScene = fibaro:getValue(455, "sceneActivation") --fibaro:debug("Numéro de scène: " ..NumScene) ---CODE local ButtonPressed = fibaro:getValue(42, "sceneActivation") -------ON OFF sup cuisine if ( tonumber(ButtonPressed) == 1) then local deviceValue1 = tonumber(fibaro:getValue(14, "value")); if (deviceValue1 > 0) then fibaro:call(14, "turnOff") else fibaro:call(14, "turnOn"); end end ------ ON OFF LP du BAR if ( tonumber(ButtonPressed) == 2) then local deviceValue1 = tonumber(fibaro:getValue(458, "value")); if (deviceValue1 > 0) then fibaro:call(458, "turnOff"); else fibaro:call(458, "turnOn"); end end ------ open vl cuisine if ( tonumber(ButtonPressed) == 3) then fibaro:call(333, "open") fibaro:call(340, "open") ---333 VL PRICIPALE ----340 VL BAR end ----- BONNE NUIT bouton 2 maitenue if ( tonumber(ButtonPressed) == 4) then fibaro:call(333, "close") fibaro:call(340, "close") end ---5 ON OFF Mutimedia ------ ON OFF LP du BAR if ( tonumber(ButtonPressed) == 5) then local deviceValue1 = tonumber(fibaro:getValue(24, "value")); if (deviceValue1 > 0) then fibaro:call(24, "turnOff"); else fibaro:call(24, "turnOn"); end end ----6 ------ open vl cuisine if ( tonumber(ButtonPressed) == 6) then fibaro:call(333, "open") end ------7 off general lampe if ( tonumber(ButtonPressed) == 7) then for _,v in ipairs(fibaro:getDevicesId({properties = {isLight=true}})) do fibaro:call(v, "turnOff") end end if ( tonumber(ButtonPressed) == 8) then fibaro:call(45, "setValue", "5"); end sur HC3 j’arrive sur un seul bouton { conditions = { { id = 81, isTrigger = true, operator = "==", property = "sceneActivationEvent", type = "device", value = 1 } }, operator = "all" } ACTION fibaro.call(21, 'turnOn') ha FIBARO
  22. 971jmd

    Support Gea

    Salut à tous je recherche une solution palliative à GEA qui ne fonctionne pas sur HC3 pensez-vous qu’il serait possible par exemple de récupérer une fonction dans GEA comme ci-dessous. Et de l’utiliser dans une scène LUA de la. HC3 Quel serait les modifications à faire sur la fonction protection = {name="Protection", -- par 971jmd optimize=true, depends= {"property"}, getValue=function(id) local loc = tonumber(fibaro:getValue(id, "localProtectionState")) > 0 local rf = tonumber(fibaro:getValue(id, "RFProtectionState")) > 0 local result = "off" if (loc) then result = "local" end if (rf) then result = "rf" end if (loc and rf) then result = "local_rf" end return result end, control=function(id) if (not id) then id = GEA.currentMainId end return GEA.options.number.control(id) end, action=function(id,typeprotection,mode) if (type(id) ~= "table") then id = {id} end local arg1 = 0 local arg2 = 0 if typeprotection:lower() == "local_rf" then if mode:lower() == "on" then arg1 = 2 arg2 = 1 end elseif typeprotection:lower() == "local" then arg1 = 0 arg2 = 2 if mode:lower() == "on" then arg1 = 2 arg2 = 0 end elseif typeprotection:lower() == "rf" then arg1 = 1 arg2 = 0 if mode:lower() == "on" then arg1 = 0 arg2 = 1 end end for i=1, #id do fibaro:call(id[i], "setProtection", arg1, arg2) end end },
  23. Salut @Did merci je teste
  24. Et j’ai un autre problème j ai branché une sonde DS18B20 de température sur lez entre GND SD SP J’ai bien de température mais elle ne réagit pratiquement pas J’ai même mis la sonde dans de l’eau chaude ça ne bouge pratiquement pas et de l’eau froide pareil
  25. Salut W/O pull up et W /pull up le quel est 3 fils et 2 fil
×
×
  • Créer...