Checks Hoymiles online API and puts the information of your PV system on a MQTT topic
5.3K
This program will connect to the Hoymiles webservice and gather the energy information from it. The program is configurable through a .env configuration file. Use the following parameters in order to configure:
I use it for filling a couple of basic Home Assistant MQTT Sensors so that these can be used in the Energy dashboard or for other visualisations or automations.
There is a docker container available on the docker hub for your convenience. The following docker-compose.yml can be used to run the container easily:
version: '3.4'
services:
hoymiles-mqtt:
container_name: hoymiles-mqtt
image: rgardeniers/hoymiles-mqtt:latest
volumes:
- ./env/.env:/app/.env
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
restart: always
network_mode: host
Just put this docker-compose.yml file in a directory, create a subdirectory "env" and place a file in it called ".env" with the correct parameters.
In the configuration.yaml file just add a couple of sensors that this program put on the MQTT queue like so:
- platform: mqtt
name: hoymiles_energy_lifetime_energy
state_topic: "hoymiles/energy_lifetime_energy"
unit_of_measurement: "kWh"
value_template: "{{ value | float / 1000 }}"
device_class: energy
icon: mdi:solar-power
To use the above sensor in the Energy dashboard add
state_class: total
But of course you can use this program/container for other purposes!
Content type
Image
Digest
sha256:006d4cf23…
Size
45.7 MB
Last updated
over 1 year ago
docker pull rgardeniers/hoymiles-mqtt