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

FGS-213 long press to start scene


Spindel

Question

6 answers to this question

Recommended Posts

  • 0

First of all you need to enable scene activation according to your needs. Configure device parameters 28,29

Then create a scene like: (please change <devID> to your switch real ID number)
 

Please login or register to see this code.

trigger.keyAttribute  available values are:

 

Key Pressed 1 time

Key Pressed 2 times

Key Pressed 3 times

Key Held Down

Key Released

 

 

Edited by cag014
Link to comment
Share on other sites

  • 0
  • Inquirer
  • Thanks, I´m still struggling a bit though.

     

    Parameter 28 & 29, all options are ticked in.

    DevID, is it the master or any of the slaves? My master ID = 20 so thats what I´m trying below.

     

    This is the code I´ve got, it´s a single switch so i guess only the S1-part matters, but I copied it anyway.

     

    The debug gives me som kind of error connected to this scene (171), I guess something is wrong with line 8? (see attached picture)

     

    Please login or register to see this code.

     

    Please login or register to see this image.

    /monthly_2020_02/image.png.96e4df48b8f0f8df7be72af0021c6013.png" />

     

     

     

    Link to comment
    Share on other sites

    • 0

    I hope you don't run it manually , it won't work... it works only when triggered by device

    Please add this line

    fibaro:debug(json.encode(fibaro:getSourceTrigger()))

    before

     local trigger = .....

    Let's see what trigger data is?

     

    Edited by cag014
    Link to comment
    Share on other sites

    • 0

    By the way I think the key attribute for fibaro switch is slightly different and might be in your case attributes are

    Pressed

    Pressed2

    Pressed3

    HeldDown

    Released

     

    If so please change "Key Held Down" to HeldDown"

    Edited by cag014
    Link to comment
    Share on other sites

    • 0
  • Inquirer
  • 47 minutes ago, cag014 said:

    If so please change "Key Held Down" to HeldDown"

     

    Thanks!

     

    That and changing devID to the first of my slaves (21) instead off master (20) did the trick!

    Link to comment
    Share on other sites

    • 0

    Sorry, didn't spot that you mention this is master... it should be slave.

    Well done.

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