Hi all,
i’ve got multiple zigbee 3.0 smart plugs with energy consumption (current usage & total usage).
I’ve added the configuration to get a daily/monthly/yearly sensor for the total usage but i can’t get it to work for those smart plugs. I’ve tried adding some data to one of the sensors via the utility_meter.calibrate service , but that value then does not grow further.
i have got some other tuya plugs where i calculated the kwh via the integration platform and then do the same for daily/… sensors and those work
working config:
Smart plug sensors:
- platform: integration
source: sensor.wasmachine_stopcontact_current_usage
name: wasmachine_energy_spent
method: left
unit_prefix: k
round: 2
utility meter:
wasmachine_daily:
source: sensor.wasmachine_energy_spent
cycle: daily
wasmachine_weekly:
source: sensor.wasmachine_energy_spent
cycle: weekly
wasmachine_monthly:
source: sensor.wasmachine_energy_spent
cycle: monthly
wasmachine_yearly:
source: sensor.wasmachine_energy_spent
cycle: yearly
customize.yaml:
sensor.wasmachine_daily:
last_reset: '1970-01-01T00:00:00+00:00'
device_class: energy
state_class: measurement
sensor.wasmachine_weekly:
last_reset: '1970-01-01T00:00:00+00:00'
device_class: energy
state_class: measurement
sensor.wasmachine_monthly:
last_reset: '1970-01-01T00:00:00+00:00'
device_class: energy
state_class: measurement
sensor.wasmachine_yearly:
last_reset: '1970-01-01T00:00:00+00:00'
device_class: energy
state_class: measurement
Not-working config:
Smart plug sensors:
current usage in W: sensor.smart_plug_3d_printer_electrical_measurement
total usage in kwh: sensor.smart_plug_3d_printer_smartenergy_metering_summation_delivered
Utility meter config:
vertex_printer_daily:
source: sensor.smart_plug_3d_printer_smartenergy_metering_summation_delivered
cycle: daily
vertex_printer_weekly:
source: sensor.smart_plug_3d_printer_smartenergy_metering_summation_delivered
cycle: weekly
vertex_printer_monthly:
source: sensor.smart_plug_3d_printer_smartenergy_metering_summation_delivered
cycle: monthly
vertex_printer_yearly:
source: sensor.smart_plug_3d_printer_smartenergy_metering_summation_delivered
cycle: yearly
customize.yaml
sensor.vertex_printer_daily:
last_reset: '2022-01-01T00:00:00+00:00'
device_class: energy
state_class: measurement
sensor.vertex_printer_weekly:
last_reset: '2022-01-01T00:00:00+00:00'
device_class: energy
state_class: measurement
sensor.vertex_printer_monthly:
last_reset: '2022-01-01T00:00:00+00:00'
device_class: energy
state_class: measurement
sensor.vertex_printer_yearly:
last_reset: '2022-01-01T00:00:00+00:00'
device_class: energy
state_class: measurement
here you see that the Washing machine sensors do get feeded data, but the 3d printer ones stay at 0 kwh while the total usage does grow.
Am I missing something or should i just ignore that default total usage sensor and make my own with the integration platform as with the tuya one.
thanks
Joost
1 post - 1 participant