-
Compteur de contenus
3 525 -
Inscription
-
Dernière visite
-
Jours gagnés
10
Tout ce qui a été posté par 971jmd
-
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")
-
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
-
Merci je teste A lala nous somme perdu sans GEA
-
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" },
-
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
-
il que arrive récupéré la valeur du trigeur
-
non j'ai 8 boutons sur la telecommande
-
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)
-
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
-
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')
-
Oui Scene Activation
-
Une minimote https://www.amazon.fr/Aeotec-Minimote-télécommande-blanc-DSA03202W-ZWEU/dp/B00JGT8EO0
-
Ok mai pour le moment rien ne bouge
-
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 = {}}, } }
-
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))
-
-
Salut j’ai trouvé ça sur le Net si ça peut servir
-
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.
-
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
-
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
-
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
-
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 },
- 12 330 réponses
-
- support
- script lua
-
(et 1 en plus)
Étiqueté avec :
-
topic unique Fibaro FGBS-222 Smart Implant - Détecteur Universel Z-Wave+
971jmd a répondu à un(e) sujet de Lazer dans Modules Fibaro
Salut @Did merci je teste -
topic unique Fibaro FGBS-222 Smart Implant - Détecteur Universel Z-Wave+
971jmd a répondu à un(e) sujet de Lazer dans Modules Fibaro
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 -
topic unique Fibaro FGBS-222 Smart Implant - Détecteur Universel Z-Wave+
971jmd a répondu à un(e) sujet de Lazer dans Modules Fibaro
Salut W/O pull up et W /pull up le quel est 3 fils et 2 fil