Hi, I have various Sonoff POW flashed with the below code
- platform: hlw8012
update_interval: 2s
sel_pin: 5
cf_pin: 14
cf1_pin: 13
current:
name: "Dining room AC Current"
voltage:
name: "Dining room AC Voltage"
power:
name: "Dining room AC Power"
id: dining_room_ac_power_plug_power
filters:
# Multiplication factor from W to kW is 0.001
# - multiply: 0.001
unit_of_measurement: W
on_value_range:
- above: 4.0
then:
- light.turn_on: led
- below: 3.0
then:
- light.turn_off: led
- platform: total_daily_energy
name: "Dining room AC Total Daily Energy"
power_id: dining_room_ac_power_plug_power
accuracy_decimals: 3
unit_of_measurement: kWh
filters:
- multiply: 0.001
Is the sensor
sensor.dining_room_ac_total_daily_energy
the correct sensor to put in Utility meter?
utility_meter:
energy:
source: sensor.dining_room_ac_total_daily_energy
cycle: daily