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

HC2 scene activation by device (association)


Question

Posted

Hey all,

I installed a new TKB wall switch and am trying to trigger a scene via the switch.

Of course, I could just "watch" the switch status in the scene and react on changes. I already have such a lua scene running right now. The problem I'm facing with this method is that I can't trigger the scene again without actually "switching", that is changing from off to on or vice-versa.

Ideally, I'd like the HC2 to react on any input from the TKB wall switch, no matter if the status is the same or not.

So, can anyone help me out with either a) an alternative way to trigger scenes directly or b) a way to trigger scenes even if the status didn't change?

here is my current scene:

Please login or register to see this code.

8 answers to this question

Recommended Posts

  • 0
Posted

Hi MrMKHR,

I wonder did you come up with the lua scene yourself. For simpler creation of lua scene, you can create a scene using the block logic and change it to lua after that, in that case, you can see how does Fibaro create their scene. Anyway your condition is simple, Using block logic, your triggers are if the switch is turn on or turn off, start the scene.

Eg. Lua scene converted from Block scene.

Please login or register to see this code.

  • 0
  • Inquirer
  • Posted

    Hi MalvinYNJ,

    thank you for the answer.

    However, my initial question was if I could trigger the same event several times by ONLY pressing the "off" button on my physical switch.

    eg.

    Please login or register to see this code.

    • 0
    Posted

    Infinite running of the scene when the switch is off?

    • 0
  • Inquirer
  • Posted

    no, sorry for not being clear enough.

    I'll try again.

    I have a wall switch.

    I want to trigger a "leaving" scene (id 5) with this switch.

    There is no load attached to the switch, so I do not always know in which state the switch currently is.

    In the current scenario, I need to press "off", check if the scene is triggered (lights go out) and if not, I'll have to press "on".

    I need to do this because the scene will only be triggered when an actual "switching" happened (on-> off; off-> on).

    What I want is to trigger the scene on EVERY off or on event, even if the previous state was equal to the current one.

    I'm not sure if the switch is not sending the status repeatedly or if the HC2 is just ignoring it...

    • 0
    Posted

    Does my code fulfilled what you require?

    Please login or register to see this code.

    • 0
  • Inquirer
  • Posted

    no. the code will do the exact same as my version. it will actually do the same as this one:

    Please login or register to see this code.

    the code is woking "as intended". thats not the problem. the problem is that either the switch won't send a second "off"-signal or the HC2 doesn't react on it.

    • 0
    Posted

    I've checked the documentation of one type of TKB wall switch. It doesn't say it sends a second off, nor does it state that it does not send a second off. But I can say that none of my switches (all Fibaro) send a second "off".

    Anyone with TKB switch can confirm?

    • 0
  • Inquirer
  • Posted

    Thanks for the input on the second off not coming from the fibaro relays as well.

    I guess I'll just work around it then.

    I might just set the switch status to off again after pressing it. that way, I can make sure that pressing "on" will result in triggering the scene.

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