# Web API Playground – Code runs, but no visible output (console.log or return)

**URL:** <https://community.homey.app/t/web-api-playground-code-runs-but-no-visible-output-console-log-or-return/138279>\
**Category:** Questions & Help\
**Tags:** homey-pro, homey-pro-2023\
**Created:** [June 17, 2025, 7:02am UTC](https://community.homey.app/t/web-api-playground-code-runs-but-no-visible-output-console-log-or-return/138279 "2025-06-17T07:02:27Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Andries\_de\_Jonge](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/andries_de_jonge/32/120751_2.png) [@Andries\_de\_Jonge](https://community.homey.app/u/Andries_de_Jonge)\
**Post date:** [June 17, 2025, 7:02am UTC](https://community.homey.app/t/web-api-playground-code-runs-but-no-visible-output-console-log-or-return/138279/1 "2025-06-17T07:02:27Z")

</div>

Hi all,

I’m having issues with the **Web API Playground** at [tools.developer.homey.app](https://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:

- The Playground shows:

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:

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

```js
(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:

```js
Homey.system.getInfo();

```

…so I can then **safely disable WiFi** on my Homey Pro using:

```js
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?

---

<div class="post-metadata">

**Author:** ![robertklep](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robertklep/32/160628_2.png) [@robertklep](https://community.homey.app/u/robertklep)\
**Post date:** [June 17, 2025, 7:17am UTC](https://community.homey.app/t/web-api-playground-code-runs-but-no-visible-output-console-log-or-return/138279/2 "2025-06-17T07:17:08Z")

</div>

> [@Andries\_de\_Jonge](#):
>
> `Homey.system.getInfo();`

Just _literally_ place that code in the editor, and nothing else.

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/4/0/40b5814a20405f1bed72aefc34c64cc0085179aa.png)

---

<div class="post-metadata">

**Author:** ![Andries\_de\_Jonge](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/andries_de_jonge/32/120751_2.png) [@Andries\_de\_Jonge](https://community.homey.app/u/Andries_de_Jonge)\
**Post date:** [June 17, 2025, 7:50am UTC](https://community.homey.app/t/web-api-playground-code-runs-but-no-visible-output-console-log-or-return/138279/3 "2025-06-17T07:50:23Z")

</div>

hi Robert  
thanks for your response. when I use this command, I do get some info. see here the recording

question stays what do I have to change / update to use this command to disable wifi?

---

<div class="post-metadata">

**Author:** ![robertklep](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robertklep/32/160628_2.png) [@robertklep](https://community.homey.app/u/robertklep)\
**Post date:** [June 17, 2025, 7:54am UTC](https://community.homey.app/t/web-api-playground-code-runs-but-no-visible-output-console-log-or-return/138279/4 "2025-06-17T07:54:29Z")

</div>

> [@Andries\_de\_Jonge](#):
>
> question stays what do I have to change / update to use this command to disable wifi?

Do I understand correctly that you want to disable WiFi, but only if Ethernet is connected?

---

<div class="post-metadata">

**Author:** ![Andries\_de\_Jonge](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/andries_de_jonge/32/120751_2.png) [@Andries\_de\_Jonge](https://community.homey.app/u/Andries_de_Jonge)\
**Post date:** [June 17, 2025, 8:10am UTC](https://community.homey.app/t/web-api-playground-code-runs-but-no-visible-output-console-log-or-return/138279/5 "2025-06-17T08:10:40Z")

</div>

yes and I think I managed to do this by running this command. but than I still have question, is it correct that when I run this command, I do not get a written response? only the the message " Request took xxx ms?

 ![CleanShot 2025-06-17 at 10.09.14](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/5/b/5bc0b5ffdd21b1f735ec9ac751ae72dcc9cf4c11.png)

---

<div class="post-metadata">

**Author:** ![robertklep](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robertklep/32/160628_2.png) [@robertklep](https://community.homey.app/u/robertklep)\
**Post date:** [June 17, 2025, 8:12am UTC](https://community.homey.app/t/web-api-playground-code-runs-but-no-visible-output-console-log-or-return/138279/6 "2025-06-17T08:12:20Z")

</div>

Most Web API commands will likely not log and/or return anything. You can use `console.log()` and the messages will end up in your browser’s developer console.

---

<div class="post-metadata">

**Author:** ![Peter\_Kawa](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_kawa/32/173848_2.png) [@Peter\_Kawa](https://community.homey.app/u/Peter_Kawa)\
**Post date:** [June 17, 2025, 9:10am UTC](https://community.homey.app/t/web-api-playground-code-runs-but-no-visible-output-console-log-or-return/138279/7 "2025-06-17T09:10:22Z")

</div>

Not web api related, but you’ll need to enter setup mode (push pin @ Homey bottom for over 8s, but not past 30s) to disable or change wifi.

---

<div class="post-metadata">

**Author:** ![Andries\_de\_Jonge](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/andries_de_jonge/32/120751_2.png) [@Andries\_de\_Jonge](https://community.homey.app/u/Andries_de_Jonge)\
**Post date:** [June 17, 2025, 10:00am UTC](https://community.homey.app/t/web-api-playground-code-runs-but-no-visible-output-console-log-or-return/138279/8 "2025-06-17T10:00:27Z")

</div>

tried this one

(async () =\> {  
await Homey.system.enableWifi();  
console.log(‘✅ WiFi is now enabled’);  
})();

but no response…what should I change / add?

 ![CleanShot 2025-06-17 at 12.00.05](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/6/3/6321adc358379cc7776d5d9b31dfd91d2e55fca3.png)

---

<div class="post-metadata">

**Author:** ![robertklep](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robertklep/32/160628_2.png) [@robertklep](https://community.homey.app/u/robertklep)\
**Post date:** [June 17, 2025, 10:24am UTC](https://community.homey.app/t/web-api-playground-code-runs-but-no-visible-output-console-log-or-return/138279/9 "2025-06-17T10:24:41Z")

</div>

> [@Andries\_de\_Jonge](#):
>
> but no response…what should I change / add?

Open your browser’s developer console (or “Developer Tools” or whatever it’s called).

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/b/f/bfb7617d97c47f0c76550436b714e93b2eb886e6.png)
