I want to use the Utility Meter addon for both of my smart plugs I own. They are Xiaomi Mi Smart Plug (Zigbee), and are connected to deCONZ and then integrated with the deCONZ addon. They work fine, show current power use and life time.
I integrated it as shows below, the problem is that the numbers a very wrong. For one plug the consumption is to low, and for the other to high.
I reset all data at 8PM, and let it run for 59 minutes. The server uses ~65W, so it should be an hourly power of ~65Wh (?) and for the *desk * mean is ~120W, so it should be ~120Wh hourly use (or do I misunderstand power calculation completly).
The server power use showed 3W for the past 30 minutes, where the desk plug only increase.
Earlier today, the “desk” used ~30W, but the hourly (daily etc) was way higher then the server power use, eventough it uses ~60W. Sadly I can’t show it now as I reseted it, though I can reproduce it tomorrow evening.
I don’t get how the power calculation is so off, for the server plug, it is way to low, and for the desk it is to high, the config are the same…
Is there something I’m missing?
I tried to use add “unit_of_measurement: W” but that only gives an error messages when checking the config file.
sensor.server_use / sensor.desk_use is the power usages live.
utility_meter:
hourly_energy_server:
source: sensor.server_use
cycle: hourly
daily_energy_server:
source: sensor.server_use
cycle: daily
weekly_energy_server:
source: sensor.server_use
cycle: weekly
monthly_energy_server:
source: sensor.server_use
cycle: monthly
bimonthly_energy_server:
source: sensor.server_use
cycle: bimonthly
quarterly_energy_server:
source: sensor.server_use
cycle: quarterly
yearly_energy_server:
source: sensor.server_use
cycle: yearly
hourly_energy_desk:
source: sensor.desk_use
cycle: hourly
daily_energy_desk:
source: sensor.desk_use
cycle: daily
weekly_energy_desk:
source: sensor.desk_use
cycle: weekly
monthly_energy_desk:
source: sensor.desk_use
cycle: monthly
bimonthly_energy_desk:
source: sensor.desk_use
cycle: bimonthly
quarterly_energy_desk:
source: sensor.desk_use
cycle: quarterly
yearly_energy_desk:
source: sensor.desk_use
cycle: yearly
System information:
version: core-2021.3.4
installation_type: Home Assistant Supervised
dev: false
hassio: true
docker: true
virtualenv: false
python_version: 3.8.7
os_name: Linux
os_version: 4.19.0-14-amd64
arch: x86_64
timezone: UTC
SOLVED
I used the wrong sensor.
If someone have the same problem, that the energy nr do not make sense, you are using the wrong sensor. It should be the sensor that calculats in kWh and is the total energy, not the live view.