vk2him / Enphase-Envoy-mqtt-json

Takes real time stream from Enphase Envoy and publishes to mqtt broker

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Seeing errors with enphase integration

enkrypt3d opened this issue · comments

2023-04-06 11:19:34.731 WARNING (MainThread) [homeassistant.components.sensor] Entity sensor.envoy_#########_current_battery_capacity (<class 'custom_components.enphase_envoy.sensor.TotalBatteryCapacityEntity'>) is using state class 'measurement' which is impossible considering device class ('energy') it is using; expected None or one of 'total_increasing', 'total'; Please update your configuration if your entity is manually configured, otherwise report it to the custom integration author.

and:

Logger: custom_components.enphase_envoy
Source: helpers/update_coordinator.py:182
Integration: Enphase Envoy (DEV)
First occurred: 10:20:58 AM (1 occurrences)
Last logged: 10:20:58 AM

Error fetching envoy Envoy ########## data: Error communicating with API: peer closed connection without sending complete message body (incomplete chunked read)

This 2nd error appears when it cannot talk to the envoy anymore. Usually restarting the envoy resolves it for a while and then it comes back. I'm wondering if we can include this to get around this issue?

https://stackoverflow.com/questions/48105448/python-http-server-client-remote-end-closed-connection-without-response-error

self.send_header('Content-Type', 'blabla' )

self.end_headers()

Any ideas? Rebooting the envoy seems to "fix" it for a while but over time the issue comes back.

My integration doesn't supply battery data unless you've modified it to pickup a different data feed? What sensor is feeding this battery entity and where does that data come from?

Sorry I commented on the wrong integration! I Meant to put my comment on this:

https://github.com/whisk3y/home_assistant_envoy_d7_fw/tree/brianfork