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


Guest Lode

Central scene Event.....How does it work ?

Recommended Posts

Guest Lode

Hi I'm struggling with central scene events.

 

This is what i have : 

 

Fibaro Switch 2 (only using S1)

Device attached to S1 is working fine.

 

Parameter 20 set to 0 - Momentary switch......no luck

Parameter 20 set to 2 - Toggle switch.......no luck

Parameters 28 and 29 all boxes checked.

 

Please login or register to see this attachment.

 

Using the correct ID.....at least i think so ?

 

Please login or register to see this attachment.

 

Using this code i picked up at the forum

 

Please login or register to see this code.

 

but no luck.......what am i doing wrong ?

Share this post


Link to post
Share on other sites
2 hours ago, Lode said:

Using the correct ID.....at least i think so ?

 

Maybe not... "The devil is in the details...".

 

2 hours ago, Lode said:

-- use first slave for "CentralSceneEvent" ID (not master, not switch itself.).

 

It was probably me, who wrote that sentence :-)

 

On my system, the first one is the one above the remote (when looking at the master-slave representation, looking at the device properties)... I'm not sure it is always like that. Please try another slave ID.

  • Like 1

Share this post


Link to post
Share on other sites
Guest Lode
  • Topic Author
  • Hi Peter,

    Thx for your reply.

     

    I changed the ID and got some response but it's not what i expected.

    I tried a lot of clicks on both lightswitch buttons with this result :

    Please login or register to see this attachment.

     

    It's not what i did, i tried click, doubleclicks, tripleclicks.....

    How fast do you have to click ? Am i to slow, to fast ?

    At least i got something now but where to go from here ?

    I tought you have to give your module the time to generate the clicks but when i click very fast it doesn't.

     

    Some help from Fibaro team would be very welcome.

    There is no documentation about this feature.

    Do you have your's working well ?

     

    Edited by Lode

    Share this post


    Link to post
    Share on other sites

    I'm not sure you still have got the right value in parameter 28 and 29.

     

    Then, you uncomment the line below this one:

    -- trick to quickly interpret the data held in "trigger"

     

    And I bet you'll "see the light" ;-)

     

     

    Share this post


    Link to post
    Share on other sites
    Guest Lode
  • Topic Author
  • Hi Peter,

     

    I don't understand what you mean by the values in parameter 28 and 29.

    I was thinking when i check them all i can use all the possibilities so...

    Press once

    Press two times etc.

    Do i have to uncheck some of them ?

     

    Yesterday i got some response but today nothing.....nothing at all.

    Tried several clicks on S1 and S2.......it's driving me nuts :D

     

    What am i missing here ?

    Communication problem ? Don't think so because the lightswitch works every time i press it.

     

    I still don't "See the light" :/

    Edited by Lode

    Share this post


    Link to post
    Share on other sites

    Yes, p28 p29 checkboxes should be "set".

     

    It might be... FGS2x3 might not always report correctly, it has been mentioned on this forum. Today I noticed it too...

     

    Try soft reconfigure.

     

    Do you have any other device that supports centralSceneEvent?

     

    What is the ID of the first slave... 444?

     

    I did a quick test with that scene:

     

     

    [DEBUG] 20:23:53: CentralSceneEvent received from key: 2
    [DEBUG] 20:23:53: Pressed 2 times

     

    So it does work here...

    Share this post


    Link to post
    Share on other sites
    Guest Lode
  • Topic Author
  • Checkboxes are all set.

     

    It's an FGS223.

    Do you have another version ?

     

    Already did a soft reconfigure.

     

    I do have other devices that support CentralSceneEvent but i use those only wireless.

     

    ID of first slave is indeed 444 and that's the one i'm using now.

     

    Don't know what to do anymore......:roll:

    Share this post


    Link to post
    Share on other sites

    You can can try a magic scene. Select the "remote" slave and use the browser to configure a simple scene, e.g. turn on a light.

    Share this post


    Link to post
    Share on other sites
    Guest Lode
  • Topic Author
  • 16 minutes ago, petergebruers said:

    You can can try a magic scene. Select the "remote" slave and use the browser to configure a simple scene, e.g. turn on a light.

     

    I already tried that, sometimes it works but most of the times it doesn't.......

     

    Share this post


    Link to post
    Share on other sites

    In that case, I think, a network issue is the most likely explanation. Unless you have discovered a new HC bug... But your sig says "running 4.120" - is this correct?

     

    If you toggle the state of the device by clicking S1... Does your HC2 always shows the correct status, immediately after the click? If events do not work reliably, I would expect the status to be incorrect sometimes as well.

     

    I am not sure what my next step would be. I think I would remove that module and try it closer to the HC.

    Share this post


    Link to post
    Share on other sites
    Guest Lode
  • Topic Author
  • 13 hours ago, petergebruers said:

    In that case, I think, a network issue is the most likely explanation. Unless you have discovered a new HC bug... But your sig says "running 4.120" - is this correct?

     

    If you toggle the state of the device by clicking S1... Does your HC2 always shows the correct status, immediately after the click? If events do not work reliably, I would expect the status to be incorrect sometimes as well.

     

    I am not sure what my next step would be. I think I would remove that module and try it closer to the HC.

     

    I'm running 4.150 now.

    Strange but after a power failure HC2 was updated from 4.120 to 4.150 but that's something else i don't worry about.

     

    I will give those things you say a try this evening.

     The module is in the garden house. It's about 10 meters away from the next module in my house that i expect to act as a repeater.

    I will try if the module communicates directly with HC2 or not.

     

    Share this post


    Link to post
    Share on other sites
    Guest Lode
  • Topic Author
  • Thanks again Peter....

    Very interesting but hard to know where the problem can be.

    I guess i have to try some things like you described here.....

    First thing this evening is bringing the module close to the controller.

    I will keep you informed ....

    Share this post


    Link to post
    Share on other sites
    1 hour ago, Lode said:

    Thanks again Peter....

    Very interesting but hard to know where the problem can be.

    I guess i have to try some things like you described here.....

    First thing this evening is bringing the module close to the controller.

    I will keep you informed ....

    i don't know if you see ... i think this can help.

     

    Share this post


    Link to post
    Share on other sites
    Guest Lode
  • Topic Author
  • Thanks @bell_dan but Fibaro switch 2 works a bit different.

    @petergebruers

    Didn't have the time to bring it to the controller but had a little bit of time to do a rangetest.

    It starts glowing green and then glowing yellow but when i read the manual it's not abnormal.

     

    CommunicatioCommunication mode of the device may switch between direct and one using routing, especially if the device is on the limit of the direct range.

     

    I gave S1 about hundred clicks and got immediate response in the UI every single click.

    Share this post


    Link to post
    Share on other sites
    24 minutes ago, Lode said:

    Thanks @bell_dan but Fibaro switch 2 works a bit different.

    Please login or register to see this attachment.

    Please login or register to see this attachment.

    Please login or register to see this attachment.

    Please login or register to see this attachment.

    Please login or register to see this attachment.

    Share this post


    Link to post
    Share on other sites
    Guest Lode
  • Topic Author
  • Hi Bell-dan

    Thx for your reply.

    I'm trying to understand what you want to say.

     

    I want to turn a light on when i press, let's say switch A, S1 three times but when i have to use device grouping the light turns ons immediately ??

    Share this post


    Link to post
    Share on other sites
    30 minutes ago, Lode said:

    Hi Bell-dan

    Thx for your reply.

    I'm trying to understand what you want to say.

     

    I want to turn a light on when i press, let's say switch A, S1 three times but when i have to use device grouping the light turns ons immediately ??

    ok then. i use on my HCL one sw FGS223 connected for room 3 wich respond so, to one click = on/off in that room, for 2 click = opposite state for room 2 and near the end, 3 click = opposite state for room 1.

    all that i did it with association of double switch with two dimmer from room one and two.

     

    Please login or register to see this attachment.

     

    i think everything is easy with lua.

     

     Scene Activation ID For standard switches:

    S1 single click on 10

    S1 single click off 11

    S1 double click 14

    S2 single click on 20

    S2 single click off 21

    S2 double click 24

    S2 triple click 25

     

    Edited by bell_dan

    Share this post


    Link to post
    Share on other sites
    12 hours ago, bell_dan said:

    Scene Activation ID For standard switches:

    S1 single click on 10

    S1 single click off 11

    S1 double click 14

    S2 single click on 20

    S2 single click off 21

    S2 double click 24

    S2 triple click 25

     

    Thank you for trying to help. Unfortulately, @Lode has a different switch and that table does not apply to his switch. Switch 2 does not use "sceneActivation" but a newer command called "central scene". This is why he uses the script in post #1. You can find a table and a little bit of explanation about it in the manual:

     

    Please login or register to see this link.

     

    Share this post


    Link to post
    Share on other sites
    Guest Lode
  • Topic Author
  • @petergebruers 

    @bell_dan

    Thanks both of you for your help.

     

    So i moved the switch near to my controller.

    Did a quick rangetest and i can see switch has direct connection with HC2 (glowing green)

    Now it works.

    So what is wrong.....

    Is it necessary that the switch needs to communicate directly with HC2 ?

    As i said before the switch works fine but updates his status through a neighbourdevice. (glowing yellow).

    Is this a bug ? Fibaro ?

     

    Update !

    I replaced the swith in the gardenhouse.

    I started to monitor the switch's communication with the controller.

    It's constantly toggling between direct communication and communication through neighbourdevices.

    Sometimes it has about 10 or 20 seconds direct communication. (result : clicks are sent properly)

    Sometimes it goes back to communication with a neighbour.  (result : clicks are not sent)

    Sad.....i bought these devices because of CentralSceneEvent functionality ]:->

     

    Conclusion : CentralSceneEvent does not work when you don't have direct communication with your controller.

     

    Prove me that i'm wrong :D

    I hope it's a bug that can be fixed.

     

     

     

     

     

     

     

     

    Edited by Lode
    Update

    Share this post


    Link to post
    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
    Reply to this topic...

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