I have bought a Homey Energy dongle to use the local API to gather my live usage data. I have followed the online manual and used the code as an example to create my application. And it works for a short time. If i continuously stream the data, it stops sending frames after around 10 minutes. Then i need to unplug the dongle and plug it back in, then it starts sending again for 10 minutes. From the homey app i can still see my usage, but it is not sending trough the API. If connect receive one frame, and repeat that every minute, it works for longer but eventually it also stops sending frames trough the API while the homey app shows normal behavior. I tried to provide external power supply but it still gave the same results.
Does anyone have an idea why my dongle stops sending frames trough the API?
I think you’d contact Athom: homey.app/support
I’m assuming you are using Homey Pro, since local API is only available there? In case you are using Homey Cloud: it’s not supported there so you need to use the Cloud API for that.
You can also try the regular (cloud) web API as well, maybe it works better.
Hi Sven,
It’s not related to any Homey API.
The dongle has it’s own API, and can be enabled per device settings in the Homey app
(https://support.homey.app/hc/en-us/articles/18985951863452-Homey-Energy-Dongle-Local-API):
Using the Local API
The Homey Energy Dongle’s Local API is a WebSocket that can connect to any WebSocket-capable client. Once connected, the WebSocket will output the raw data received from the smart meter.
You can find an example on GitHub of how to connect to the Homey Energy Dongle’s Local API and parse the data from the smart meter.