added home assistant configuration for power monitoring

blakadder 2018-11-01 21:02:54 +01:00
parent 3c59265418
commit 19facdda39
1 changed files with 35 additions and 0 deletions

@ -48,3 +48,38 @@ Text item=Power_Total label="Power Total: [%.3f kWh]" icon="energy"
Text item=Power_Today label="Power Today: [%.3f kWh]" icon="energy"
Text item=iPower_Yesterday label="Power Yesterday: [%.3f kWh]" icon="energy"
```
### Home Assistant configuration
configuration.yaml
```
sensor:
- platform: mqtt
name: "Blitzwolf Energy Today"
state_topic: "tele/blitzwolf/SENSOR"
value_template: '{{ value_json["ENERGY"]["Today"] }}'
unit_of_measurement: "kWh"
- platform: mqtt
name: "Blitzwolf Energy Yesterday"
state_topic: "tele/blitzwolf/SENSOR"
value_template: '{{ value_json["ENERGY"]["Yesterday"] }}'
unit_of_measurement: "kWh"
- platform: mqtt
name: "Blitzwolf Energy Total"
state_topic: "tele/blitzwolf/SENSOR"
value_template: '{{ value_json["ENERGY"]["Total"] }}'
unit_of_measurement: "kWh"
- platform: mqtt
name: "Blitzwolf Power"
state_topic: "tele/blitzwolf/SENSOR"
value_template: '{{ value_json["ENERGY"]["Power"] }}'
unit_of_measurement: "W"
- platform: mqtt
name: "Blitzwolf Voltage"
state_topic: "tele/blitzwolf/SENSOR"
value_template: '{{ value_json["ENERGY"]["Voltage"] }}'
unit_of_measurement: "V"
- platform: mqtt
name: "Blitzwolf Power Factor"
state_topic: "tele/blitzwolf/SENSOR"
value_template: '{{ value_json["ENERGY"]["Factor"] }}'
```