Ich kam erst heute dazu mich wirklich damit auseinander zu setzen.
version: "3.7"
services:
eclipse-mosquitto:
image: eclipse-mosquitto
hostname: mosquitto
container_name: mosquitto
stdin_open: true
tty: true
ports:
- 1885:1883
- 8080:8080
volumes:
- ./mosquitto/config:/mosquitto/config
- ./mosquitto/data:/mosquitto/data
- ./mosquitto/log:/mosquitto/log
restart: always
hame-relay:
# image: ghcr.io/tomquist/hame-relay:1.2
image: ghcr.io/tomquist/hame-relay
container_name: hame-relay
restart: always
volumes:
- $DOCKERDIR/marstek/hame-relay/config:/app/config
environment:
- LOG_LEVEL=trace
- TZ="Europe/Berlin"
hm2mqtt:
image: ghcr.io/tomquist/hm2mqtt:latest
container_name: hm2mqtt
restart: always
environment:
MQTT_BROKER_URL: mqtt://192.168.4.26:1885
MQTT_USERNAME: $MA_MQTT_USERNAME
MQTT_PASSWORD: $MA_MQTT_PASSWORD
# MQTT_PROXY_ENABLED: true
MQTT_POLLING_INTERVAL: 60
MQTT_RESPONSE_TIMEOUT: 30
MQTT_ALLOWED_CONSECUTIVE_TIMEOUTS: 5
POLL_CELL_DATA: true
POLL_EXTRA_BATTERY_DATA: true
POLL_CALIBRATION_DATA: true
DEVICE_0: HMJ-2:my_MAC
DEVICE_1: HMI-1:my_MAC
b2500-meter:
image: ghcr.io/tomquist/b2500-meter:latest
container_name: b2500-meter
network_mode: host
restart: always
volumes:
- ./b2500-meter/config.ini:/app/config.ini
Da es ja endlos viele optionen gibt in der Konfiguration vom b2500 auch mal hier meine wie sie aktuell am laufen ist:
[GENERAL]
# Comma-separated list of device types to emulate (ct001, shellypro3em, shellyemg3, shellyproem50, shellypro3em_old, shellypro3em_new)
DEVICE_TYPE = shellyemg3
# Skip initial powermeter test on startup
SKIP_POWERMETER_TEST = False
# Sum power values of all phases and report on phase 1 (ct001 only and default is False)
DISABLE_SUM_PHASES = False
# Send absolute values (necessary for storage system) (ct001 only and default is False)
DISABLE_ABSOLUTE_VALUES = False
# Interval for sending power values in seconds (ct001 only and default is 1)
POLL_INTERVAL = 1
# Global throttling interval in seconds to prevent control instability or oscillation
# Set to 0 to disable throttling (default). Recommended: 1-3 seconds for slow data sources
# Can be overridden per powermeter section
THROTTLE_INTERVAL = 0
[TASMOTA]
IP = 192.168.4.134
JSON_STATUS = StatusSNS
JSON_PAYLOAD_MQTT_PREFIX = SML
JSON_POWER_MQTT_LABEL = Watt_Summe
# JSON_POWER_INPUT_MQTT_LABEL = Power1
# JSON_POWER_OUTPUT_MQTT_LABEL = Power2
JSON_POWER_CALCULATE = False
Mittels der HTTP Requests sind die abfragen doch sehr schnell und damit hat man dann in Marstek einen Shelly EM Gen3 konfigurieren und der wird zu meiner Überraschung auch direkt ohne murren akzeptiert.
Ports und IPs müssen natürlich entsprechend eurer Infrastruktur angepasst werden.
Falls ihr Zweifel habt ob alle Einstellungen richtig sind könnt ihr einfach den Pfad auf eurem Tasmota aufrufen:
http://192.168.4.134/cm?cmnd=Status 10