Aller au contenu

Rem's

Membres confirmés
  • Compteur de contenus

    967
  • Inscription

  • Dernière visite

  • Jours gagnés

    2

Tout ce qui a été posté par Rem's

  1. Rem's

    Scène Trigger automatique

    Bonjour Lazer, Mon soucis est que je ne peux vérifier mes bêtises qu'à travers le "Débug". en remplaçant les "--" j'ai cru bêtement que le problème était solutionné. A chaque fois que j'enregistre, ma scène est prise en compte dans le Début : Je me suis fait leurrer Je ne savais même pas que l'en tête grisé jouait un rôle si important. Loin de moi l'idée de ne pas suivre vos pistes, j'ai toujours été admiratif du job que toi et les autres arrivaient à faire faire à notre box. Re joyeux Noël et de bonnes fêtes
  2. Rem's

    Scène Trigger automatique

    Eh bien mon cher Barelle .... BRAVO Effectivement, en modifiant l'en tête, ca fonctionne : Mille MERCI J'ai toujours été une quiche en codage, je trouve ca logique et intéressant, mais je n'ai aucune formation de base. Pour une fois mon script semblait correct, et pourtant !! Un joyeux Noel à tous et de bonnes fêtes
  3. Rem's

    Scène Trigger automatique

    Bonsoir à tous, Je deviens Barjot !! je n'arrive pas à faire en sorte que cette scène se déclenche en fonction de ma variable Jour_Nuit. Le script semble correct, mais ne se déclenche que si j'enregistre ou lance le débug. Si une âme charitable pouvait me filer un coup de main ... --[[ %% autostart %% properties Jour_Nuit %% globals --]] local sourceTrigger = fibaro:getSourceTrigger(); local startSource = fibaro:getSourceTrigger(); local heureValable = (fibaro:getGlobalValue("Jour_Nuit") == "Matin") -- 07h00 local heureValable2 = (fibaro:getGlobalValue("Jour_Nuit") == "Midi") -- 12h00 local heureValable3 = (fibaro:getGlobalValue("Jour_Nuit") == "Soir") -- 18h00 local heureValable4 = (fibaro:getGlobalValue("Jour_Nuit") == "Soirée") -- 20h30 local heureValable5 = (fibaro:getGlobalValue("Jour_Nuit") == "Nuit") -- 23h59 local heure = os.date("%R"); date = os.date("%d/%m/%Y"); local Message = string.format("Lancement du %s a %s", date, heure) fibaro:debug(Message) if heureValable -- Matin then fibaro:debug("Matin : Baie pendant 1h") -- 07h00 fibaro:call(160, "turnOn") -- Baie Ventilo fibaro:call(144, "turnOn") fibaro:sleep(3*1000); fibaro:call(145, "turnOn") fibaro:sleep(60*60*1000); fibaro:call(160, "turnOff") -- Baie Ventilo fibaro:call(144, "turnOff") -- VMC fibaro:sleep(3*1000); fibaro:call(145, "turnOff") -- VMC high fibaro:debug("Matin : Fin de scène") elseif heureValable2 -- Midi then fibaro:debug("Midi : Baie pendant 1h") -- 12h00 fibaro:call(160, "turnOn") -- Baie Ventilo fibaro:call(144, "turnOn") fibaro:sleep(3*1000); fibaro:call(145, "turnOn") fibaro:sleep(60*60*1000); fibaro:call(160, "turnOff") -- Baie Ventilo fibaro:call(144, "turnOff") -- VMC fibaro:sleep(3*1000); fibaro:call(145, "turnOff") -- VMC high fibaro:debug("Midi : Fin de scène") elseif heureValable3 -- Soir then fibaro:debug("Soir : Baie pendant 1h") -- 18h00 fibaro:call(160, "turnOn") -- Baie Ventilo fibaro:call(144, "turnOn") fibaro:sleep(3*1000); fibaro:call(145, "turnOn") fibaro:sleep(60*60*1000); fibaro:call(160, "turnOff") -- Baie Ventilo fibaro:call(144, "turnOff") -- VMC fibaro:sleep(3*1000); fibaro:call(145, "turnOff") -- VMC high fibaro:debug("Soir : Fin de scène") elseif heureValable4 -- Soirée then fibaro:debug("Soirée : Baie pendant 1h") -- 20h30 fibaro:call(160, "turnOn") -- Baie Ventilo fibaro:call(144, "turnOn") fibaro:sleep(3*1000); fibaro:call(145, "turnOn") fibaro:sleep(60*60*1000); fibaro:call(160, "turnOff") -- Baie Ventilo fibaro:call(144, "turnOff") -- VMC fibaro:sleep(3*1000); fibaro:call(145, "turnOff") -- VMC high fibaro:debug("Soirée : Fin de scène") elseif heureValable5 -- Nuit then fibaro:debug("Nuit : Baie pendant 1h") -- 23h59 fibaro:call(160, "turnOn") -- Baie Ventilo fibaro:call(144, "turnOn") fibaro:sleep(3*1000); fibaro:call(145, "turnOn") fibaro:sleep(60*60*1000); fibaro:call(160, "turnOff") -- Baie Ventilo fibaro:call(144, "turnOff") -- VMC fibaro:sleep(3*1000); fibaro:call(145, "turnOff") -- VMC high fibaro:debug("Nuit : Fin de scène") else fibaro:debug("autre cas") end Un joyeux Noël à tous et de bonnes Fêtes
  4. Rem's

    Scène Trigger automatique

    Les copains vous êtes trop fort .... !!! En fait j'ai refrapper les "--" et puis j'ai une de mes 2 scènes qui tourne. en revanche, je n'arrive pas à déclencher suivant une variable globale. Ce sont des scènes copiées de mes sauvegardes, il y doit y avoir un Pb de caractère Encore merci pour votre oeil aiguisé !!
  5. Rem's

    Scène Trigger automatique

    Bonjour à tous, Suite au Crash (une nouvelle fois) de ma box HC2, et après avoir tout remis en place, j'essaye de faire un peu de ménage dans mes scènes. Seulement voilà, avec le temps, je ne m'améliore pas. Je n'arrive pas à faire en sorte que cette scène se déclenche toute seule. --[[ %% autostart %% properties Jour_Nuit %% globals --]] local startSource = fibaro:getSourceTrigger(); local sourceTrigger = fibaro:getSourceTrigger(); local heure = os.date("%R"); date = os.date("%d/%m/%Y"); local Message = string.format("Lancement du %s a %s", date, heure) fibaro:debug(Message) local heureValable = fibaro:getGlobalValue("Jour_Nuit") == ("Matin") local heureValable2 = fibaro:getGlobalValue("Jour_Nuit") == ("Midi") local heureValable3 = fibaro:getGlobalValue("Jour_Nuit") == ("Soir") local heureValable4 = fibaro:getGlobalValue("Jour_Nuit") == ("Soirée") local heureValable5 = fibaro:getGlobalValue("Jour_Nuit") == ("Nuit") if heureValable -- Matin then fibaro:debug("Matin : Baie pendant 1h") fibaro:call(160, "turnOn") -- Baie Ventilo fibaro:call(144, "turnOn") fibaro:sleep(3*1000); fibaro:call(145, "turnOn") fibaro:sleep(60*60*1000); fibaro:call(160, "turnOff") -- Baie Ventilo fibaro:call(144, "turnOff") -- VMC fibaro:sleep(3*1000); fibaro:call(145, "turnOff") -- VMC high fibaro:debug("Matin : Fin de scène") -- end elseif heureValable2 -- Midi then fibaro:debug("Matin : Baie pendant 1h") fibaro:call(160, "turnOn") -- Baie Ventilo fibaro:call(144, "turnOn") fibaro:sleep(3*1000); fibaro:call(145, "turnOn") fibaro:sleep(60*60*1000); fibaro:call(160, "turnOff") -- Baie Ventilo fibaro:call(144, "turnOff") -- VMC fibaro:sleep(3*1000); fibaro:call(145, "turnOff") -- VMC high fibaro:debug("Matin : Fin de scène") -- end elseif heureValable3 -- Soir then fibaro:debug("Matin : Baie pendant 1h") fibaro:call(160, "turnOn") -- Baie Ventilo fibaro:call(144, "turnOn") fibaro:sleep(3*1000); fibaro:call(145, "turnOn") fibaro:sleep(60*60*1000); fibaro:call(160, "turnOff") -- Baie Ventilo fibaro:call(144, "turnOff") -- VMC fibaro:sleep(3*1000); fibaro:call(145, "turnOff") -- VMC high fibaro:debug("Matin : Fin de scène") -- end elseif heureValable4 -- Soirée then fibaro:debug("Matin : Baie pendant 1h") fibaro:call(160, "turnOn") -- Baie Ventilo fibaro:call(144, "turnOn") fibaro:sleep(3*1000); fibaro:call(145, "turnOn") fibaro:sleep(60*60*1000); fibaro:call(160, "turnOff") -- Baie Ventilo fibaro:call(144, "turnOff") -- VMC fibaro:sleep(3*1000); fibaro:call(145, "turnOff") -- VMC high fibaro:debug("Matin : Fin de scène") -- end elseif heureValable5 -- Nuit then fibaro:debug("Matin : Baie pendant 1h") fibaro:call(160, "turnOn") -- Baie Ventilo fibaro:call(144, "turnOn") fibaro:sleep(3*1000); fibaro:call(145, "turnOn") fibaro:sleep(60*60*1000); fibaro:call(160, "turnOff") -- Baie Ventilo fibaro:call(144, "turnOff") -- VMC fibaro:sleep(3*1000); fibaro:call(145, "turnOff") -- VMC high fibaro:debug("Matin : Fin de scène") -- end else fibaro:debug("Cas non respecté") end D'avance merci pour votre aide et joyeuse fêtes
  6. Bonjour à tous, Cela fait quelques temps que je n'avais rien posté sur le fofo; depuis que j'ai du tout réinstaller sur une nouvelle box (encore merci à Lazer) ! J'ai un soucis de scène. Ne sachant pas écrire proprement, je convertis la scène bloc, et je m'en sert de trame pour faire mon script. Seulement voilà, ça bug Il y aurai-il une âme charitable pour me filer un coup de main ... ? Cette scène me permet d'allumer tout seul la TV à l'heure TLMVP (FR2), puis à 12:45 le Journal de M6, puis le journal de 13h, puis le journal de 20h et enfin l'émission quotidien à 20:45. Je souhaite rajouter une interrogation afin de savoir si la TV est déjà allumé, sinon dérouler la suite en allumant la box, bouton "Ok", et bouton 1 (freebox). --[[ %% autostart %% properties %% weather %% events %% globals --]] local sourceTrigger = fibaro:getSourceTrigger(); function tempFunc() local currentDate = os.date("*t"); local startSource = fibaro:getSourceTrigger(); fibaro:startScene(8); -- MAJ Freebox player if ( ( ((currentDate.wday == 2 or currentDate.wday == 3 or currentDate.wday == 4 or currentDate.wday == 5 or currentDate.wday == 6 or currentDate.wday == 7) and string.format("%02d", currentDate.hour) .. ":" .. string.format("%02d", currentDate.min) == "17:20") ) ) and ( fibaro:getGlobalValue("TV") == "On" ) then -- fibaro:call(78, "pressButton", "2") fibaro:debug("TLMVP") else fibaro:debug("Cas N° 2, TV éteinte-1") -- fibaro:call(77, "pressButton", "1") -- Freebox power fibaro:sleep(10*1000); -- fibaro:call(77, "pressButton", "15") fibaro:sleep(3*1000) -- fibaro:call(77, "pressButton", "11") -- TLMVP end if ( ( ((currentDate.wday == 2 or currentDate.wday == 3 or currentDate.wday == 4 or currentDate.wday == 5 or currentDate.wday == 6 or currentDate.wday == 7) and string.format("%02d", currentDate.hour) .. ":" .. string.format("%02d", currentDate.min) == "17:22") ) ) then -- fibaro:call(77, "pressButton", "1"); -- fibaro:call(98, "pressButton", "1"); fibaro:debug("12.45 : M6-1") end if ( ( ((currentDate.wday == 2 or currentDate.wday == 3 or currentDate.wday == 4 or currentDate.wday == 5 or currentDate.wday == 6 or currentDate.wday == 7) and string.format("%02d", currentDate.hour) .. ":" .. string.format("%02d", currentDate.min) == "17:24") ) ) then -- fibaro:call(77, "pressButton", "1"); -- fibaro:call(98, "pressButton", "1"); fibaro:debug("Journal 13h : TF1 13h-1") end if ( ( ((currentDate.wday == 2 or currentDate.wday == 3 or currentDate.wday == 4 or currentDate.wday == 5 or currentDate.wday == 6 or currentDate.wday == 7) and string.format("%02d", currentDate.hour) .. ":" .. string.format("%02d", currentDate.min) == "17:26") ) ) then -- fibaro:call(77, "pressButton", "1"); -- fibaro:call(98, "pressButton", "1"); fibaro:debug("Journal 20h : TF1 20h-1") end if ( ( ((currentDate.wday == 2 or currentDate.wday == 3 or currentDate.wday == 4 or currentDate.wday == 5 or currentDate.wday == 6 or currentDate.wday == 7) and string.format("%02d", currentDate.hour) .. ":" .. string.format("%02d", currentDate.min) == "17:28") ) ) then -- fibaro:call(77, "pressButton", "1"); -- fibaro:call(98, "pressButton", "1"); fibaro:debug("Journal 20h : TMC 20h45-1") end setTimeout(tempFunc, 60*1000) end if (sourceTrigger["type"] == "autostart") then tempFunc() else local currentDate = os.date("*t"); local startSource = fibaro:getSourceTrigger(); if ( startSource["type"] == "other" ) and ( fibaro:getGlobalValue("TV") == "On" ) then -- fibaro:call(77, "pressButton", "1"); -- fibaro:call(98, "pressButton", "1"); fibaro:debug("12h : TLMVP-2") -- end else fibaro:debug("Cas N° 2, TV éteinte-2") -- fibaro:call(77, "pressButton", "1") -- Freebox power fibaro:sleep(10*1000); -- fibaro:call(77, "pressButton", "15") fibaro:sleep(3*1000) -- fibaro:call(77, "pressButton", "11") -- TLMVP end if ( ( ((currentDate.wday == 2 or currentDate.wday == 3 or currentDate.wday == 4 or currentDate.wday == 5 or currentDate.wday == 6 or currentDate.wday == 7) and string.format("%02d", currentDate.hour) .. ":" .. string.format("%02d", currentDate.min) == "15:10") ) ) then -- fibaro:call(77, "pressButton", "1"); -- fibaro:call(98, "pressButton", "1"); fibaro:debug("12.45 : M6-2") end if ( ( ((currentDate.wday == 2 or currentDate.wday == 3 or currentDate.wday == 4 or currentDate.wday == 5 or currentDate.wday == 6 or currentDate.wday == 7) and string.format("%02d", currentDate.hour) .. ":" .. string.format("%02d", currentDate.min) == "15:15") ) ) then -- fibaro:call(77, "pressButton", "1"); -- fibaro:call(98, "pressButton", "1"); fibaro:debug("Journal 13h : TF1-2") end if ( ( ((currentDate.wday == 2 or currentDate.wday == 3 or currentDate.wday == 4 or currentDate.wday == 5 or currentDate.wday == 6 or currentDate.wday == 7) and string.format("%02d", currentDate.hour) .. ":" .. string.format("%02d", currentDate.min) == "15:15") ) ) then -- fibaro:call(77, "pressButton", "1"); -- fibaro:call(98, "pressButton", "1"); fibaro:debug("Journal 20h : TF1 20h-2") end if ( ( ((currentDate.wday == 2 or currentDate.wday == 3 or currentDate.wday == 4 or currentDate.wday == 5 or currentDate.wday == 6 or currentDate.wday == 7) and string.format("%02d", currentDate.hour) .. ":" .. string.format("%02d", currentDate.min) == "15:15") ) ) then -- fibaro:call(77, "pressButton", "1"); -- fibaro:call(98, "pressButton", "1"); fibaro:debug("Journal 20h : TMC 20h45-2") end fibaro:sleep(60*1000) Je joint ma scène ci dessous, d'avance merci du coup de main
  7. Rem's

    Panne HS … au secours

    Bonjour, je t’ai envoyé un message en MP, je ne sais pas si tu l’as reçu ??
  8. Rem's

    Panne HS … au secours

    Merci pour votre réponse. Avez-vous une idée où est-ce que je peux commander une alimentation Ce sera plus simple pour moi, pas de migration, juste une remise en service. Bonne soirée, et joyeux Noël
  9. Rem's

    Panne HS … au secours

    Bonjour à tous, il semblerait que ma HC2 ne veuille plus fonctionner. Lorsque je rebranche l’alimentation, les diodes s’allument et clignotent, et restent fixe les unes après les autres. sauf arrivée à la dernière à ce moment-là tout s’éteint. Pensez-vous que cela vienne de la box, ou plutôt de l’alimentation ? D’avance, merci pour votre aide, car je ne sais pas quoi acheter. Une bonne soirée à tous, et joyeux Noël
  10. 25 caméras, tu rigoles pas quand tu t’équipes !!! Bravo
  11. Rem's

    Parametrage Dimmer 2

    J’y croyais pas mes yeux, je pensais avoir double cliquer par inadvertance et qu’il m’avait ajouté deux fois le module. J’ai donc tout supprimé, j’ai refait l’inclusion, et c’est la photo que j’ai joint au-dessus. Je ne comprends pas non plus la présence de modules esclave de type sirène, puisque c’est simplement un Dimmer Merci encore du coup demain, bon week-end à tous
  12. Rem's

    Parametrage Dimmer 2

    Bonjour à tous, J’ai eu FGD 211 qui m’a lâché. J’ai commandé un Dimmer 2. Lors de l’installation, je ne comprends pas, j’ai une espèce de sirène alarme, et j’ai surtout le module de cette sirène qui sont en doublon. Cela me fait donc quatre ID De plus, je ne comprends pas pourquoi je tombe sur ce panneau de paramétrage, est-il possible d’afficher l’ancien avec les réglages ligne à ligne ? Merci d’avance pour le coup de main, bonne journée à tous
  13. Rem's

    Erreur scène porte d'entrée

    De retour après un WE chargé ... j'ai compris vos remarques !! Ça marche !! Je peaufine tout ça et vous fait un retour. Merci
  14. Rem's

    Erreur scène porte d'entrée

    En fait , dans le 1er cas après fermeture de la porte (else, je voudrais éteindre les lampes --[[ %% properties 772 value %% globals --]] local door = 772 local light = 459 -- Spots hall local startSource = fibaro:getSourceTrigger(); local heure = string.format(os.date("%H"), "%2d")..string.format(os.date("%M"), "%2d") local enAlerte = (tonumber(fibaro:getValue(door, "value")) > 0) local heureValable = fibaro:getGlobalValue("Jour-Nuit")== ("Jour") -- à partir de 6h30 local heureValable1 = fibaro:getGlobalValue("Jour-Nuit")== ("Matin") -- à partir de 9h00 local heureValable2 = fibaro:getGlobalValue("Jour-Nuit")== ("Midi") -- à partir de 12h00 local heureValable3 = fibaro:getGlobalValue("Jour-Nuit")== ("Après-midi") -- à partir de 14h30 local heureValable4 = fibaro:getGlobalValue("Jour-Nuit")== ("Soir") -- à partir de 17h00 local heureValable5 = fibaro:getGlobalValue("Jour-Nuit")== ("Soirée") -- à partir de 21h00 local heureValable6 = fibaro:getGlobalValue("Jour-Nuit")== ("Nuit") -- à partir de 23h59 if enAlerte and heureValable then fibaro:call(459, "setValue", "40") -- Spots Hall fibaro:sleep(2*1000); fibaro:call(592, "turnOn") -- Plante 1 fibaro:call(593, "turnOn") -- Plante 2 fibaro:debug("Porte ouverte") else fibaro:call(592, "turnOff") -- Plante 1 fibaro:call(593, "turnOff") -- Plante 2 fibaro:sleep(2*1000); fibaro:call(459, "turnOff") -- Spot Hall fibaro:debug("Porte fermée Var") end elseif enAlerte and heureValable4 then if tonumber(fibaro:getValue(459, "value")) > 0 then fibaro:debug("lumière déjà allumée") fibaro:killScenes(427) else fibaro:call(light, "setValue", "30"); -- Spots Hall fibaro:sleep(15*1000); fibaro:call(light, "turnOff") -- Spot Hall fibaro:debug("Porte fermée Var4") end fibaro:debug("Fin de script") fibaro:sleep(60*1000); DEBUG] 20:07:56: 2021-12-11 20:07:56.868878 [ fatal] Unknown exception: /opt/fibaro/scenes/427.lua:34: expected near 'elseif' Encore merci pour ton aide
  15. Rem's

    Erreur scène porte d'entrée

    DEBUG] 17:50:29: 2021-12-11 17:50:29.640256 [ fatal] Unknown exception: /opt/fibaro/scenes/427.lua:38: expected near 'elseif'
  16. Rem's

    Erreur scène porte d'entrée

    J'ai essayé de simplifier la scène pour m'y retrouver et suivre tes conseils ... Ça donne ça --[[ %% properties 772 value %% globals --]] local door = 772 local light = 459 -- Spots hall local startSource = fibaro:getSourceTrigger(); local heure = string.format(os.date("%H"), "%2d")..string.format(os.date("%M"), "%2d") local enAlerte = (tonumber(fibaro:getValue(door, "value")) > 0) local heureValable = fibaro:getGlobalValue("Jour-Nuit")== ("Jour") -- à partir de 6h30 local heureValable1 = fibaro:getGlobalValue("Jour-Nuit")== ("Matin") -- à partir de 9h00 local heureValable2 = fibaro:getGlobalValue("Jour-Nuit")== ("Midi") -- à partir de 12h00 local heureValable3 = fibaro:getGlobalValue("Jour-Nuit")== ("Après-midi") -- à partir de 14h30 local heureValable4 = fibaro:getGlobalValue("Jour-Nuit")== ("Soir") -- à partir de 17h00 local heureValable5 = fibaro:getGlobalValue("Jour-Nuit")== ("Soirée") -- à partir de 21h00 local heureValable6 = fibaro:getGlobalValue("Jour-Nuit")== ("Nuit") -- à partir de 23h59 if enAlerte and heureValable then fibaro:call(459, "setValue", "40") -- Spots Hall fibaro:sleep(2*1000); fibaro:call(592, "turnOn") -- Plante 1 fibaro:call(593, "turnOn") -- Plante 2 fibaro:debug("Porte ouverte") else fibaro:call(592, "turnOff") -- Plante 1 fibaro:call(593, "turnOff") -- Plante 2 fibaro:sleep(2*1000); fibaro:call(459, "turnOff") -- Spot Hall fibaro:debug("Porte fermée") end elseif enAlerte and heureValable4 then if tonumber(fibaro:getValue(459, "value")) > 0 then fibaro:debug("lumière déjà allumée") fibaro:killScenes(427) else fibaro:call(light, "setValue", "30"); -- Spots Hall fibaro:sleep(15*1000); fibaro:call(light, "turnOff") -- Spot Hall fibaro:debug("Porte ouverte matin") end fibaro:debug("Fin de script") fibaro:sleep(60*1000); end D'avance merci de ton aide, précieuse !!
  17. Rem's

    Erreur scène porte d'entrée

    --[[ %% properties 772 value Jour-Nuit %% globals --]] -- Ce scénario sera executé uniquement à l'ouverture / fermeture -- du décteur de porte ID 772 (porte d'entrée) local door = 772 local light = 459 -- Spots hall -- local startSource = fibaro:getSourceTrigger(); local heure = os.date("%R"); date = os.date("%d/%m/%Y"); local Message = string.format("Lancement du %s a %s", date, heure) fibaro:debug(Message) -- local heure = string.format(os.date("%H"), "%2d")..string.format(os.date("%M"), "%2d") -- local heureValable = heure >= "1830" or heure < "2115" local enAlerte = (tonumber(fibaro:getValue(door, "value")) > 0) local heureValable = fibaro:getGlobalValue("Jour-Nuit")== ("Jour") -- à partir de 6h30 local heureValable1 = fibaro:getGlobalValue("Jour-Nuit")== ("Matin") -- à partir de 9h00 local heureValable2 = fibaro:getGlobalValue("Jour-Nuit")== ("Midi") -- à partir de 12h00 local heureValable3 = fibaro:getGlobalValue("Jour-Nuit")== ("Après-midi") -- à partir de 14h300 local heureValable4 = fibaro:getGlobalValue("Jour-Nuit")== ("Soir") -- à partir de 17h00 local heureValable5 = fibaro:getGlobalValue("Jour-Nuit")== ("Soirée") -- à partir de 21h00 local heureValable6 = fibaro:getGlobalValue("Jour-Nuit")== ("Nuit") -- à partir de 23h59 if enAlerte and heureValable -- Jour -- then -- fibaro:startScene(370); fibaro:call(light, "turnOn") else fibaro:call(light, "turnOff") -- Spot Hall -- if fibaro:getGlobalValue("TV")== ("On") -- then -- fibaro:call(56, "pressButton", "1") -- fibaro:debug("TV extinction") -- else -- fibaro:debug("TV déjà éteinte") -- fibaro:debug("Porte ouverte Jour") elseif enAlerte and heureValable1 -- Matin -- then if tonumber(fibaro:getValue(459, "value")) > 0 then fibaro:debug("lumière déjà allumée") fibaro:killScenes(439) else fibaro:call(light, "setValue", "30"); -- Spots Hall fibaro:sleep(15*1000); fibaro:call(light, "turnOff") -- Spot Hall fibaro:debug("Porte ouverte matin") elseif enAlerte and heureValable2 -- Midi -- then fibaro:sleep(10*1000); fibaro:debug("Porte ouverte à midi") elseif enAlerte and heureValable3 -- Après-midi -- then -- fibaro:call(401, "pressButton", "8") -- Annonce Petula fibaro:debug("Porte ouverte à Après-midi") elseif enAlerte and heureValable4 -- Soir -- then if tonumber(fibaro:getValue(459, "value")) > 0 then fibaro:debug("lumière déjà allumée") fibaro:killScenes(439) else fibaro:call(light, "setValue", "40"); -- Spots Hall fibaro:sleep(15*1000); fibaro:call(light, "turnOff") -- Spot Hall fibaro:debug("Porte ouverte le soir") elseif enAlerte and heureValable5 -- Soirée then if tonumber(fibaro:getValue(459, "value")) > 0 then fibaro:debug("lumière déjà allumée") fibaro:killScenes(439) else fibaro:call(light, "setValue", "50"); -- Spots Hall fibaro:sleep(15*1000); fibaro:call(light, "turnOff") -- Spot Hall fibaro:debug("Porte ouverte en soirée") elseif enAlerte and heureValable6 -- Nuit -- then fibaro:call(light, "setValue", "20"); -- Spots Hall fibaro:sleep(15*1000); fibaro:call(659, "turnOff") -- Lampe boule fibaro:debug("Porte ouverte la nuit") -- Nuit -- -- fibaro:killScenes(439) else fibaro:debug("Porte fermée") end J'ai retrouvé le bouton, et le code Lua !!
  18. Rem's

    Erreur scène porte d'entrée

    Merci pour ta réponse Barelle !! J'ai essayé de faire le ménage mais j'ai une erreur : [DEBUG] 16:42:53: 2021-12-11 16:42:53.320872 [ fatal] Unknown exception: /opt/fibaro/scenes/100.lua:44: 'end' expected (to close 'if' at line 31) near 'elseif' --[[ %% properties 772 value Jour-Nuit %% globals --]] local door = 772 local light = 459 -- Spots hall -- local startSource = fibaro:getSourceTrigger(); local heure = os.date("%R"); date = os.date("%d/%m/%Y"); local Message = string.format("Lancement du %s a %s", date, heure) fibaro:debug(Message) local enAlerte = (tonumber(fibaro:getValue(door, "value")) > 0) local heureValable = fibaro:getGlobalValue("Jour-Nuit")== ("Jour") -- à partir de 6h30 local heureValable1 = fibaro:getGlobalValue("Jour-Nuit")== ("Matin") -- à partir de 9h00 local heureValable2 = fibaro:getGlobalValue("Jour-Nuit")== ("Midi") -- à partir de 12h00 local heureValable3 = fibaro:getGlobalValue("Jour-Nuit")== ("Après-midi") -- à partir de 14h300 local heureValable4 = fibaro:getGlobalValue("Jour-Nuit")== ("Soir") -- à partir de 17h00 local heureValable5 = fibaro:getGlobalValue("Jour-Nuit")== ("Soirée") -- à partir de 21h00 local heureValable6 = fibaro:getGlobalValue("Jour-Nuit")== ("Nuit") -- à partir de 23h59 if enAlerte and heureValable -- Jour -- then fibaro:call(light, "turnOn") else fibaro:call(light, "turnOff") -- Spot Hall elseif enAlerte and heureValable1 -- Matin -- then if tonumber(fibaro:getValue(459, "value")) > 0 then fibaro:debug("lumière déjà allumée") else fibaro:call(light, "setValue", "30"); -- Spots Hall fibaro:sleep(15*1000); fibaro:call(light, "turnOff") -- Spot Hall fibaro:debug("Porte ouverte matin") elseif enAlerte and heureValable2 -- Midi -- then fibaro:sleep(10*1000); fibaro:debug("Porte ouverte à midi") elseif enAlerte and heureValable3 -- Après-midi -- then fibaro:call(401, "pressButton", "8") -- Annonce Petula fibaro:debug("Porte ouverte à Après-midi") elseif enAlerte and heureValable4 -- Soir -- then if tonumber(fibaro:getValue(459, "value")) > 0 then fibaro:debug("lumière déjà allumée") fibaro:killScenes(439) else fibaro:call(light, "setValue", "40"); -- Spots Hall fibaro:sleep(15*1000); fibaro:call(light, "turnOff") -- Spot Hall fibaro:debug("Porte ouverte le soir") elseif enAlerte and heureValable5 -- Soirée then if tonumber(fibaro:getValue(459, "value")) > 0 then fibaro:debug("lumière déjà allumée") fibaro:killScenes(439) else fibaro:call(light, "setValue", "50"); -- Spots Hall fibaro:sleep(15*1000); fibaro:call(light, "turnOff") -- Spot Hall fibaro:debug("Porte ouverte en soirée") elseif enAlerte and heureValable6 -- Nuit -- then fibaro:call(light, "setValue", "20"); -- Spots Hall fibaro:sleep(15*1000); fibaro:call(659, "turnOff") -- Lampe boule fibaro:debug("Porte ouverte la nuit") -- Nuit -- -- fibaro:killScenes(439) else fibaro:debug("Porte fermée") end
  19. Bonjour à tous, j'espère que la communauté va bien ... Je sollicite un coup de main car j'ai voulu modifié je ne sais pas quoi et ma scène est en erreur D'avance merci, bon week end à tous ! --[[ %% properties 772 value Jour-Nuit %% globals --]] -- Ce scénario sera executé uniquement à l'ouverture / fermeture -- du décteur de porte ID 772 (porte d'entrée) local door = 772 local light = 459 -- Spots hall -- local startSource = fibaro:getSourceTrigger(); local heure = os.date("%R"); date = os.date("%d/%m/%Y"); local Message = string.format("Lancement du %s a %s", date, heure) fibaro:debug(Message) -- local heure = string.format(os.date("%H"), "%2d")..string.format(os.date("%M"), "%2d") -- local heureValable = heure >= "1830" or heure < "2115" local enAlerte = (tonumber(fibaro:getValue(door, "value")) > 0) local heureValable = fibaro:getGlobalValue("Jour-Nuit")== ("Jour") -- à partir de 6h30 local heureValable1 = fibaro:getGlobalValue("Jour-Nuit")== ("Matin") -- à partir de 9h00 local heureValable2 = fibaro:getGlobalValue("Jour-Nuit")== ("Midi") -- à partir de 12h00 local heureValable3 = fibaro:getGlobalValue("Jour-Nuit")== ("Après-midi") -- à partir de 14h300 local heureValable4 = fibaro:getGlobalValue("Jour-Nuit")== ("Soir") -- à partir de 17h00 local heureValable5 = fibaro:getGlobalValue("Jour-Nuit")== ("Soirée") -- à partir de 21h00 local heureValable6 = fibaro:getGlobalValue("Jour-Nuit")== ("Nuit") -- à partir de 23h59 if enAlerte and heureValable -- Jour -- then -- fibaro:startScene(370); fibaro:call(light, "turnOn") else fibaro:call(light, "turnOff") -- Spot Hall end if fibaro:getGlobalValue("TV")== ("On") then fibaro:call(56, "pressButton", "1") fibaro:debug("TV extinction") else fibaro:debug("TV déjà éteinte") fibaro:debug("Porte ouverte Jour") end elseif enAlerte and heureValable1 -- Matin -- then if tonumber(fibaro:getValue(459, "value")) > 0 then fibaro:debug("lumière déjà allumée") fibaro:killScenes(439) else fibaro:call(light, "setValue", "30"); -- Spots Hall fibaro:sleep(15*1000); fibaro:call(light, "turnOff") -- Spot Hall fibaro:debug("Porte ouverte matin") end elseif enAlerte and heureValable2 -- Midi -- then fibaro:sleep(10*1000); fibaro:debug("Porte ouverte à midi") elseif enAlerte and heureValable3 -- Après-midi -- then -- fibaro:call(401, "pressButton", "8") -- Annonce Petula fibaro:debug("Porte ouverte à Après-midi") elseif enAlerte and heureValable4 -- Soir -- then if tonumber(fibaro:getValue(459, "value")) > 0 then fibaro:debug("lumière déjà allumée") fibaro:killScenes(439) else fibaro:call(light, "setValue", "40"); -- Spots Hall fibaro:sleep(15*1000); fibaro:call(light, "turnOff") -- Spot Hall fibaro:debug("Porte ouverte le soir") elseif enAlerte and heureValable5 -- Soirée then if tonumber(fibaro:getValue(459, "value")) > 0 then fibaro:debug("lumière déjà allumée") fibaro:killScenes(439) else fibaro:call(light, "setValue", "50"); -- Spots Hall fibaro:sleep(15*1000); fibaro:call(light, "turnOff") -- Spot Hall fibaro:debug("Porte ouverte en soirée") elseif enAlerte and heureValable6 -- Nuit -- then fibaro:call(light, "setValue", "20"); -- Spots Hall fibaro:sleep(15*1000); fibaro:call(659, "turnOff") -- Lampe boule fibaro:debug("Porte ouverte la nuit") -- Nuit -- -- fibaro:killScenes(439) else fibaro:debug("Porte fermée") end
  20. Rem's

    Bonsoir David, excuse-moi de te déranger, je suis en cours demain à mon bureau pour installer une baie informatique avec 60 000 € de matériel à l’intérieur. Il faut que j’amène deux alimentations électriques. Ma question est quel est le type de disjoncteur que je dois utiliser, type de différentiel, la puissance étant de 2500 ouates environPar ligne.

    Merci de ta réponse, je te c’est fin limier sur le forum, et toujours de bon conseil. Prends soin de toi et de ta famille et bonnes fêtes

    1. Rem's

      Rem's

      Siri écrit vraiment n’importe comment !Siri écrit vraiment n’importe comment !

    2. Did

      Did

       Salut,

       

      2500W trop fort pour utiliser du 1,5mm2 donc prévoir du câble RO2V 3x2,5mm2 pour les deux alimentations.

      Pour être tranquille au niveau de la protection, je passerais sur deux disjoncteurs différentiels 16A - 30mA type F (anciennement appelé Hpi, immunité renforcée aux déclenchements intempestifs).

       

      Bonnes fêtes à toi aussi (pas plus de six à table et papi, mamie à la niche). :P

       

    3. Rem's

      Rem's

      Merci Didier, tu es au top ! Passe une bonne soirée, à bientôt

  21. Rem's

    Avis sur Planète Domotique

    Ta démarche n'a rien à voir avec le fonctionnement de ce forum. Tu es grand, fais ce que tu as à faire, et tu sais quoi, si c'est un bon tuyau, alors fais nous en part. Tes histoires de moralité et d'équité commerçante sont du ressort de BFM TV. Effectivement, tout le monde à le droit de s'exprimer (moi y compris), ceci étant pour de la domotique, on est loin TRES loin du sujet Bonne journée
  22. Rem's

    IFTT

    Bonsoir à tous, Pouvez vous m'aider à corriger cette ligne qui est censé déclencher dans IFTT Il faut bien mettre la methode : POST et le contenu : application/Json ? http://XXXX:YYYY@00.123.45.678:8081/api/callAction?deviceID=319&amp;name=pressButton&arg1=6 D'avance merci du coup de main !!
  23. Rem's

    IFTT

    Merci, du conseil. En fait j'utilisais celui là avant que Google home et IFTT se démocratise. Je trouvais cela plus simple que de dire "Ok Google, jarvis allume la lampe. Je vais m'y repencher dessus, merci
  24. Rem's

    IFTT

    Bonjour à tous, J'utilisais pas mal IFTT, du style : "je vais me coucher", cela déclenchait un module virtuel sur ma HC2. Il semblerait que ce service soit devenu payant au dela de 3 requêtes .... !! Insuffisant pour moi,car j'ai d'autres scènes de feignant !!! Auriez vous une solution ? D'avance merci du coup de main, et ...... prenez soin de vous, covid oblige
  25. Rem's

    [Rumeurs] IPX800 v5

    Ça a l’air bien tout ça ……… À suivre !!
×
×
  • Créer...