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

Question
maxdreamland 1
I was wondering if there is a place where we can put LUA code/functions so that they can be accessed from all LUA scenes?
For example, i wrote a function that parses the list of available iOS devices from the HTTP API and sends a given notification message to all of them. Thats a nice little function that can come in handy in many scenes. Now, the question is, do i have to copy the code for this function into every scene that i want to use it in?
Or is there some "global" place where i could save this code so it is visible to all my scenes without replicating the code in every scene?
thanks in advamce!
regards
Max
7 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.