mirror of
https://github.com/Tediore/battery2mqtt.git
synced 2025-12-28 16:22:58 +01:00
Update to current format for Home Assistant MQTT sensor
This commit is contained in:
@@ -112,9 +112,10 @@ You can monitor the status of the AC adapter (online or offline) by setting `AC_
|
||||
|
||||
# Example Home Assistant configuration
|
||||
```yaml
|
||||
mqtt:
|
||||
sensor:
|
||||
- platform: mqtt
|
||||
name: Server battery
|
||||
- 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: '%'
|
||||
|
||||
Reference in New Issue
Block a user