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


Question

Posted

Witam,

pomóżcie mi proszę w jaki sposób podpiąć do sceny, którą posiadam drugie urządzenie dimmer (FGD-212)

 

Please login or register to see this code.

 

Recommended Posts

  • 0
Posted

Hej @Thomson , dodaj po przecinku kolejny id włącznika, oraz jeśli potrzebuje tego jako wyzwalacza sceny to też

4 godziny temu, Thomson napisał:

local lightID = 132 --ID Światła

mocą światła sterujesz podstawiając odpowiednią wartość w miejsce "1"

4 godziny temu, Thomson napisał:

setPowerState( {lightID}, 1)

 

daj znać czy zadziałało.

  • 0
  • Inquirer
  • Posted

    cześć zrobiłem @domin12 jak pisałeś, dodałem po przecinku ID kolejnego światła, dodałem też wyzwalacz i włącza mi się tylko jedno światło, oczywiście to co jest przed przecinkiem :/

     

    jakieś pomysły?

    Please login or register to see this code.

     

    • 0
    Posted

     

    blad 

    Please login or register to see this code.

     

    Please login or register to see this code.

    blad

    Please login or register to see this code.

    Please login or register to see this code.

    local isLightOn = getPowerState(lightID)

     

    blad

    Please login or register to see this code.

     

    Please login or register to see this code.

     

    • 0
  • Inquirer
  • Posted

    Sprawdź proszę czy poprawność jest ok

     

    Please login or register to see this code.

     

    • 0
    Posted (edited)

    5 min

    jestem zlym LUA debuggerem kodu :D

    blad

    Please login or register to see this code.

    powinno byс

    Please login or register to see this code.

     

    blad

    Please login or register to see this code.

     

    powinno byс

     

    setPowerState( lightID, 0)

     

     

    e pytanie:

     

    101 value

    132 value

    123 value

     

    dla czego?

     

    Please login or register to see this code.

    nie?

     

     

     

    Please login or register to see this code.

     

    Edited by 10der
    fixed some minor issues
    • Like 1
    • 0
  • Inquirer
  • Posted

    Dziękuje, że poświęciłeś czas na modyfikację sceny.

    Zastosowałem ją i mam błąd

    Please login or register to see this image.

    /monthly_2018_03/image.png.fb165c4941a7462e8366bd678550f4a6.png" alt="image.png.fb165c4941a7462e8366bd678550f4a6.png" />

    • 0
    Posted (edited)

    fixed!

     

    powinno byс

    Please login or register to see this code.

     

    Edited by 10der
    • 0
  • Inquirer
  • Posted

    teraz nie wie co to luxus :/

     

    image.png.000a237e615a15eb61ec4717f8de2c6b.png

    • 0
    Posted (edited)

     

    Please login or register to see this code.

    Nie zapomnij zmienic wartosci w nagłowku i na poczatku scriptu

    Please login or register to see this image.

    Edited by 10der
    • 0
  • Inquirer
  • Posted

    super dzięki, a mogę ustawić z jaką jasnością ma być włączone?

    • 0
    Posted (edited)

    masz dimmer?

    Edited by 10der
    • 0
  • Inquirer
  • Posted

    no tak..FGD-212, tylko wartość może być włączona na 100%

    a scena mogła by np na 50% :)

    • 0
    Posted

     

    setPowerState(powerId, 99)

     

    setPowerState(powerId, 50)

    :)

    • 0
  • Inquirer
  • Posted

    Bardzo Ci dziękuje.

     

    Powiedz mi proszę czy scenę mógłbym wykorzystać do dwóch czujników FGMS?

    mam długi korytarz i zastanawiam się czy gdybym dał też po przecinku kolejny czujnik ruchu czy by zadziałało?

     

     

    • 0
    Posted

    :) tak

    • 0
  • Inquirer
  • Posted

    w sobotę przetestuję do dwóch czujników ruchu, dziękuję Tobie bardzo za pomoc

    • 0
    Posted (edited)

    mozesz ustawic poziom dla rożnych por dnia

     

    Please login or register to see this code.

     

    Edited by 10der
    • 0
  • Inquirer
  • Posted

    Cześć @10der

    wiesz znalazłem pewien niuans.

    Mianowicie jeśli mam ustawioną scenę by działała do 20, a o 21 syn włączy mi światło, to lampa już się nie wyłączy.

    Czy możemy to jakoś udoskonalić?

    • 0
    Posted
    1 minute ago, Thomson said:

    Cześć @10der

    wiesz znalazłem pewien niuans.

    Mianowicie jeśli mam ustawioną scenę by działała do 20, a o 21 syn włączy mi światło, to lampa już się nie wyłączy.

    Czy możemy to jakoś udoskonalić?

    witam. dziwne. bardzo dziwne. OK!

    .tak. Zrozumiałem! *syn* włączył lampę.

    przekształcić scenę w nieskończoną pętlę

     

    Please login or register to see this code.

     

    • 0
  • Inquirer
  • Posted

    dzięki przetestuję

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