Skip to content

Add Enpower Smart Switch status#75

Open
gtdiehl wants to merge 172 commits intojesserizzo:mainfrom
gtdiehl:encharge_status
Open

Add Enpower Smart Switch status#75
gtdiehl wants to merge 172 commits intojesserizzo:mainfrom
gtdiehl:encharge_status

Conversation

@gtdiehl
Copy link
Copy Markdown
Collaborator

@gtdiehl gtdiehl commented Apr 29, 2021

Adding the status of the Enpower Smart Switch will let the user know if their system is attached or detached from the grid. This is only supported for systems that have the Enpower Smart Switch installed.

Example output when the device is installed:

...
enpower_status:          {'connected': True, 'grid_status': 'closed'}

Example output when the device is not installed or running the API against an Envoy that does not support it:

...
enpower_status:          Enpower Smart Switch status is not available for your Envoy device.

Pull request recommendations:

  • Name your pull request your-development-type/short-description. Ex: feature/read-tiff-files
  • Link to any relevant issue in the PR description. Ex: Partially Issue Add Envoy data from Encharge batteries #72
  • Provide context of changes.
  • Provide relevant tests for your feature or bug fix.
  • Provide or update documentation for any feature added by your pull request.

Thanks for contributing!

bdraco and others added 30 commits April 10, 2021 10:55
Cleanup detection and avoid calling endpoints that are not present
Bumping version for clean up in PR #64
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.
Reduced comment length
Given the low number of changes to the repository I feel we can get away with running Workflows with PR merges and commits to main
* Rename master to main
Added badge status to Readme
Remove schedule from build-main workflow
Update envoy_reader.py getData()
Bumping version to 0.18.5
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.

8 participants