1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-02 03:12:20 +01:00

Add total daily energy sensor (#220)

* Add total daily energy sensor

* Add test
This commit is contained in:
Otto Winter
2018-11-09 20:27:19 +01:00
committed by GitHub
parent 0ad61f4a95
commit 8203b8fcd3
3 changed files with 42 additions and 0 deletions

View File

@@ -310,10 +310,14 @@ sensor:
name: "HLW8012 Voltage"
power:
name: "HLW8012 Power"
id: hlw8012_power
update_interval: 15s
current_resistor: 0.001 ohm
voltage_divider: 2351
change_mode_every: 16
- platform: total_daily_energy
power_id: hlw8012_power
name: "HLW8012 Total Daily Energy"
- platform: hmc5883l
address: 0x68
field_strength_x: