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

Scenes on "Triple click"


Lassen

Question

Does anybody have a LUA script that can activate scenes on "Triple click" ?

Thanks !

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0
  • Inquirer
  • Still don't get it. I Know if I Set the value on parameter 41 to 1, the scene activation is on. But how do the trple click activate a scene ?

    Link to comment
    Share on other sites

    • 0
    Guest Kuuno

    sampe posted in basic code clips topic

    --[[

    %% properties

    507 sceneActivation

    %% globals

    --]]

    local id= 507;

    local name = fibaro:getName(id)

    fibaro:debug(name);

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

    if (tonumber(fibaro:getValue(id, "sceneActivation"))==16)

    then

    fibaro:debug("1 click s1 "..name);

    elseif (tonumber(fibaro:getValue(id, "sceneActivation"))==26)

    then

    fibaro:debug("1 click s2 "..name);

    elseif (tonumber(fibaro:getValue(id, "sceneActivation"))==25)

    then

    fibaro:debug("3 click s2 "..name);

    elseif (tonumber(fibaro:getValue(id, "sceneActivation"))==15)

    then

    fibaro:debug("3 click s1 "..name);

    elseif (tonumber(fibaro:getValue(id, "sceneActivation"))==14)

    then

    fibaro:debug("2 click s1 "..name);

    elseif (tonumber(fibaro:getValue(id, "sceneActivation"))==24)

    then

    fibaro:debug("2 click s2 "..name);

    elseif (tonumber(fibaro:getValue(id, "sceneActivation"))==12)

    then

    fibaro:debug("hold click s1 "..name);

    elseif (tonumber(fibaro:getValue(id, "sceneActivation"))==13)

    then

    fibaro:debug("release click s1 "..name);

    elseif (tonumber(fibaro:getValue(id, "sceneActivation"))==22)

    then

    fibaro:debug("hold click s2 "..name);

    elseif (tonumber(fibaro:getValue(id, "sceneActivation"))==23)

    then

    fibaro:debug("release click s2 "..name);

    elseif (tonumber(fibaro:getValue(id, "sceneActivation"))==10)

    then

    fibaro:debug("change from turn off to turn on s1 "..name);

    elseif (tonumber(fibaro:getValue(id, "sceneActivation"))==11)

    then

    fibaro:debug("change from turn on to turn off s1 "..name);

    elseif (tonumber(fibaro:getValue(id, "sceneActivation"))==20)

    then

    fibaro:debug("change from turn off to turn on s2 "..name);

    elseif (tonumber(fibaro:getValue(id, "sceneActivation"))==21)

    then

    fibaro:debug("change from turn on to turn off s2 "..name);

    elseif (tonumber(fibaro:getValue(id, "sceneActivation"))==17)

    then

    fibaro:debug("up "..name);

    elseif (tonumber(fibaro:getValue(id, "sceneActivation"))==18)

    then

    fibaro:debug("down "..name);

    end;

    Link to comment
    Share on other sites

    • 0
  • Inquirer
  • Still not what I want, sorry..

    Please login or register to see this image.

    /emoticons/default_icon_confused.gif" alt=":-?" />

    I want to keep the double click and the single click and male the triple click turn off tv & lights in the living room..

    Ex: triple click turns off dimmer for lights and sends the lua script to tv with KEY_POWEROFF

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