mirror of
https://github.com/Tediore/battery2mqtt.git
synced 2025-04-03 23:13:44 +02:00
21 lines
570 B
YAML
21 lines
570 B
YAML
battery2mqtt:
|
|
container_name: battery2mqtt
|
|
image: tediore/battery2mqtt:latest
|
|
environment:
|
|
- MQTT_HOST=10.0.0.2
|
|
- MQTT_PORT=1883
|
|
- MQTT_USER=user
|
|
- MQTT_PASSWORD=password
|
|
- MQTT_TOPIC=server
|
|
- MQTT_QOS=1
|
|
- INTERVAL=60
|
|
- MONITORED_CONDITIONS=status,capacity,energy_now,energy_full,energy_full_design,power_now,voltage_now
|
|
- BATTERY_HEALTH=1
|
|
- TIME_REMAINING=1
|
|
- SHOW_UNITS=1
|
|
- AC_ADAPTER=1
|
|
- LOG_LEVEL=info
|
|
volumes:
|
|
- /sys/class/power_supply:/sys/class/power_supply:ro
|
|
restart: unless-stopped
|