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

Allow setting the initial mode of HLW8012 sensors (#611)

* Allow setting the initial mode of hlw8012 sensors

* Changes as per code review
This commit is contained in:
Brandon Davidson
2019-06-06 13:44:52 -07:00
committed by Otto Winter
parent e6c16e9981
commit 88ccd60a08
4 changed files with 15 additions and 1 deletions

View File

@@ -347,6 +347,7 @@ sensor:
current_resistor: 0.001 ohm
voltage_divider: 2351
change_mode_every: 16
initial_mode: VOLTAGE
- platform: total_daily_energy
power_id: hlw8012_power
name: "HLW8012 Total Daily Energy"