I have my Marstek Venus E2 working with hame-relay and hm2mqtt working all in docker ...
install https://github.com/tomquist/hame-relay
compose.yaml
Code: Select all
services:
mqtt-forwarder:
container_name: hame-relay
image: ghcr.io/tomquist/hame-relay:latest
restart: unless-stopped
dns_search: .
volumes:
- ./config:/app/config
environment:
- LOG_LEVEL=info
networks: {}Code: Select all
cat config.json
{
"broker_url": "mqtt://your-broker-ip",
"username": "your-marstek-user",
"password": "your-marstek-password",
"inverse_forwarding": "true"
}compose.yaml
Code: Select all
services:
hm2mqtt:
container_name: hm2mqtt
image: ghcr.io/tomquist/hm2mqtt:latest
restart: unless-stopped
environment:
- MQTT_BROKER_URL=mqtt://your-broker-ip:1883
- MQTT_USERNAME=''
- MQTT_PASSWORD=''
- MQTT_POLLING_INTERVAL=60
- MQTT_RESPONSE_TIMEOUT=45
- POLL_CELL_DATA=true
- POLL_EXTRA_BATTERY_DATA=true
- POLL_CALIBRATION_DATA=true
- DEVICE_0=HMG-50:0019aa0d4dcb # 12-character MAC address
# - DEVICE_0=HMA-1:0019aa0d4dcb # 12-character MAC address
networks: {}the MAC must be the Bluetooth MAC address of your battery
from now on hm2mqtt polls the Marstek cloud every minute and sends data over mqtt
as I had MQTTAD running, some 94 devices are created in domoticz !
- don't be surprised to see some timeouts on polling
- don't be surprised to see some very strange values in the TEMPERATURE devices