Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
172 commits
Select commit Hold shift + click to select a range
17693e0
Improve version detection
DavidDeSloovere Aug 25, 2018
a636a5f
Merge pull request #2 from DavidDeSloovere/master
jesserizzo Aug 25, 2018
cff6e6f
Improve detection of envoy model
jesserizzo Aug 25, 2018
58fd8f1
Bump request timeout to 10 seconds
jesserizzo Aug 26, 2018
c7b6c89
import EnvoyReader class instead of individual functions
jesserizzo Aug 26, 2018
5926a81
Skip call_api if we know the Envoy model doesn't support it
jesserizzo Aug 26, 2018
6853105
Add support for Envoy IQ
jesserizzo Aug 26, 2018
a6d7e5b
Test for capabilities rather than state model name.
jesserizzo Aug 26, 2018
f3d21cb
Bump version to 0.2
jesserizzo Aug 26, 2018
d2c8a07
Merge pull request #1 from jesserizzo/master
DavidDeSloovere Sep 29, 2018
2f69bee
Fix detection of original Envoy model
DavidDeSloovere Sep 29, 2018
169e6a8
Cleanup error messages
DavidDeSloovere Sep 29, 2018
fe592a8
Update README.md
DavidDeSloovere Sep 29, 2018
223ddf8
Update README.md
DavidDeSloovere Sep 29, 2018
adebb4d
Make call more efficient for Envoy-C
DavidDeSloovere Sep 29, 2018
a24ddbc
Merge branch 'master' of https://github.com/DavidDeSloovere/envoy_reader
DavidDeSloovere Sep 29, 2018
3047393
text
DavidDeSloovere Sep 29, 2018
cdb22ad
throw runtime error
DavidDeSloovere Sep 29, 2018
f47e58e
single test instance
DavidDeSloovere Sep 29, 2018
58405d1
test output formatting
DavidDeSloovere Sep 29, 2018
5346430
Refactor endpoint check + error messages
DavidDeSloovere Sep 29, 2018
1531ab6
Fix tyop
DavidDeSloovere Sep 29, 2018
eb3e641
Merge pull request #3 from DavidDeSloovere/master
jesserizzo Sep 29, 2018
9ab6d21
Fix error messages, increase network timeout
jesserizzo May 27, 2019
243f90a
bump version number
jesserizzo May 27, 2019
3c0d45d
Get production from individual inverters
jesserizzo Jun 9, 2019
bbd5eb0
fix inverter production dictionary
jesserizzo Jun 9, 2019
f03d296
Make reader async
Jun 14, 2019
f89ae9b
Fix formatting
jesserizzo Jun 14, 2019
fa2b2db
something
jesserizzo Jun 14, 2019
77a2675
Improve detection of Envoy-S with consumption metering
sfjes Dec 14, 2018
900579a
Merge pull request #1 from jesserizzo/master
gtdiehl Jun 19, 2019
1e1b7f9
Added await for get method
gtdiehl Jun 19, 2019
c0a1ccd
Added empty string check
gtdiehl Jun 19, 2019
2ef7453
Update README.md
dalklein Jun 20, 2019
7942180
Add files via upload
dalklein Jun 20, 2019
a9f8d76
add support for older Envoy C, s/w <R3.9, with only html pages for …
dalklein Jun 21, 2019
abdb564
Merge branch 'master' of https://github.com/dalklein/envoy_reader
dalklein Jun 21, 2019
3e2cdad
corrected calls like EnvoyReader.whatever(self) to self.whatever()
dalklein Jun 21, 2019
14ea313
Update envoy_reader.py
dalklein Jun 21, 2019
e3d4a02
coorected my local install issue for requests_async, and updated code…
dalklein Jun 21, 2019
efccb3b
cleanup, still asyncio issue,
dalklein Jun 21, 2019
894542d
added gtdiehl's empty string check in pulling serial numbers for Envoy C
dalklein Jun 21, 2019
2fd9116
Username and Pass for testing
gtdiehl Jun 21, 2019
a2795d5
Revert "Username and Pass for testing"
gtdiehl Jun 21, 2019
9832ba8
added awaits, solved issue with async requests
dalklein Jun 22, 2019
06600db
Merge pull request #9 from dalklein/master
jesserizzo Jun 22, 2019
09e0fa7
Merge branch 'master' into master
jesserizzo Jun 22, 2019
d219718
Merge pull request #4 from sfjes/master
jesserizzo Jun 22, 2019
21672ea
Merge branch 'master' into master
jesserizzo Jun 22, 2019
5668b90
Merge pull request #7 from gtdiehl/master
jesserizzo Jun 22, 2019
5bdb5cd
Merge pull request #2 from jesserizzo/master
gtdiehl Jul 18, 2019
4650abf
User configurable Usename and Password
gtdiehl Jul 18, 2019
5625c1e
move doc string below imports
jesserizzo Jul 18, 2019
5580089
add install_requires to setup.py
jesserizzo Jul 19, 2019
79391e8
tweak requirements versions
jesserizzo Jul 20, 2019
37a7ea7
Updated API and fixed logic error
gtdiehl Aug 20, 2019
8fd3f94
Delete .gitignore
gtdiehl Aug 29, 2019
264c21f
Delete profiles_settings.xml
gtdiehl Aug 29, 2019
2b1c2a8
Delete envoy_reader.iml
gtdiehl Aug 29, 2019
0503044
Delete misc.xml
gtdiehl Aug 29, 2019
fdfed94
Delete modules.xml
gtdiehl Aug 29, 2019
509bcce
Delete vcs.xml
gtdiehl Aug 29, 2019
4c829cd
Fix support for Envoy 'P' models that do not have consumption capabil…
dennisdegreef Nov 8, 2019
1bf743e
Merge pull request #11 from gtdiehl/master
jesserizzo Nov 16, 2019
e95885e
Merge pull request #15 from dennisdegreef/fixPModels
jesserizzo Nov 16, 2019
ea1e818
increment minor version number
jesserizzo Nov 17, 2019
c339923
Log message when login fails
gtdiehl Dec 16, 2019
8a61300
Changed exception to requests raise_for_status()
gtdiehl Dec 16, 2019
a0d17dc
Change production retrieval
gtdiehl Dec 19, 2019
6a740d2
Merge pull request #18 from gtdiehl/login-messages
jesserizzo Dec 21, 2019
b8c8b02
increment version number for pypi upload
jesserizzo Dec 21, 2019
da6b247
Fallback to inverter wNow if eim not available
gtdiehl Dec 23, 2019
512542c
Merge pull request #20 from gtdiehl/envoys_production
jesserizzo Dec 25, 2019
2e49fcc
increment version number
jesserizzo Dec 25, 2019
191253c
Use better detection for PC type
dennisdegreef Dec 26, 2019
76d1c95
Merge pull request #21 from dennisdegreef/fixPcDetection
jesserizzo Jan 18, 2020
be02f86
Basic CI/CD (#24)
jesserizzo Jan 18, 2020
62fcac7
Added update for HA (#22)
gtdiehl Feb 22, 2020
d07146c
Replace sync inverter call with async (#29)
gtdiehl May 3, 2020
9abb7bb
Bump version number
jesserizzo May 4, 2020
326860e
Update setup.py
gtdiehl May 5, 2020
7f201bf
Merge pull request #31 from gtdiehl/setup_httpx
jesserizzo May 9, 2020
78137eb
Update setup.py
jesserizzo May 9, 2020
a33ebe5
Increase timeout
gtdiehl Jul 16, 2020
6c7ad30
Increase timeout
gtdiehl Jul 16, 2020
614bf48
Merge branch 'httpx_timeout' of https://github.com/gtdiehl/envoy_read…
gtdiehl Jul 16, 2020
54d7cf5
Merge pull request #35 from gtdiehl/httpx_timeout
gtdiehl Oct 31, 2020
7b9d159
Bump version number
gtdiehl Oct 31, 2020
b68e4c8
Merge pull request #38 from gtdiehl/bump_version_0162
gtdiehl Oct 31, 2020
2d186da
Fixes issue #37 and Reduces HTTP calls
gtdiehl Nov 11, 2020
7c6afee
Fixed typo and added CT Status to console
gtdiehl Nov 12, 2020
d384ed9
Fixed async error in update() when ran from HA
gtdiehl Nov 13, 2020
3bba15d
Removing debug msg output
gtdiehl Nov 17, 2020
0ba6421
Merge pull request #40 from gtdiehl/fix_issue_37
gtdiehl Nov 21, 2020
bcb3c5c
Bump version number
gtdiehl Nov 21, 2020
b248f8a
Merge pull request #44 from gtdiehl/master
gtdiehl Nov 21, 2020
c5c29a7
Raise exceptions to be consumed by Home Assistant
gtdiehl Dec 4, 2020
db845df
Bumping version to 0.17.1
gtdiehl Dec 4, 2020
6f6db06
Raise exceptions and remove unused update()
gtdiehl Dec 4, 2020
b6ef966
Bumping version to 0.17.1
gtdiehl Dec 4, 2020
f7b30d3
Merge branch 'exception_handling_ha' of https://github.com/gtdiehl/en…
gtdiehl Dec 4, 2020
4610d1a
Returning exception to console results
gtdiehl Dec 4, 2020
bf44eab
Return exception to console results
gtdiehl Dec 4, 2020
09d3038
Merge pull request #47 from gtdiehl/exception_handling_ha
gtdiehl Dec 4, 2020
573a04e
Removed deprecated requests_async library
gtdiehl Dec 6, 2020
490184c
Bump version to 0.17.2
gtdiehl Dec 6, 2020
6f299bc
Removing unused import h11
gtdiehl Dec 6, 2020
006ec97
Fixed bug with older Envoy device Production URL
gtdiehl Dec 7, 2020
6a5c535
Check not retrieve inverter data older for Envoys
gtdiehl Dec 7, 2020
08bb904
Aligned console output
gtdiehl Dec 7, 2020
53cf8cf
Merge pull request #49 from gtdiehl/replace_requests_httpx
gtdiehl Dec 7, 2020
3621d71
Bump version to 0.18.0
gtdiehl Dec 15, 2020
3d18c5d
Merge pull request #53 from gtdiehl/master
gtdiehl Dec 15, 2020
e095d4a
Moving IO operations to data gather methods
gtdiehl Dec 16, 2020
e83edc9
Remove isDataRetrieved flag not being used
gtdiehl Dec 16, 2020
28e34de
Fix typo calling text var not method
gtdiehl Dec 16, 2020
545d94a
Merge pull request #56 from gtdiehl/master
gtdiehl Dec 16, 2020
48c874e
Bump version to 0.18.1
gtdiehl Dec 16, 2020
ac7401e
Merge pull request #57 from gtdiehl/master
gtdiehl Dec 16, 2020
a8d6c82
Adding retries when gathering inverter data
gtdiehl Dec 28, 2020
fddf180
Fixed typo
gtdiehl Dec 28, 2020
8f6e02e
Fixing whitespace and tab issue
gtdiehl Dec 28, 2020
77e5d1a
Bump version to 0.18.2
gtdiehl Dec 28, 2020
1ba3d9d
Merge pull request #59 from gtdiehl/master
gtdiehl Dec 28, 2020
0aa4561
Fix indentation issue
gtdiehl Dec 28, 2020
c4b1ab9
Return None when inverters not supported
gtdiehl Dec 28, 2020
d6add6d
Bump version to 0.18.3
gtdiehl Dec 28, 2020
b65fe5c
Merge pull request #61 from gtdiehl/master
gtdiehl Dec 28, 2020
64ef3cd
Cleanup detection and avoid calling endpoints that are not present
bdraco Apr 6, 2021
86300bf
Remove httpx.HTTPError catch since response will be unbound on error
bdraco Apr 8, 2021
ef48a4f
reorder
bdraco Apr 8, 2021
7bbf506
flake8 fixes
bdraco Apr 10, 2021
b0bbdc1
Add requirements
bdraco Apr 10, 2021
346e78c
fix test location in ci
bdraco Apr 10, 2021
52c36d2
prep work to install respx for testing
bdraco Apr 10, 2021
37b1e38
cleanup retry logic
bdraco Apr 10, 2021
fef68f5
Add more fixtures
bdraco Apr 10, 2021
3e262ad
fix v4
bdraco Apr 10, 2021
ba1614b
merge retry logic
bdraco Apr 10, 2021
c3c4207
Remove unused import
bdraco Apr 10, 2021
71e9747
tweaks
bdraco Apr 10, 2021
00207f6
tests
bdraco Apr 10, 2021
36150fa
tests
bdraco Apr 10, 2021
df8e86c
Merge pull request #64 from bdraco/detection_cleanups
gtdiehl Apr 11, 2021
b528a92
Bumping envoy_reader version
gtdiehl Apr 11, 2021
8feb02b
Update envoy_reader.py getData()
stuartwishart Apr 14, 2021
76f98a8
Update envoy_reader.py
stuartwishart Apr 14, 2021
ca84e9c
Remove schedule build
gtdiehl Apr 15, 2021
b2b1466
Added build badge to Readme
gtdiehl Apr 15, 2021
f1e747c
Added Latest release badge
gtdiehl Apr 15, 2021
f611d5d
Rename master to main (#66)
jesserizzo Apr 15, 2021
aacd5c4
Merge pull request #71 from gtdiehl/main
gtdiehl Apr 16, 2021
21f5fe4
Merge pull request #69 from gtdiehl/remove_schedule
gtdiehl Apr 18, 2021
d603c16
Merge pull request #68 from stuartwishart/main
gtdiehl Apr 18, 2021
a4816c1
Bumping version to 0.18.5
gtdiehl Apr 22, 2021
82df8b4
Merge pull request #73 from gtdiehl/main
gtdiehl Apr 22, 2021
e938f70
Added battery status function
gtdiehl Apr 23, 2021
e183ba2
Removing debug
gtdiehl Apr 23, 2021
b23dc96
Fix errors with other Envoy types
gtdiehl Apr 23, 2021
63342e3
Removing extra whitespace
gtdiehl Apr 23, 2021
92a99df
Fixed black issue
gtdiehl Apr 23, 2021
d3782e2
Optimzed code and return when battery is found
gtdiehl Apr 23, 2021
4cd7c53
Bumping version to 0.19.0 due to new feature
gtdiehl Apr 23, 2021
e6294d2
Merge branch 'battery_status' of https://github.com/gtdiehl/envoy_rea…
gtdiehl Apr 23, 2021
73a8c34
Added comments for battery_status function
gtdiehl Apr 23, 2021
3668de9
Renamed function
gtdiehl Apr 23, 2021
b814e1d
Reverting return_exceptions boolean
gtdiehl Apr 23, 2021
598ee6c
Merge pull request #74 from gtdiehl/battery_status
gtdiehl Apr 23, 2021
54b0e33
Added enpower status
gtdiehl Apr 29, 2021
c9bee6f
Fixed message output
gtdiehl Apr 29, 2021
891cc6a
Fixed endpoint variable
gtdiehl Apr 29, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
---
name: Bug Report
about: '"Something''s wrong..."'
title: ''
labels: ''
assignees: ''

---

## Description
*A clear description of the bug*




## Expected Behavior
*What did you expect to happen instead?*




## Reproduction
*A minimal example that exhibits the behavior.*




## Environment
*Any additional information about your environment*
23 changes: 23 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
---
name: Feature Request
about: '"It would be really cool if x did y..."'
title: ''
labels: ''
assignees: ''

---

## Use Case
*Please provide a use case to help us understand your request in context*




## Solution
*Please describe your ideal solution*




## Alternatives
*Please describe any alternatives you've considered, even if you've dismissed them*
8 changes: 8 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
**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: _Resolves [gh-12], adds tiff file format support_
- [ ] 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!
34 changes: 34 additions & 0 deletions .github/workflows/build-docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Documentation

on:
push:
branches:
- main

jobs:
docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2.3.1
with:
persist-credentials: false
- name: Set up Python
uses: actions/setup-python@v1
with:
python-version: 3.9
- name: Install Dependencies
run: |
pip install --upgrade pip
pip install .[dev]
- name: Generate Docs
run: |
make gen-docs
touch docs/_build/html/.nojekyll
- name: Publish Docs
uses: JamesIves/github-pages-deploy-action@3.7.1
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BASE_BRANCH: main # The branch the action should deploy from.
BRANCH: gh-pages # The branch the action should deploy to.
FOLDER: docs/_build/html/ # The folder the action should deploy.

74 changes: 74 additions & 0 deletions .github/workflows/build-main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
name: Build Main

on:
push:
branches:
- main

jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
python-version: [3.8, 3.9]
os: [ubuntu-latest, windows-latest, macOS-latest]

steps:
- uses: actions/checkout@v1
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
- name: Install Dependencies
run: |
python -m pip install --upgrade pip
pip install .[test]
- name: Test with pytest
run: |
pytest --cov-report xml --cov=envoy_reader tests/
- name: Upload codecov
uses: codecov/codecov-action@v1

lint:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v1
- name: Set up Python
uses: actions/setup-python@v1
with:
python-version: 3.9
- name: Install Dependencies
run: |
python -m pip install --upgrade pip
pip install .[test]
- name: Lint with flake8
run: |
flake8 envoy_reader --count --verbose --show-source --statistics
- name: Check with black
run: |
black --check envoy_reader

publish:
if: "contains(github.event.head_commit.message, 'Bump version')"
needs: [test, lint]
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v1
- name: Set up Python
uses: actions/setup-python@v1
with:
python-version: 3.9
- name: Install Dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel
- name: Build Package
run: |
python setup.py sdist bdist_wheel
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@master
with:
user: bdraco
password: ${{ secrets.PYPI_TOKEN }}
33 changes: 33 additions & 0 deletions .github/workflows/pythonapp.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Python application

on:
pull_request:
branches:
- main

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v1
- name: Set up Python 3.7
uses: actions/setup-python@v1
with:
python-version: 3.7
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Lint with flake8
run: |
pip install flake8
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings.
flake8 . --count --exit-zero --max-complexity=10 --statistics
# - name: Test with pytest
# run: |
# pip install pytest
# pytest
47 changes: 47 additions & 0 deletions .github/workflows/test-and-lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Test and Lint

on: pull_request

jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
python-version: [3.8, 3.9]
os: [ubuntu-latest, windows-latest, macOS-latest]

steps:
- uses: actions/checkout@v1
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
- name: Install Dependencies
run: |
python -m pip install --upgrade pip
pip install .[test]
- name: Test with pytest
run: |
pytest tests/
- name: Upload codecov
uses: codecov/codecov-action@v1

lint:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v1
- name: Set up Python
uses: actions/setup-python@v1
with:
python-version: 3.9
- name: Install Dependencies
run: |
python -m pip install --upgrade pip
pip install .[test]
- name: Lint with flake8
run: |
flake8 envoy_reader --count --verbose --show-source --statistics
- name: Check with black
run: |
black --check envoy_reader
135 changes: 135 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,135 @@
# Created by https://www.gitignore.io/api/python

### Python ###
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class

# C extensions
*.so

# Distribution / packaging
.Python
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
wheels/
*.egg-info/
.installed.cfg
*.egg
MANIFEST

# PyInstaller
# Usually these files are written by a python script from a template
# before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest
*.spec

# Installer logs
pip-log.txt
pip-delete-this-directory.txt

# Unit test / coverage reports
htmlcov/
.tox/
.nox/
.coverage
.coverage.*
.cache
nosetests.xml
coverage.xml
*.cover
.hypothesis/
.pytest_cache/

# Translations
*.mo
*.pot

# Django stuff:
*.log
local_settings.py
db.sqlite3

# Flask stuff:
instance/
.webassets-cache

# Scrapy stuff:
.scrapy

# Sphinx documentation
docs/_build/

# PyBuilder
target/

# Jupyter Notebook
.ipynb_checkpoints

# IPython
profile_default/
ipython_config.py

# pyenv
.python-version

# celery beat schedule file
celerybeat-schedule

# SageMath parsed files
*.sage.py

# Environments
.env
.venv
env/
venv/
ENV/
env.bak/
venv.bak/

# Spyder project settings
.spyderproject
.spyproject

# Rope project settings
.ropeproject

# mkdocs documentation
/site

# mypy
.mypy_cache/
.dmypy.json
dmypy.json

### Python Patch ###
.venv/

### Python.VirtualEnv Stack ###
# Virtualenv
# http://iamzed.com/2009/05/07/a-primer-on-virtualenv/
[Bb]in
[Ii]nclude
[Ll]ib
[Ll]ib64
[Ll]ocal
[Ss]cripts
pyvenv.cfg
pip-selfcheck.json


.vscode


# End of https://www.gitignore.io/api/python
Loading