Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update envoy_reader.py getData() #63

Closed
wants to merge 4 commits into from
Closed

Update envoy_reader.py getData() #63

wants to merge 4 commits into from

Conversation

stuartwishart
Copy link
Contributor

Update getData() to add optional input parameter to not read inverters.
Inverters only update every 5 or 15 mins, depending on Envoy-S configuration, whereas production data updates every minute. Also, requesting inverter data at too short an interval can cause the Envoy to start lagging and eventually timeout. See https://thecomputerperson.wordpress.com/2016/08/03/enphase-envoy-s-data-scraping/#comment-1565 for more details.

Update getData() to add optional input parameter to not read inverters. 
Inverters only update every 5 or 15 mins, depending on Envoy-S configuration, whereas production data updates every minute.  Also, requesting inverter data at too short an interval can cause the Envoy to start lagging and eventually timeout.  See https://thecomputerperson.wordpress.com/2016/08/03/enphase-envoy-s-data-scraping/#comment-1565 for more details.
Update envoy_reader.py getData()
stuartwishart added a commit to stuartwishart/core that referenced this pull request Mar 20, 2021
Update sensor.py to add new Inverters logging options
Inverters only update every 5 or 15 mins, depending on Envoy-S configuration, whereas production data updates every minute. Also, requesting inverter data at too short an interval can cause the Envoy to start lagging and eventually timeout. See https://thecomputerperson.wordpress.com/2016/08/03/enphase-envoy-s-data-scraping/#comment-1565 for more details.

Note: This change requires an update to jesserizzo/envoy_reader included in PR#63 (jesserizzo/envoy_reader#63)

New configuration parameters:
inverter_update_period - integer value which defines minutes between Inverters data update requests sent to Envoy-S
inverter_logging_full - boolean value that defines whether to send the last Inverters data during a async_update_data() fetch so that the inverter entity information doesn't show Unknown.
Fixed handling of httpx.HTTPError exception
@gtdiehl
Copy link
Collaborator

gtdiehl commented Apr 13, 2021

@stuartwishart We definitely don't want to kill the inverters.

I'm wondering how the Home Assistant side would handle this? It would have to switch between the Boolean flag depending on time? Or something like that.

The change seems minimal here just adding a flag. Though the code base has changed slightly can you update your code to integrate with the new changes?

@stuartwishart stuartwishart deleted the master branch April 14, 2021 10:04
@stuartwishart
Copy link
Contributor Author

@gtdiehl I couldn't work out to how to rebase this PR so I've closed it and created a new PR#68.

I've prototype the change on the HomeAssistant side (https://github.com/stuartwishart/core/blob/dev/homeassistant/components/enphase_envoy/sensor.py) to enable a different update rate for the production data and inverter data.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants