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

Triple Click not working


Question

Posted

What am I doing wrong:

 

A few months ago I made a scene (scene 1)

 

1) If I triple click on a light switch the scene will activate another scene (scene 2 = turning off all lights in the house)

 

Scene 1

 

--[[ 

%% properties 
152 sceneActivation 
%% globals 
--]] 
 
local id= 152;  -- Change this to your dimmer ID 
 
if (tonumber(fibaro:getValue(id, "sceneActivation"))==15) then 
  fibaro:debug("3click activated, all out "); 
  fibaro:setGlobal("Sleep", "1") -- Change this to your sleep variable(if you have one) 
  fibaro:startScene(2); -- or start a second scene 
end 
 
Scene 2
 
--[[
%% properties
 
%% globals
--]]
 
fibaro:call(19, "turnOff")
fibaro:call(150, "turnOff")
fibaro:call(20, "turnOff")
fibaro:call(152, "turnOff")
fibaro:call(14, "turnOff")
fibaro:call(21, "turnOff")
fibaro:call(18, "turnOff")
fibaro:call(6, "turnOff")
fibaro:call(148, "turnOff")
fibaro:call(12, "turnOff")
fibaro:call(39, "turnOff")
 
It works and it is still working for dimmer 152.
 
Now I would like to make the same construction with another light switch/dimmer (ID 65).
 
But I cannot get it working. I might changed some parameters or associations. I cannot remember.
 
Could please tell me what I have to do to activate a scene with triple click?
 
Thanks in advance.
 
Wessel 

12 answers to this question

Recommended Posts

  • 0
Posted

May I advise you check the manual for that particular module? It's model depended. Not all devices support it.

  • 0
Posted

If this is Dimmer 2 there is no sceneActivation on triple click for a very simple reason - this is reserved for sending Node Info frame (which is used e.g. in inclusion/exclusion process). Despite the fact this was available in previous modules we decided to eliminate it due to accidental inclusions/exclusions.

  • 0
Posted

So how do you stop a scene with the dimmer 2? Is there only one scene activation on the double click?

Can you turn off the inclusion on triple click to have the 2nd scene back?

  • 0
Posted

I do not get your query about stopping scene. Tripple click never stopped anything, it simply starts another scene and it depends on your scenes code how they behave.

  • 0
  • Inquirer
  • Posted

    Hello mr Nowacki,

     

    This Dimmer is a Dimmer 1 (not Dimmer 2).

    The Dimmer with ID 65 (which is not working) is exactly the same as the dimmer with ID 152 (which IS working) and are both dimmers 1.

     

    Is there a possibility to activate a scene another way (with dimmer 1 and 2)?

    • 0
    Posted

    Maybe this little script can demonstrate how ScneActivation works.

    To use it, please first check both dimmers have Parameter 41 (the last one) set to "activation".

    Then REPLACE $ID1 and $ID2 with the device id's you have. It's a few times in this script. You cant use variables, only numbers.

     

    Please login or register to see this code.

    When you operate the switch, this should print the codes that are listed under Parameter 41.
    • 0
    Posted

    In scene 2 under "%% properties" you are missing "65 SceneActivation" (without quotes). If you add that, it'll get triggered. But you still need the same kind of "if then" structure as in my script or your first script.

    • 0
  • Inquirer
  • Posted

    Ok. Thanks Peter.

    I'll try it.

     

    Strangely enough I tried my construction again and now it seems to work sometimes (not all the time).

    • 0
    Posted

    If you have sceneActivation, plus scenes that start other scenes, plus maybe scenes that are triggered by "value" changes (you don't say that) and possibly associations, then the situation can get complex.

    I've got a feeling that I do not understand your setup. And maybe it's too complex to explain anyway.

    What I would do is check associations and remove them, don't start other scenes (right now, just comment them out) from scenes, ...

    • 0
  • Inquirer
  • Posted

    Actually it is really simple:

     

    If a dimmer is triggered with three clicks start a scene.

     

    But I do understand what you mean: keep it as simple as possible!

    • 0
    Posted

    Actually it is really simple:

     

    If a dimmer is triggered with three clicks start a scene.

     

    But I do understand what you mean: keep it as simple as possible!

    Yes, for debugging I recommend that... Actually, maybe it's because I find the question "triggered with three clicks start a scene" a little odd. A scene is started by ANY sort of clicking, as soon as for Dimmer 1 you set Parameter 41. In the script, you have to check what sort of click was sent in your lua code.

    Can you please try my little script? It tells so much more than - er - "a thousand words".

    • 0
  • Inquirer
  • Posted

    I will try it later and keep you posted here.

    Thanks for your input.

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