jaroschek / home-assistant-myuplink

Custom Home Assistant integration for devices and sensors in myUplink account.
42 stars 10 forks source link

Current (amperage) always showing 0.1A #147

Open Siggy101 opened 1 week ago

Siggy101 commented 1 week ago

I have this nice integration running on my NIBE heat pump, via the SMO40. I have many sensors giving data, and they have been for almost a year now, however I cannot get any meaningful data from the electricity current usage. I see 3 sensors, one for each phase, but they all display "0.1A" at all times: image ...and they never change their value, even when the heat pumps runs: image

I have tried to follow the debugging instructions but I cannot get very far.
Can anyone advise why these sensors are not showing the correct data, and how to fix it?

Siggy101 commented 1 week ago

@jaroschek Are you able to confirm if this is a bug or config issue please?

jaroschek commented 1 week ago

@Siggy101 Unfortunately, I can neither confirm nor deny whether it is a bug until I know what data the API returns.

You should query your device data points as described in the README (https://github.com/jaroschek/home-assistant-myuplink#debugging-misbehaving-entities):

Take note of the entity's name, and open myUpLink's Swagger. Click Authorize and paste your application credentials. Make sure to check the READSYSTEM box. Find your device ID by querying ​/v2​/systems​/me, and enter it when querying /v2/devices/{deviceId}/points. Find the relevant data points and post them in an issue.

You should past the relevant data for your current ampere sensor here.