Update to current format for Home Assistant MQTT sensor

This commit is contained in:
M.J. Wydra
2025-12-26 11:14:43 -06:00
committed by GitHub
parent 6c093d4833
commit b4014bcb70

View File

@@ -112,9 +112,10 @@ You can monitor the status of the AC adapter (online or offline) by setting `AC_
# Example Home Assistant configuration
```yaml
sensor:
- platform: mqtt
name: Server battery
mqtt:
sensor:
- name: Server battery
default_entity_id: sensor.server_battery
state_topic: &server_battery_topic "battery2mqtt/server/BAT0"
value_template: "{{ value_json.capacity }}"
unit_of_measurement: '%'