Hi all,
I’m having issues with the Web API Playground at tools.developer.homey.app, and I’m hoping someone can help clarify what I might be missing.
What works
-
I can log in and select my Homey Pro (Early 2023).
-
I can execute async JavaScript code successfully. For example:
(async () => { const info = await Homey.system.getInfo(); console.log(info); })();
-
The Playground shows:
Request took XXX ms
So I know the code is running.
What doesn’t work
-
The response/output panel is always empty — even for basic
console.log()
calls or returning static values. -
I’ve tested this using:
console.log(...)
return ...
throw new Error(...)
(see below)
-
In almost all cases, no data is shown in the UI — which makes debugging nearly impossible.
Browsers I’ve tested
- Chrome (standard + incognito)
- Firefox
- Safari
Same result in all of them.
Partial success (but not reliable)
In one case, I did get full output when using this:
(async () => {
const info = await Homey.system.getInfo();
throw new Error(JSON.stringify(info, null, 2));
})();
That returned the full Homey system info (inside the "error"
field in the response).
However:
- Throwing smaller values like
info.ethernet
just results in"Error"
. console.log()
still never shows anything, regardless of the data type.
So it feels like the Playground is partially working, but not exposing logs or responses as expected.
What I’m trying to do
I’m trying to verify Ethernet status using:
Homey.system.getInfo();
…so I can then safely disable WiFi on my Homey Pro using:
Homey.system.disableWifi();
But without being able to inspect the ethernet.connected
value, I don’t want to risk losing access.
My question
What do I need to do to make the Web API Playground actually show output (console.log or return values)?
Is there a dev mode I need to enable, or a browser setup that does work reliably?