Hey all,
I’ve been playing with Homey Script for a few weeks now. Now, I’ve got a few general questions that I’ve bundled and wanted to ask. Some are probably rookie questions, so bare with me ![]()
| - | My Questions | |
|---|---|---|
| 1. | Why does Homey Script have code suggestions when the user has no permissions to run the code? For example await Homey.dashboards.getDashboards() |
|
| 2. | When the computer has been to sleep and you return to the Homey Script editor, the editor is unresponsive. Sometimes I forget that, do a bunch of code edits and save. The thing is it will not save your code, PLUS it gives no error. Result, loss of changes. Also you cannot run the code. I now, as a user, have to remember this bug and ALWAYS refresh the tab before continuing. | |
| 3. | Homey Script shows typescript codehinting. So I assume I can add that. But when I add typescript it trows and error. (See screenshot) | |
| 4. | Can Homey Script be edited externally? I find the code editor in the browser frustrating. I would prefer my preferred external IDE, like WebStorm. Is there a way to create/edit//delete this locally from an IDE? | |
| 5. | I find the lack of import() frustrating. |
|
| ⁃ | I would wish to add node dependencies to scripts. | |
| ⁃ | But more importantly. I wish to create custom methods and be able to use them in all HS scripts. I know I can get it though await Homey.apps.getApp({ id: 'com.athom.homeyscript' }) But that’s just fugly… |
|
| 6. | Can I extend my own methods to Homey? Like await Homey.myCode.writeOnTimeline()? Maybe one flow that runs on boot and in turn runs an init script to extend my custom code to the Homey Class? |
|
| 7. | As a fallback on 6. Can I do this with a custom app maybe? |





