Aller au contenu

Rem's

Membres confirmés
  • Compteur de contenus

    949
  • Inscription

  • Dernière visite

Messages posté(e)s par Rem's


  1. 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


  2. Il y a 13 heures, mprinfo a dit :

    Je peux même ajouter une alimentation secourue emoji12.png pour le même prix
    Je n'ai presque jamais utilisé l'alimentation
    Sauf la dernière année car la batterie de l'alimentation secourue et hs.

    Envoyé de mon BLA-L29 en utilisant Tapatalk
     

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


  3. 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


  4. 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


  5. 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

    9764C39D-E15B-4455-B32B-4B7EE1315372.jpeg

    1486091D-E813-4992-B946-E963768C78EE.jpeg


  6. 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


  7. 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 !!


  8. --[[
    %% 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 !!


  9. 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

  10. 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


  11. Le 20/11/2020 à 00:04, MAM78 a dit :

    De quoi les ai-je accusés ? j'ai pourtant bien relus mes propos, je ne vois pas ? mais bon ce n'est pas le plus important.

     

    Je suis navré de constater qu'à aucun moment tu ne reviens sur tes propos tenus envers moi. C'est bien dommage.

     

    J'osais espérer de la part d'un modérateur, un peu plus de respect et de retenue à l'égard d'un des membres actif du forum.

     

    La liberté d'expression est une chose mais "insulter" en est une toute autre. Cf. tes accusations à mon égare malhonnête, arnaqueur, combinard, nombriliste.

    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

    • Like 2

  12. 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


  13. 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


  14. Bonjour à tous,

     

    J'essaye de faire le ménage dans mes comptes sur les téléphone, et je ne comprends rien !!

    Est ce qu'il existe un tutos là dessus ?

     

    Mon soucis est le suivant

    Firmware : 4.580.

    Sur l'ordi je me log en user : "XXXX" et password "xxxx".

     

    Je ne comprend pas la fonction l'onglet contrôle d'acces :

    Pouvez vous m'expliquer à quoi sert le Super user ? - Chez moi "XXXX" et password  "cheval".

    Pouvez vous m'expliquer à quoi sert Utilisateur ? - Chez moi Remy "adresse mail"  et password "mouton", password confirm "mouton".

     

    DONC, sur l'iPhone (j'ai toujours l'ancienne appli) :

    Je vais dans paramètres, et je rentre quel compte ?

    Comment fait-il pour différencier mon tél et celui de ma femme ?

     

    Mon iPad est lui comme le super user, il reçoit correctement les notif, lorsque je sélectionne dans ma scène le block "iPad de Rémy".

     

    Pourquoi le "mode Hôtel", à quelle moment on le configure et surtout OU ?

     

     

    Rmq : je n'arrive pas à différencier mes tél et ma tablette. la géolocalisation fonctionne mais me dit n'importe quoi puisque je dois avoir un ambroglio dans les compte.

    Je ne comprend pas ou renseigner les différent utilisateur pour bénéficier des compte et réglages d'accès aux scènes et modules (pour ne pas saturer l'affichage selon les utilisateurs).

    Ok, l'adresse MAC fait son job, alors pourquoi les copte utilisateur ?

     

    Je ne sais pas si j'ai été suffisamment explicite, d'avance merci du coup de main.

     

    Prenez soin de vous.

     

    #confinnement.png


  15. Merci de votre réponse.

    Je suis sur Synology, j'ai créé un certificat let's encrypted.

    J'ai essayé de créer un proxy reverse, mais sur le port 5021 (connexion https).

    Mais en fait, il ne se passe rien, aussi bien sur Chrome que IE.

     

    Une idée ?? d'avance merci du coup de main.


  16. Bonjour à tous, 

     

    J'en ai marre d'avoir cette page qui me prévient "d'un problème de sécurité avec cette page".

    J'ai essayé d'installer un certificat let's encrypt, ... à priori c'est bon, sauf que toujours le même problème.

    J'utilise aussi bien internet explorer que Google Chrome.

    Il y aurait-il une âme charitable pour me filer un coup de main, je trouve de tout et de rien sur le web, sans savoir vraiment quoi chercher.

     

    D'avance merci pour votre aide.

     

    Prenez soin de vous et , ..... restez chez vous !

    Message - Google.png

    Message - Internet explorer.png


  17. Merci les gars, c'est ce qui est appréciable avec vous, sur ce Fofo ... !! c'est toujours pointu, clair, et consensuel.

     

    Mes données (video, photo, musique et fichiers bureautique) sont sur mon nas. J'y accède via mes ordi ou mes TV samsung (c'est de UpnP me semble t-il). J'appelle mon film via l'explorateur, et je matte.

    Je me prends pour un photographe en ce moment (Nikon D7200), et j'y stocke mes photos pour les montrer à ma famille, sur la Télé.

     

    Donc je me disait que les performances, au vue de mon usage ne sont peu être pas si extrême. Donc peut être changer de RAID et optimiser le stockage sur les 2 disques, soit 2 x 3 To.

    Je pense que mon DS 214 play est peut être obsolète (ce modèle ne permet pas de lui rajouter de la mémoire).

     

    Après si je change NAS et disque, soit environ 1 000 €, je trouve que c'est un peu démesuré pour mon usage, bien que l'envie ne me manque pas (je préfère voir grand et avoir de la réserve sous la pédale).

     

    Voilà, pour vous préciser un peu mieux l'utilisation, mes besoins.

     

    Nb : J'ai également un boitier 2 baies qui se branche en USB, mais celui-ci est sans disque dur, par conséquent je préfère me servir de mes 3 petits DD externes de chez WD (faible stockage 2 ou 3 To).

     

×