Skip to content

Instantly share code, notes, and snippets.

@DJBenson
DJBenson / ha-docker-mqtt.md
Last active January 17, 2026 13:00

Home Assistant Core in Docker with Mosquitto broker

​This requires basic knowledge of linux, bash, nano and Docker itself.

Basic Setup

In this example we are using /home/user/ha-docker-mqtt as the root path so all commands should be run from there (your chosen path!).

Create the required directories

@DJBenson
DJBenson / geaiobatteryvoltage.yaml
Created January 6, 2024 10:16
GivEnergy All In One Battery Voltage
mqtt:
sensor:
- name: "GivTCP <Your Serial> Invertor Details GivTCP Battery Voltage"
unique_id: <Insert a UUID>
force_update: true
icon: mdi:flash-triangle-outline
device_class: voltage
state_class: measurement
qos: 0
unit_of_measurement: "V"
@DJBenson
DJBenson / geaiobatterytemp.yaml
Last active January 6, 2024 10:16
GivEnergy All In One Battery Temperature
mqtt:
sensor:
- name: "GivTCP <Your Serial> Invertor Details GivTCP Battery Temperature"
unique_id: <Insert a UUID>
state_topic: "<Your GivTCP Prefix>/<Your Serial>/raw/invertor/temp_battery"
force_update: true
device_class: Temperature
unit_of_measurement: "°C"
state_class: measurement
icon: "mdi:thermometer"