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 + 4.024 + Fibaro RGBW


Question

Posted

Hi all.

I have quite a few Fibaro RGBW controllers and have created some custom programs for various applications.

For example, when my Fibaro smoke detector goes off, I have created a custom program that will flash red and white led strips.

The only problem is trying to get a scene to use it.

If I use one of the preset programs, all works ok and runs as expected. If I use a custom program I have created, the program does not start.

Can anyone help me with this?

Thanks,

Hal

8 answers to this question

Recommended Posts

  • 0
Posted

i have the same problem, i made an bug report about a month ago:

Please login or register to see this link.

didn't here much from it, i don't expect it to be fixed in the stable release

  • 0
  • Inquirer
  • Posted

    Wicked. Thanks for the update on this.

    Just a bit of an update, NOT FIXED in new version 4.030!!

    Why have an option to use a CUSTOM program if we can't use it.

    I'd like to see Fibaro fix this as it will allow me and everyone else to do so much more with my system.

    Thanks,

    Hal

    • 0
    Posted

    Can you post your code?

    I also use custom programs with scenes and it works perfectly in 4.030

    Maybe I can help?

    • 0
  • Inquirer
  • Posted

    Hi Speedy.

    thanks for your reply.

    I have included the script below.

    If you can help, that would be great.

    Let me know what you think.

    Regards,

    Hal

    Please login or register to see this attachment.

    Please login or register to see this attachment.

    • 0
    Posted

    Hmm, well I though that you used LUA.

    I didn't know you could do it in blocks now.

    Have you tried it in 4.031?

    • 0
  • Inquirer
  • Posted

    Thanks for the reply again.

    I have tried it on the lastedt and newest firmware and still no joy.

    Any chance you could send over a copy of your script so I can see how you have done it.

    Regards,

    Hal

    • 0
    Posted

    This was before you could call programs in block programming as stated so I solved to by creating a LUA scene and then I called that scene in the block program.

    ! Remember the number next to the custom program ID in the rgbw device is NOT the actual program!

    It's very confusing, i started a thread about it but it's not considered a "bug".

    And it's not really I just think that these numbers should represent the actual program id.

    Come to think of it that might be the issue here....

    Go to : HC2ip/api/RGBPrograms to see your actual program ID that you need.

    And then use that number in your alarm scene and see what happens.

    LUA scene, if you need it after checking the ID.

    Please login or register to see this code.

    *EDIT.

    As i thought.

    I tested a block scene and for med it works to start custom programs. (using the correct ID´s)

    The number of the custom program is not corresponding to the number in the RGBW device!!

    You must go to: HC2ip/api/RGBPrograms to see your actual program ID that you need.

    Here is the LUA code i use to match the RGBW device program number with the actual program ID so you don't have to change your code/scenes if you decide to change a program.

    If you change a program that "real" ID´s change and then you have to change all your scenes..

    Use this code to be sure you never have to.

    Please login or register to see this code.

    *Edit 2

    Just realized that if you change place (move program 7 to place 6) this code doesn't work.

    It only works if you have increasing number ID in their correct order.

    But you do get the true ID´s of your programs that you have.

    You could also try to find the correct program with the name of the program instead.

    I've updated the code above to also get the names of the programs.

    But again this is not fool proof as you could have the same name in 2 programs and then you could never get the one you want.

    But now you have a solution, use the name to get the correct ID of the program you want to start.

    • 0
    Posted

    Thanks so much, this problem was driving me nuts. Now I can see the assigned id for my custom programs

    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" />

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