# Problem with new Homey Pro (2023 early)

**URL:** <https://community.homey.app/t/problem-with-new-homey-pro-2023-early/92425>\
**Category:** Developers\
**Tags:** app, homey-pro\
**Created:** [October 21, 2023, 12:32pm UTC](https://community.homey.app/t/problem-with-new-homey-pro-2023-early/92425 "2023-10-21T12:32:35Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![szuperp](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/szuperp/32/47661_2.png) [@szuperp](https://community.homey.app/u/szuperp)\
**Post date:** [October 21, 2023, 12:32pm UTC](https://community.homey.app/t/problem-with-new-homey-pro-2023-early/92425/1 "2023-10-21T12:32:35Z")

</div>

I have an app… myIO… It works perfectly on the Sphere Homey Pro… less than 1% CPU usage, with more than 120 device…  
But with the new Homey Pro it crashes with the following error if I use more than 2 device:  
⚠ The app has crashed.  
CPU Warning Limit Reached  
I can’t do anything… I tried to run in dev mode (homey app run), but I can’t…(the same is working with the old (sphere) homey pro). I got the message:

```auto
✖ Error: No Discovery Strategies Available
    at HomeyAPIV3Local.discoverBaseUrl (/usr/local/lib/node_modules/homey/node_modules/homey-api/lib/HomeyAPI/HomeyAPIV3.js:215:13)
    at /usr/local/lib/node_modules/homey/node_modules/homey-api/lib/HomeyAPI/HomeyAPIV3.js:120:38
    at get baseUrl [as baseUrl] (/usr/local/lib/node_modules/homey/node_modules/homey-api/lib/HomeyAPI/HomeyAPIV3.js:125:7)
    at HomeyAPIV3Local.call (/usr/local/lib/node_modules/homey/node_modules/homey-api/lib/HomeyAPI/HomeyAPIV3.js:398:32)
    at ManagerUsers.__request (/usr/local/lib/node_modules/homey/node_modules/homey-api/lib/HomeyAPI/HomeyAPIV3/Manager.js:306:33)
    at ManagerUsers.value (/usr/local/lib/node_modules/homey/node_modules/homey-api/lib/HomeyAPI/HomeyAPIV3/Manager.js:207:38)
    at /usr/local/lib/node_modules/homey/node_modules/homey-api/lib/HomeyAPI/HomeyAPIV3.js:514:42
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

```

How can I make this app work on the new Homey Pro? Why don’t work it?

---

<div class="post-metadata">

**Author:** ![Dijker](https://avatars.discourse-cdn.com/v4/letter/d/b9bd4f/32.png) [@Dijker](https://community.homey.app/u/Dijker)\
**Post date:** [October 21, 2023, 12:39pm UTC](https://community.homey.app/t/problem-with-new-homey-pro-2023-early/92425/2 "2023-10-21T12:39:45Z")

</div>

Contact the developer of the myIO app, it doesn’t have a Topic here,

> [myIO App for Homey | Homey](https://homey.app/a/com.myioserver.integration/)

What Version of the App have you running?

---

<div class="post-metadata">

**Author:** ![Mike1233](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/mike1233/32/20991_2.png) [@Mike1233](https://community.homey.app/u/Mike1233)\
**Post date:** [October 21, 2023, 12:40pm UTC](https://community.homey.app/t/problem-with-new-homey-pro-2023-early/92425/3 "2023-10-21T12:40:19Z")

</div>

Did you tried the test version of the app?  
Or send a message to the developer of the app?  
Take a look at there website if there is something wrong with the app.  
All that information is at the bottom of the app page.

---

<div class="post-metadata">

**Author:** ![szuperp](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/szuperp/32/47661_2.png) [@szuperp](https://community.homey.app/u/szuperp)\
**Post date:** [October 21, 2023, 12:41pm UTC](https://community.homey.app/t/problem-with-new-homey-pro-2023-early/92425/4 "2023-10-21T12:41:59Z")

</div>

I am the developer of the app.

---

<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:** [October 21, 2023, 12:45pm UTC](https://community.homey.app/t/problem-with-new-homey-pro-2023-early/92425/5 "2023-10-21T12:45:19Z")

</div>

Where’s the source?

---

<div class="post-metadata">

**Author:** ![szuperp](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/szuperp/32/47661_2.png) [@szuperp](https://community.homey.app/u/szuperp)\
**Post date:** [October 21, 2023, 1:07pm UTC](https://community.homey.app/t/problem-with-new-homey-pro-2023-early/92425/6 "2023-10-21T13:07:11Z")

</div>

You can download from here: [https://smarthomeninja.hu/files/Homey.zip](https://smarthomeninja.hu/files/Homey.zip)

---

<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:** [October 21, 2023, 1:11pm UTC](https://community.homey.app/t/problem-with-new-homey-pro-2023-early/92425/7 "2023-10-21T13:11:07Z")

</div>

Make sure you use the latest version of `homey`, and also use `homey app run --remote`.

Otherwise, it at least seems to _start_ fine for me:

```auto
$ homey app run --remote
✓ Pre-processing app...
✓ Validating app...
✓ App validated successfully against level `debug`
✓ Packing Homey App...
 — App archive size: 31.09 MB, 3382 files
✓ Installing Homey App on `HP2023` (https://192-168-23-9.homey.homeylocal.com)...
✓ Homey App `com.myioserver.integration` successfully installed
✓ Running `com.myioserver.integration`, press CTRL+C to quit
 — Profile your app's performance at https://go.athom.com/app-profiling?homey=63c568c7e1c0180b8a2acb02&app=com.myioserver.integration
─────────────── Logging stdout & stderr ───────────────
2023-10-21T13:10:00.153Z [log] [myIO_App] Server: [<1 empty item>, null] [<1 empty item>, null] [<1 empty item>, null] [<1 empty item>, null]
2023-10-21T13:10:00.163Z [log] [myIO_App] Settings_updated
2023-10-21T13:10:00.166Z [log] [myIO_App] myIO_App has been initialized
2023-10-21T13:10:00.186Z [log] [ManagerDrivers] [Driver:myio_climate] myIO_Thermostat_Driver has been initialized
2023-10-21T13:10:00.186Z [log] [ManagerDrivers] [Driver:myio_cover] myIO_Cover_Driver has been initialized
2023-10-21T13:10:00.188Z [log] [ManagerDrivers] [Driver:myio_hum_sensor] myIO_hum_Sensor_Driver has been initialized
2023-10-21T13:10:00.189Z [log] [ManagerDrivers] [Driver:myio_imp_sensor] myIO_imp_Sensor_Driver has been initialized
2023-10-21T13:10:00.190Z [log] [ManagerDrivers] [Driver:myio_onoff] myIO_OnOff_Driver has been initialized
2023-10-21T13:10:00.191Z [log] [ManagerDrivers] [Driver:myio_pwm] myIO_PWM_Driver has been initialized
2023-10-21T13:10:00.192Z [log] [ManagerDrivers] [Driver:myio_rgb] myIO_RGB_Driver has been initialized
2023-10-21T13:10:00.192Z [log] [ManagerDrivers] [Driver:myio_temp_sensor] myIO_temp_Sensor_Driver has been initialized

```

---

<div class="post-metadata">

**Author:** ![szuperp](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/szuperp/32/47661_2.png) [@szuperp](https://community.homey.app/u/szuperp)\
**Post date:** [October 21, 2023, 1:16pm UTC](https://community.homey.app/t/problem-with-new-homey-pro-2023-early/92425/8 "2023-10-21T13:16:32Z")

</div>

meanwhile, I downgraded the node to node-v16.20.2, and it is working now…  
But still I don’t know, why is crashing, on the new homey pro…

---

<div class="post-metadata">

**Author:** ![szuperp](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/szuperp/32/47661_2.png) [@szuperp](https://community.homey.app/u/szuperp)\
**Post date:** [October 21, 2023, 2:04pm UTC](https://community.homey.app/t/problem-with-new-homey-pro-2023-early/92425/9 "2023-10-21T14:04:13Z")

</div>

on the new homey pro, I add 2 devices, and it uses 10% CPU, and 81,8MB Memory…  
on the old (sphere) Homey Pro, I add 125 devices, and the CPU usage is 0.00%, Memory usage is 35,7 MB… with the same app… everything is the same, except the HomePro…

---

<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:** [October 21, 2023, 2:22pm UTC](https://community.homey.app/t/problem-with-new-homey-pro-2023-early/92425/10 "2023-10-21T14:22:03Z")

</div>

I don’t have any myIO devices so cannot comment on that.

But generally speaking, it looks like for each device you’re creating a 100ms interval to update its capabilities (while the main update loop in `app.js` only updates every 8 seconds, so I don’t understand the need for 100ms intervals).

Also, you’re “sharing” information between `app.js` and the individual devices using the Settings manager, which isn’t meant for that. So all the reading and writing to the settings database might be causing issues. Instead, it would be much better to use a standard [`EventEmitter`](https://nodejs.org/api/events.html#class-eventemitter) to pass data around between different parts of your app.

---

<div class="post-metadata">

**Author:** ![szuperp](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/szuperp/32/47661_2.png) [@szuperp](https://community.homey.app/u/szuperp)\
**Post date:** [October 21, 2023, 4:27pm UTC](https://community.homey.app/t/problem-with-new-homey-pro-2023-early/92425/11 "2023-10-21T16:27:59Z")

</div>

100ms is for fast reacting if the main JSON is changing… It should be anything, but it worked many years ago in this form… The new homey pro has faster CPU, so I don’t think it couse the problem… But I check it… no the problem is not that…  
But I found the solution…

```auto
var parameters = {
      uri: "http://" + address + ":" + http_port + "/empty",
      setTimeout: 1000,
      json: true,
      headers: {
        'Authorization': 'Basic ' + Buffer.from(username + ":" + password).toString('base64')
      },
      insecureHTTPParser: true //I had to add this line, to make work the app with the new Homey Pro
    };

```

The default settings was changed…
