jedie / inverter-connect

Get information from Deye Microinverter
https://pypi.org/project/inverter-connect/
GNU General Public License v3.0
29 stars 9 forks source link

Added wider temperature and power range, added further checks #115

Closed MKesenheimer closed 9 months ago

MKesenheimer commented 9 months ago

Since my power production was higher than 600W, I increased the max_value for power. Furthermore, I added more checks when adding the energy value to the daily production.

MKesenheimer commented 9 months ago

Sorry, the other commits were not intended to be in this pull request. Please ignore them.

The Dockerfile and the config.yaml are for a addon that I built for Home Assistant. With these changes, your tool can be added directly as a plugin to Home Assistant which pulls the values and publishes them to a MQTT server running in Home Assistant.

MKesenheimer commented 9 months ago

I am closing this PR since you already implemented the relevant changes. Thank you.

jedie commented 9 months ago

The Dockerfile and the config.yaml are for a addon that I built for Home Assistant. With these changes, your tool can be added directly as a plugin to Home Assistant which pulls the values and publishes them to a MQTT server running in Home Assistant.

That's interesting. Can you provide more information about this? I use Home Assistant, too. But run inverter-connect on a different machine and use Mosquitto for as MQTT broker...

MKesenheimer commented 9 months ago

There is the possibility in Home Assistant to import custom addons. If I remember correctly, the addons are stored in the directory /root/addons. You can simply copy my project folder with the Dockerfile and additional config file via ssh or a samba share into this directory. After a restart of HA, the addon should be visible under Settings > Add-ons > Add-on Store. The custom addon can be installed like every other addon by clicking "install". If everything went correctly, HA should now run an instance of "inverter-connect". Keep in mind, that the mqtt broker must be installed separately.

For more information how to develop your own addons and how to install them, visit https://developers.home-assistant.io/docs/add-ons/tutorial/.

MKesenheimer commented 9 months ago

Oh, one more thing: I don't know yet, how to modify configuration files via the HA interface. Therefore, if you want to try out my changes, you have to modify the file cfg/inverter-connect-template.toml by hand and rename it to cfg/inverter-connect.toml. This file is copied automatically during the Docker build.

jedie commented 9 months ago

Thank for the information... Hm. Manually change the settings file is bad :( I also don't know if this is in general a good idea here, because i use HomeAssistant via YunoHost...

We should continue here: https://github.com/jedie/inverter-connect/discussions/120