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

Aktualizacja 4.070 - dziwne powiadomienia


Matcin

Question

Witam 

Po aktualizacji softu wywala mi powiadomienia widoczne na obrazie. Po usunięciu ich wracają po 5 minutach z powrotem 

Please login or register to see this attachment.

Link to comment
Share on other sites

15 answers to this question

Recommended Posts

  • 0

Nie takie dziwne. Po prostu scenę masz uruchomiona więcej niż dwa razy. Wejdź do każdej ze scen i zmień limit uruchomionych instancji.

Link to comment
Share on other sites

  • 0
  • Inquirer
  • Mam ustawione na 2. Ile ma być, żeby mi się to nie pokazywało? Przed aktualizacją nie miałem takich problemów. 

    Link to comment
    Share on other sites

    • 0

    Maksymalnie możesz ustawić 10. Ale wiedz o tym ze będzie ci się zapychac pamięć. Ja w swoich scenach mam warunek na początku sceny ze jeśli jest juz scena uruchomiona to nie uruchamiaj jej raz jeszcze.

    Dziwisz się ze w poprzedniej wersji nie miałeś takich akcji, a przeczytałeś dokładnie co wnosi nowa wersja ?

    Link to comment
    Share on other sites

    • 0
  • Inquirer
  • Nie, nie czytałem. Może głupie pytanie, ale jak mam ustawić w bloczkach oraz w LUA, że jeżeli scena uruchomiona to jej nie uruchamiaj jeszcze raz 

    Link to comment
    Share on other sites

    • 0
  • Inquirer
  • Tak będzie dobrze?

     

    --[[

    %% properties

    186 value

    304 value

    397 value

    %% globals

    --]]

     

    local czujnik = 186

    local czujnik = 304

    local czujnik = 397

    local swiatlo = 51

    local swiatlo2 = 49

     

    local licznik = 60;

     

    if (fibaro:countScenes() > 1) then 

      print("---Scena wywolana kilkukrotnie---"); 

      fibaro:abort();

     

    if( tonumber(fibaro:getValue(czujnik, "value")) > 0 )

    then

    while(licznik > 0)

    do

    licznik=licznik-1;

    fibaro:sleep(1000);

    if

    tonumber(fibaro:getValue(czujnik, "value")) > 0

    then

    licznik = 60;

    end

    end

    fibaro:call(swiatlo, "turnOff");

    fibaro:call(swiatlo2, "turnOff");

    end 

    Link to comment
    Share on other sites

    • 0
  • Inquirer
  • Masakra, teraz jak wkleiłem komendę to mi światła nie gasi.

    WRACAM DO POPRZEDNIEJ STABILNEJ I NIEZAWODNEJ WERSJI

    Link to comment
    Share on other sites

    • 0

    tak powinno teraz działać, co do scen bloczkowych, które wykorzystują czujniki ruchu do włączenia lub wyłączenia światła najlepiej przekonwertować do LUA.

    Możesz mi wyjaśnić jaką wartoś w tej scenie ma przyjmować zmienna czujnik ?

    --[[

    %% properties

    186 value

    304 value

    397 value

    %% globals

    --]]

    local czujnik = 186

    local czujnik = 304

    local czujnik = 397

    local swiatlo = 51

    local swiatlo2 = 49

    Link to comment
    Share on other sites

    • 0

    nie wkleiles do swojej sceny poprawnie skryptu ktory przeslal ci kolega

    if (fibaro:countScenes() > 1) then

    print("---Scena wywolana kilkukrotnie---");

    fibaro:abort();

    end

    brakuje ci end !!!

    a poza tym zmienna czujnik zawsze będzie przyjmowała wartość 397, te poprzednie wartości nie będą brane pod uwagę.

    No chyba że się mylę, to niech mnie ktoś poprawi młotkiem !!!

    Link to comment
    Share on other sites

    • 0
  • Inquirer
  • Rzeczywiście tom3sko masz rację. Można zrobić scenę z 3 czujkami czy muszę napisać 3 oddzielne? 

    Link to comment
    Share on other sites

    • 0

    Można zrobić scene z x czujnikami

    if(czujniknaruszony_nr1) then .... end

    if(czujniknaruszony_nr2) then .... end

     

    lub if(czujniknaruszony_nr1 or czyjniknaruszony_nr2)  lub if(czujniknaruszony_nr1 andczyjniknaruszony_nr2)

     

    zaleznie od potrzeb

    Please login or register to see this image.

    /emoticons/default_icon_smile.gif" alt=":-)" />

    Link to comment
    Share on other sites

    • 0
  • Inquirer
  • Witam. Co jest z tą sceną źle? Od momentu wstawienia reguły, która miała powstrzymywać powiadomienia o za dużej liczby inicjacji scena nie działa w ogóle

     

    --[[
    %% autostart
    %% properties
    %% globals
    isia
    marcin
    obecnoscCR
    laptopisia
    laptopmarcin
    veraTV
    --]]
     
    if (fibaro:countScenes() > 3) then 
      print("---Scena wywolana kilkukrotnie---"); 
      fibaro:abort();
    end 
     
    local startSource = fibaro:getSourceTrigger();
    if (
     ( tonumber(fibaro:getGlobalValue("isia")) < tonumber("-50")  and  tonumber(fibaro:getGlobalValue("marcin")) < tonumber("-50")  and  tonumber(fibaro:getGlobalValue("obecnoscCR")) < tonumber("-80")  and  tonumber(fibaro:getGlobalValue("laptopisia")) < tonumber("-50")  and  tonumber(fibaro:getGlobalValue("laptopmarcin")) < tonumber("-50")  and  tonumber(fibaro:getGlobalValue("veraTV")) < tonumber("-50") )
    or
    startSource["type"] == "other"
    )
    then
    fibaro:setGlobal("PozaDomem", "1");
    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...