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

Asocjacja


cwyku
 Share

Question

Witam,

Mam dimmer i do jego drugiego wejscia chcialem podpiac scene wylacz wszystkie swiatla. Nie mozna tam wybrac zadnych scen ;( probowalem dodac urzadzenie wirtualne ale tego tez tam nie mozna dodac.

Poradzcie mi jak mam to zrobic, z gory dzieki

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0

Dimmer w wersji min. 1.9 na S2 podlaczasz klawisz ktory bedzie odpalal scene.W ust.zaawansowanych aktywujesz parametr odpalania scen,tworzysz scene w Lua i viola gotowe

Please login or register to see this image.

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

Link to comment
Share on other sites

  • 0
  • Inquirer
  • Ma ktos przyklad takiej sceny, tak zebym mogl sobie ja przerobic pod moja centralke.

    Nie jestem dobry w LUA ale cmd+v mam opanowane

    Please login or register to see this image.

    /emoticons/default_wink.png" alt=";)" srcset="https://forum.fibaro.com/uploads/emoticons/[email protected] 2x" width="20" height="20" />

    Link to comment
    Share on other sites

    • 0

    Znajdziesz na forum na przykładzie sceny z kontaktronem. W tym przypadku scena będzie wyglądać bardzo podobnie.

    Link to comment
    Share on other sites

    • 0
  • Inquirer
  • Gdyby ktos potrzebowal:

    --[[

    %% properties

    41 sceneActivation

    %% globals

    --]]

    -- Device IDs that should be turned off when AllOnOff button pressed

    allOffDevices = {37,41,64,17,25,32,58,59,68,69}

    local trigger = fibaro:getSourceTrigger();

    if (trigger['type'] ~= "property") then

    fibaro:debug ("Unexpected source trigger '" .. trigger['type'] .. "'");

    fibaro:abort ();

    end

    local id = tonumber (trigger['deviceID']);

    local scene = tonumber (fibaro:getValue (id, "sceneActivation"));

    if (scene == 26) then

    -- 26 is sceneActivation code for 2nd FGD-211 button click

    for i = 1, # allOffDevices do

    fibaro:call (allOffDevices, "turnOff");

    end

    end

    [ Dodano: 2013-10-27, 15:03 ]

    jest ktos chetny, ktory pomoze mi przerobic ta scene tak zeby dimmer np. ID41 na wejsciu drugim zmienial stan dimmera ID41 na przeciwny

    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.

     Share

    ×
    ×
    • Create New...