From a6ca32d5d7f8144d6f88c8458393b4d5e8e02376 Mon Sep 17 00:00:00 2001 From: hidaba Date: Sun, 14 May 2023 11:15:44 +0200 Subject: [PATCH] Update README.md mqtt examples --- README.md | 47 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) diff --git a/README.md b/README.md index daafaac..824ca99 100644 --- a/README.md +++ b/README.md @@ -51,3 +51,50 @@ This battery uses RJ45 cable instead of RJ10. Schematics is the same only plug d * Connect Wemos D1 to the power via USB * Find what IP address was assigned to your Wemos by your router and open it in the web-browser * You should be able now to connunicate with the battery via WiFi + + + +# Example of sensors in Home Assistant: + +``` +mqtt: + + sensor: + - name: "Livello Carica Batteria" + state_topic: "homeassistant/sensor/grid_battery/soc" + unit_of_measurement: "%" + device_class: battery + + - name: "Stato Batteria" + state_topic: "homeassistant/sensor/grid_battery/base_state" + + - name: "Temperatura Batteria" + state_topic: "homeassistant/sensor/grid_battery/temp" + unit_of_measurement: "°C" + device_class: temperature + + - name: "Num Batterie" + state_topic: "homeassistant/sensor/grid_battery/battery_count" + + - name: "Potenza impegnata Batterie" + state_topic: "homeassistant/sensor/grid_battery/getPowerDC" + unit_of_measurement: "Wh" + device_class: energy + + - name: "Potenza carica Batterie" + state_topic: "homeassistant/sensor/grid_battery/powerIN" + unit_of_measurement: "Wh" + state_class: "total_increasing" + device_class: "energy" + #last_reset: none + icon: mdi:flash + + + - name: "Potenza scarica Batterie" + state_topic: "homeassistant/sensor/grid_battery/powerOUT" + unit_of_measurement: "Wh" + state_class: "total_increasing" + device_class: "energy" + #last_reset: none + icon: mdi:flash +```