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

activate a scene using a connected 2nd switch to 1X3KW


Question

Posted

Hi

I connected a 2nd switch to a 1X3KW relay module, I would like to run a scene when the 2nd switch is on / off.

I know that I can associate another z-wave module (one or more) to it but what I would like is to run a "all on" / "all off" scene upon the switch status.

the 2nd switch id is 141

below is my (not working) script - any advise ?

Please login or register to see this code.

12 answers to this question

Recommended Posts

  • 0
Posted

I supposed you miss the startSource line.

Likewise, try this

Please login or register to see this code.

  • 0
  • Inquirer
  • Posted

    Hi,

    the dimmer and the 1x3kW relay devices has an option to connect slave switch that can be used for association. This is working.

    I am trying to use the 2nd switch to run a code via LUA - this is not working for me.

    1) in my case I'm using a 1X3KW switch by the id of 139, on the main switch property screen I see that the slave name/id (?) is 139.2 but when I click on the slave its id is 141. I think that 139.2 is just a name and the id is 141 - is it right ?

    2) when I try to use any of the code above I can not get LUA to intercept the switch status change.

    any advise ?

    thx

    nadigo

    • 0
    Posted

    Have you tried to output the variable id? Just to ensure that it is correct (i.e. 141, not 139.2). And does it trigger the scene at all? Try replacing the entire thing with this code:

    Please login or register to see this code.

    Otherwise, try to replace:

    Please login or register to see this code.

    with

    Please login or register to see this code.

    • 0
  • Inquirer
  • Posted

    I delated and re added the device, used the local device id but it is still not working.

    any advisee ?

    • 0
    Posted

    Do you mean when you click your manual switch it does not work?

    I've tried, on the hc2 itself, it does work, but for manual switching it doesnt

    • 0
  • Inquirer
  • Posted

    yes exactly as you say,

    I can not get lua to detect the (physical) status change of a switch connected to S2 on a 1X3KW relay by using:

    Please login or register to see this code.

    this is strange as HC2 can associate another device to that same S2 connect switch, so it dose intercept the physical status change. I am sure it should be somehow done.

    anyone from Fibaro ?

    nadigo[/code]

    • 0
    Posted

    Association has nothing to do with the HC. When it does association, it just sends a program to one device telling it to react when another device does something. So it is the two devices interacting. Thus, the HC doesn't need to know what status is.

    • 0
  • Inquirer
  • Posted

    ok -

    is there a way to activate a scene or LUA code via the S2 switch ?

    • 0
    Posted

    I don't think so... It should be possible, but it doesn't look like fibaro are including the devices in their interface, despite the fact that the S2 must be announced on the zwave network... It should be a relatively simple task for them to include the S2 as a separate switch in the interface.

    • 0
  • Inquirer
  • Posted

    can i associate a virtual device / 'virtual' switch to that S2 switch and this way trigger a code / scene ?

    • 0
    Posted

    No, the virtual device is not part of the zwave network. It is part of the hc itself. The association has nothing to do with the hc once programmed (i.e. It will still work when you switch off the HC).

    • 0
    Posted

    Works on Beta but can not test on pre Beta.

    I made the S2 device visible to the system and just added to a scene

    Please login or register to see this code.

    Is the S2 device visible? If not go to the S1 device and navigate to the S2 by clicking on the icon in the tree diagram and make it visible.

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