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

Z-wave.me wall controller to activate scene


donL

Question

Hi,

I've been trying to configure my

Please login or register to see this link.

to activate a scene based on these

Please login or register to see this link.

.

I've set the following wall controller parameters:

1=0

2=0

11=4

12=4

13=4

14=4

... and used the sample code.

My challenge is that the scene is not activated when I hit the wall controller button. But if I click start button in the scene editor window I can run the scene manually to get input from the wall controller about which button has been pressed.

So, how do I get the scene activated by pressing the wall controller button only?

Please, help!

Please login or register to see this image.

/emoticons/default_icon_curve.gif" alt=":-/" />

Link to comment
Share on other sites

6 answers to this question

Recommended Posts

  • 0

Check

Please login or register to see this link.

Link to comment
Share on other sites

  • 0
  • Inquirer
  • Hi,

    in my post "these " was pointing to the same url. Sorry that it was not visible. Sounds like you've been able to make it. I can't figure out what I am doing wrong.

    By using Colin_d's sample code I can debug value of each wall controller button pressed (value = 11, 12, 21, 22 etc.) by clicking Start, but the scene is not initiated by the wall controller button.

    Link to comment
    Share on other sites

    • 0

    Is 'Active Scene' ticked?

    Please login or register to see this image.

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

    Post your code, it should work I use it daily no problem.

    Link to comment
    Share on other sites

    • 0
  • Inquirer
  • Yes, 'Active scene' is enabled. With associations it is possible to control Z-wave devices but as mentioned I can't activate the following LUA scene:

    --[[

    %% properties

    70 sceneActivation

    %% globals

    --]]

    -- 27 is ID of wall switch

    local button = tonumber(fibaro:getValue(27, "sceneActivation"))

    fibaro:debug(button);

    if button == 31 -- Wall switch button 3 single click (1)

    then

    fibaro:debug("turn on");

    end

    if button == 32 --Wall switch button 3 double click (2)

    then

    fibaro:debug("turn on");

    end

    --

    PS. I reinstalled and reconfigured the wall controller but did not help either.

    Link to comment
    Share on other sites

    • 0

    Hi donL

    It didn't work for me either

    Please login or register to see this image.

    /emoticons/default_icon_wink.gif" alt=";-)" />

    You need to put your wall switch device number before the sceneActivation declaration at the top as well as in the code.

    Also you've written 'turn on' as a debug message for both cases (single and double click).

    (Not sure if that's what you intended, of course it could be)

    I've tweaked it for my own switch and it works fine, see the output below, created by clicking the button.

    (My switch ID is 70 - ignore the comment about ID 27)

    Hope you get it working ok

    Please login or register to see this attachment.

    Link to comment
    Share on other sites

    • 0
  • Inquirer
  • Oh yes, it works well now. How come I missed that!

    Thanks!!!

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