Homey Community Forum

Import in HomeyScript

Is there way to import external functions in HomeyScript. I have some homey script functions that I want to be able to access in every other homey script so not sure how or if I can do that.

No, each Homeyscript runs in a “virtual machine context” that’s quite confined. So you need to copy&paste your code into each script.

Ok thanks!