Component to integrate with a Zeversolar inverter using its local API.
This component will set up the following platform.
Platform | Description |
---|---|
sensor |
Show information from the Zeversolar inverter. |
- If you do not have a
custom_components
directory (folder) there, you need to create it. - In the
custom_components
directory (folder) create a new folder calledzeversolar_local
. - Download all the files from the
custom_components/zeversolar_local/
directory (folder) in this repository. - Place the files you downloaded in the new directory (folder) you created.
- Restart Home Assistant
- In the HA UI go to "Configuration" -> "Integrations" click "+" and search for "Zeversolar Inverter - local"
- Input the IP address of your inverter: e.g. 192.168.5.101
- You can configure the default poll interval (30s) using the configuration link of the integration. It can be set between 10 and 3600 seconds.
If you want to contribute to this please read the Contribution guidelines
You should use Visual Studio Code to develop in a container. In this container you
will have all the tools to ease your python development and a dedicated Home
Assistant core instance to run your integration. See .devcontainer/README.md
for more information.
Run the appropriate requirement task to install the requirements for development or test.
This integration is under construction. Some functions are missing yet.
I am uncertain how to deal if the inverter is powered off (in the night). The actual implementation is to change the entities to unavailable. So the entities will disappear from the dashboards. Showing the last state is definitively wrong for the actual power and will lead to curious history graphs for power and summarized energy on the next day until the inverter reconnects. The inverter itself has the problem that it looses the summarized (daily) values on a power failure and the counting starts at zero.
I'll want to thank @mletenay for creating the Godwee inverter integration that motivated me to implement this integration and to Aaron Godfrey for his blog to create an integration.
Also thanks for instructions, blueprints, container etc. that are very helpful for me:
- Development container: https://github.com/ludeeus/hassio-homeassistant
- Instructions: https://developers.home-assistant.io/docs/creating_component_index/
- Blueprint for integrations: https://github.com/custom-components/integration_blueprint