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


[Feature Request] for passing along variable to scenes


riemers

Recommended Posts

Have not seen it before, but would it not be nice to be able to use values as options in startScene?

 

Now you have: "fibaro:startScene(sceneID)"

Proposel would be "fibaro:startScene(sceneID,value1, value2, value3)" or whatever you would use to pass it along. (and while they are at it, allow passing a variable for the sceneID to work for example with those jT.Hometable solutions)

Then in that scene you start value1, value2, value3 would be available in the scene itself.

Makes re-using a scene more of an option.

 

And yes, you can use globals to pass along information. But this would be a nicer solution / more user friendly.

Edited by riemers
Link to comment
Share on other sites

A single extra parameter might be cleaner (and easier to implement). Just pass a table if you need more variables.

Please login or register to see this code.

 

Link to comment
Share on other sites

  • Topic Author
  • That is indeed cleaner, i would be happy with whatever they can come up with (can't see much going wrong in something so simple)

    Link to comment
    Share on other sites

    I totaly agree! This would be so nice to have, and could greatly lower need for global variables!

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