Jump to content

Welcome to Smart Home Forum by FIBARO

Dear Guest,

 

as you can notice parts of Smart Home Forum by FIBARO is not available for you. You have to register in order to view all content and post in our community. Don't worry! Registration is a simple free process that requires minimal information for you to sign up. Become a part of of Smart Home Forum by FIBARO by creating an account.

 

As a member you can:

  •     Start new topics and reply to others
  •     Follow topics and users to get email updates
  •     Get your own profile page and make new friends
  •     Send personal messages
  •     ... and learn a lot about our system!

 

Regards,

Smart Home Forum by FIBARO Team


  • 0

POPP Z-RAIN


ste73

Question

Hello. I’ve a POPP Z-RAIN in my HCL and cannot have a good settimo for it

 

i mean: i would like it to switch off a plug if it rains more than X mm and turn on it after 1 Hours if it stops.

 

i have my scenes and thay seems to work, but ...

 

1) if rain is under 10 turn on cause a continuos action ... each hour.

 

2) if it rains i have different value from this device: mm/h but sometimes m3. So it seams that unit changes, but i don’t understand why.

 

any idea?

 

tks

Link to comment
Share on other sites

7 answers to this question

Recommended Posts

  • 0

Hello @ste73,

 

Could you show us what API presents about this device?

 

Open: 

Please login or register to see this code.

for example:

Please login or register to see this code.

 

You can copy the content of it here or you can post it on some 

Please login or register to see this link.

 website so that you can include only a link here.

Edited by I.Srodka
Link to comment
Share on other sites

  • 0
  • Inquirer
  • Please login or register to see this code.

     

    What is strange is the change of unit. Now it’s on mm3

    Edited by I.Srodka
    Link to comment
    Share on other sites

    • 0

    I also have the same problem.

    Z-Rain meter showing results randomly than in m3 than in mm/h. 

    Link to comment
    Share on other sites

    • 0

    Hi @ste73,

     

    To manage it like you proposed, you need to configure associations properly:

    Please login or register to see this link.

    Please login or register to see this link.

     

    You can associate WallPlug, so that it will turn off the wallplug every time there is a rain.

     

     

    Link to comment
    Share on other sites

    • 0

    Nadal nic. Nikt nie może rozwiązać problemu z Z-Rain? Te losowe zmiany jednostek. Brak przeglądu historii opadów. Nie jest to ciekawe.

    Link to comment
    Share on other sites

    • 0

    Wykorzystując POPP-Z rain stworzyłem scenę, która informuje mnie o ilości opadów na iPhona.

     

    --[[
    %% properties
    643 value
    %% weather
    %% events
    %% globals
    --]]

    local rainRate = 643    -- sensor deszczu chwilowy mm/h
    local rainMeter = 644   -- sensor deszczu sumaryczny m3
    local iPhone = 687      -- iPhone Radek
    local opadChwilowy

    ---- nie edytuj poniżej tej linii -------------------------------------------
    local startSource = fibaro:getSourceTrigger()
    -----------------------------------------------------------------------------

    fibaro:debug("uruchamiam scenę nr "..fibaro:countScenes())

    if ( (fibaro:countScenes() > 1) )
      -- sprawdzenie czy nie jest za dużo instancji scen
      then
        fibaro:debug("-------------------")
        fibaro:debug("scena numer: "..fibaro:countScenes().." Za dużo scen - zamykam")
        fibaro:debug("-------------------")
        fibaro:abort()
    end


    fibaro:sleep(2000);
    fibaro:debug("aktualny rainRate " .. fibaro:getValue(rainRate, "value") .."mm/h")
    fibaro:debug("scena numer: "..fibaro:countScenes())  
    fibaro:debug("ooooooooooooooooooooooooooo")

    -- obliczanie ilości opadu chwilowego
    opadChwilowy = fibaro:getValue(rainRate, "value") - fibaro:getGlobal("opadChwilowyPoprz")
    fibaro:debug("Opad chwilowy: " .. opadChwilowy .."mm/h")

    -- sprawdzanie ilości opadu chwilowego
      if ((opadChwilowy > 0) and (opadChwilowy <= 2.5))
      then
         -- LEKKI DESZCZ --
         fibaro:call(iPhone, "sendDefinedPushNotification", "25")
         fibaro:debug("lekki deszcz " .. opadChwilowy .."mm/h")
         fibaro:setGlobal("opadChwilowyPoprz", fibaro:getValue(rainRate, "value")) -- zapisz zmienną globalną
         fibaro:sleep(1000);
         fibaro:abort()
      elseif ((opadChwilowy > 2.5) and (opadChwilowy <= 7.5))
          then
             -- UMIARKOWANY DESZCZ --
             --fibaro:startScene(163)
             fibaro:call(iPhone, "sendDefinedPushNotification", "26")
             fibaro:debug("umiarkowany deszcz " .. opadChwilowy .."mm/h")
             fibaro:setGlobal("opadChwilowyPoprz", fibaro:getValue(rainRate, "value")) -- zapisz zmienną globalną
             fibaro:sleep(1000);
             fibaro:abort()
          elseif ((opadChwilowy > 7.5) and (opadChwilowy <= 25))
              then
                 -- ULEWNY DESZCZ --
                 --fibaro:startScene(163)
                 fibaro:call(iPhone, "sendDefinedPushNotification", "27")
                 fibaro:debug("ulewny deszcz " .. opadChwilowy .."mm/h")
                 fibaro:setGlobal("opadChwilowyPoprz", fibaro:getValue(rainRate, "value")) -- zapisz zmienną globalną
                 fibaro:sleep(1000);
                 fibaro:abort()             
              elseif (opadChwilowy > 25)
                  then
                     -- OBERWANIE CHMURY --
                     --fibaro:startScene(163)
                     fibaro:call(iPhone, "sendDefinedPushNotification", "32")
                     fibaro:debug("oberwanie chmury " .. opadChwilowy .."mm/h")
                     fibaro:setGlobal("opadChwilowyPoprz", fibaro:getValue(rainRate, "value")) -- zapisz zmienną globalną
                     fibaro:sleep(1000);
                     fibaro:abort()
                  elseif (opadChwilowy <= 0)
                      then
                         -- BEZ DESZCZU --
                         fibaro:debug("bez deszczu".. opadChwilowy.. "mm/h")
                         fibaro:setGlobal("opadChwilowyPoprz", (fibaro:getValue(rainMeter, "value") * 1000 )) -- zapisz zmienną globalną
                         fibaro:sleep(1000);
                         fibaro:abort()
                         
      end

     

     

    Scena działa w zasadzie poprawnie... ale "Max. liczba instancji:" musiałem nastawić na 1 gdyż urządzenie w przypadku rozpoczęcia opadów z 0 deszczu na >0 wysyła ramkę asocjacji, z którą nie mogę sobie poradzić, tj. gdy zaczyna padać to z 0 pomiarów pojawia się wielokrotność 7.00 przy każdorazowym przechyleniu miarki na deszcz w urządzeniu (w jednym okresie 5minutowym: jedno przechylenie: 7.00 i następnie 0.5 mm deszczu...      dwa przechylenia: 14.00 i 1 mm deszczu... itd.).

     

    Należy również zadeklarować zmienną globalną w której zapisany jest poprzedni stan opadu w celu obliczenia ile napadało od poprzedniego pomiaru

     

    Edited by RADSON
    Link to comment
    Share on other sites

    • 0

    Stworzyłem również scenę wykorzystującą POPP Z rain do pomiarów opadów dobowych i włączających lub nie podlewanie ogrodu. Pomiar codziennie o 23:00

     

    --[[
    %% autostart
    %% properties
    %% weather
    %% events
    %% globals
    --]]

    local sourceTrigger = fibaro:getSourceTrigger();
    function tempFunc()
    local currentDate = os.date("*t");
    local startSource = fibaro:getSourceTrigger();


    fibaro:debug("started...")
    fibaro:debug("Ilość opadów (godz. 23:00 wczoraj) = " .. fibaro:getGlobal("opadPoczatek") .. " m3")
    fibaro:debug("Ilość opadów (od 23:00 do teraz) = " .. fibaro:getValue(644, "value") - fibaro:getGlobal("opadPoczatek") .. " m3")

    ----------- sprawdzanie stanu opadów o 23:00 -----------------
    -----------   dane potrzebne następnego dnia  -----------------
    if (string.format("%02d", currentDate.hour) .. ":" .. string.format("%02d", currentDate.min) == "23:00")
    then
        fibaro:setGlobal("opadPoczatek", fibaro:getValue(644, "value"))
        fibaro:debug("Ilość opadów o godz: " .. (string.format("%02d", currentDate.hour) .. ":" .. string.format("%02d", currentDate.min) .. " = " .. fibaro:getGlobal("opadPoczatek") .. "m3"));
    end

    ----------- sprawdzanie stanu opadów o 22:59 -----------------
    if (string.format("%02d", currentDate.hour) .. ":" .. string.format("%02d", currentDate.min) == "22:59")
    then
        fibaro:setGlobal("opadKoniec", fibaro:getValue(644, "value"))
        fibaro:debug("Ilość opadów o godz: " .. (string.format("%02d", currentDate.hour) .. ":" .. string.format("%02d", currentDate.min) .. " = " .. fibaro:getGlobal("opadKoniec") .. "m3"));
        local iloscOpadu = fibaro:getGlobal("opadKoniec") - fibaro:getGlobal("opadPoczatek")
        fibaro:setGlobal("iloscOpadu", iloscOpadu)
        fibaro:debug("Ilość opadu ostatnie 24h = " .. iloscOpadu .. "m3")
        
        --- załączanie zraszania, jeśli ilość dobowa opadów mniejsza niż 0.001 ------
        if iloscOpadu < 0.001 and fibaro:getGlobal("TrybPracyZraszaczy") == "Auto"
        then
            fibaro:debug("Załączam podlewanie")
            fibaro:setGlobal("Podlewanie", "true")
            fibaro:startScene(153)
        else
            fibaro:debug("Nie załączam podlewania")
        end
    end

     

    setTimeout(tempFunc, 60*1000)
    end
    if (sourceTrigger["type"] == "autostart") then
    tempFunc()
    else
    local currentDate = os.date("*t");
    local startSource = fibaro:getSourceTrigger();
    end

     

     

     

     

    Link to comment
    Share on other sites

    Join the conversation

    You can post now and register later. If you have an account, sign in now to post with your account.

    Guest
    Answer this question...

    ×   Pasted as rich text.   Paste as plain text instead

      Only 75 emoji are allowed.

    ×   Your link has been automatically embedded.   Display as a link instead

    ×   Your previous content has been restored.   Clear editor

    ×   You cannot paste images directly. Upload or insert images from URL.

    ×
    ×
    • Create New...