1
0
Fork
You've already forked python-hoymiles
0
Access the Hoymiles API from Python (forked from a Hoymiles Home Assistant plugin at https://github.com/dmslabsbr/hoymiles)
  • Python 94.1%
  • Shell 2.4%
  • HTML 1.9%
  • Dockerfile 1.6%
2024年05月15日 16:04:48 -04:00
.github fix version of paho-mqtt 2024年02月12日 19:59:50 +01:00
.vscode fix version of paho-mqtt 2024年02月12日 19:59:50 +01:00
edge Create tool to check DTU status every 15 minutes and log to SQLite3 2024年05月15日 16:04:48 -04:00
img readme + images 2022年03月08日 15:39:32 -03:00
oldStable update gitignore to omit config secrets 2024年05月15日 16:01:15 -04:00
stable update gitignore to omit config secrets 2024年05月15日 16:01:15 -04:00
.gitignore update gitignore to omit config secrets 2024年05月15日 16:01:15 -04:00
README.md Update README.md 2024年04月19日 17:01:09 +02:00
repository.json readme + images 2022年03月08日 15:39:32 -03:00
workspace.code-workspace remove 2021年03月19日 22:42:31 -03:00

Important Info

Addon is in maintenance mode. This is FOSS (Free Open Source Software) and based on reverse engineering so it could not work always as expected. What is more due to techical dept present implementation loose possibility to add new features. This mean that it required rewriting from scratch. Without support from community it is not predicted soon.

Br, Cosik.

HoyMiles Solar Data Gateway Add-on

Application to read Hoymiles Gateway Solar Data using unofficial API

I developed this program to integrate my solar system data to Home Assistant Application through an add-on.

Now, Cosik is helping too.

Open your Home Assistant instance and show the add add-on repository dialog with a specific repository URL pre-filled.

Donate Cosik -> Donate Cosik

Lines of code GitHub last commit

Instructions

Home Assistant add-on instructions

There is three apps versions that you can choice.

1 - The Old Stable Version Old Stable figure

2 - The Edge Version Edge figure

3 - The Stable Version New Stable figure

My solar panels communicate with the internet using a DTU-W100 gateway.

But it will probably work with any device that uses the global.hoymiles.com Website. It was tested with DTU-PRO also.

Standalone running - short info

You also could use the application without using the Home Assistant. You just need a machine that runs Python3. It based on mqtt messages, so could be send from any device to MQTT Broker.

Before run you need to install: https://github.com/eclipse/paho.mqtt.python and https://github.com/psf/requests

git clone https://github.com/dmslabsbr/hoymiles.git
cd hoymiles
python3 -m venv ./hoymiles/
source ./bin/activate
pip3 install paho-mqtt==1.6.1
pip3 install requests
pip3 install python-dateutil

Configuration:

UI is not working and could show "Bad Gateway" which is normal and expected.

Add-on is desigend to use MQTT messages to send data to Home Assistant instance. By default credentials and server name is taken from Home Assistant. If you use other broker or using your own one it is required to make external and fill server and credentials for connection.

To get it proper working you have also pass credentials for Hoymiles Cloud access and your plant ID.

If evrything is set correctly new MQTT entities will be visible on HA.

Supported devies

So far it is confirmed that addon support Hoymiles devices:

  • micro inverters
  • standard inverters
  • energy meters
  • bms (with some restrictions) - edge version with details
  • batteries (with some restrictions) - edge version with details
  • multiple instalattions - edge version

PS:

I invite everyone to help in the this tool development.

Screenshots

Licence

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.