thepheonixguy / sunsynk-scraper Goto Github PK
View Code? Open in Web Editor NEWA python script for scraping data from Sunsynk Inverters and their cloud platform, and publishing it to Home Assistant
License: MIT License
A python script for scraping data from Sunsynk Inverters and their cloud platform, and publishing it to Home Assistant
License: MIT License
Entites are currently hard coded as expected strings, and we have a little helper utility to generate the json dump for discovery and state publishing in home assistant.
We wanna move these into a class, and use dumps
to convert those entities to valid json.
This should also help improve later down the road when we introduce setters and modifying settings from home assistant
https://developers.home-assistant.io/docs/add-ons/configuration/#options--schema
All items currently filled in by credentials.py should come from options configured by the UI in home assistant.
The credentials.py script can be updated to handle ingest of these options and reporting them back to the main script.
Currently we log in once, and then never try log in again.
This can cause API calls to fail once the token expires. We need to safely handle that and try login again if we fail.
After a certain number of failures, we can probably safely stop trying and assume the username/password has change.
Bonus points:
Add another entity that we publish to home assistant, to indicate whether our last communication with the was successful. Binary sensory of type connectivity
, and maybe a second binary sensor that indicates whether or not credentials have expired outright and you need to update your username and password for the integration.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.