jesserizzo / envoy_reader

MIT License
37 stars 26 forks source link

Add Enpower Smart Switch status #75

Open gtdiehl opened 3 years ago

gtdiehl commented 3 years ago

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:

Thanks for contributing!