My Homey Pro (early 2023) is fully functional and connect to Wifi and Ethernet. I can ping both IPs from my laptop on which the CLI is installed.
However, when running
homey app run or homey app run --remote I get the following error message:
Error: XXXX (----) seems to be offline. Are you sure you're in the same LAN network?
at /usr/local/lib/node_modules/homey/lib/AthomApi.js:235:17
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
at async AthomApi.getActiveHomey (/usr/local/lib/node_modules/homey/lib/AthomApi.js:223:24)
at async App.run (/usr/local/lib/node_modules/homey/lib/App.js:153:19)
at async exports.handler (/usr/local/lib/node_modules/homey/bin/cmds/app/run.js:43:5)
This seems to be a frequent issue but I could not solve it so far. Especially as I can successfully connect to it over SSH and even ping it.
Are your laptop and Homey in the same network segment/VLAN?
You’re right though that this rather stupid issue occurs frequently, not just with the CLI but also with the mobile apps. Athom apparently isn’t able to solve it.
I could verify that I was indeed connected locally (iOS app was connected locally to my Homey Pro).
I finally found the culprit: on my Mac, the settings where such that my terminal app did not have access to the local network… for some reason I was not prompted to enable it (this can be manually enabled in the settings).