zigbee2mqtt icon indicating copy to clipboard operation
zigbee2mqtt copied to clipboard

Clamp Meter _TZE204_cjbofhxw - energy IS not reporting as Sum

Open cloudbr34k84 opened this issue 3 years ago • 9 comments

What happened?

Clamp Meter _TZE204_cjbofhxw - energy IS not reporting as Sum. Instead its just reporting when there is energy and not continuously adding it up like other entities for other energy monitoring devices image image

What did you expect to happen?

I expected the energy to be a continuous sum increase

How to reproduce it (minimal and precise)

No response

Zigbee2MQTT version

1.30.2 commit: unknown

Adapter firmware version

20221226

Adapter

Sonoff Coordinator P

Debug log

No response

cloudbr34k84 avatar Mar 29 '23 11:03 cloudbr34k84

i have the same data. it seems that energy means energy consumed since last energy update. in addition, update frequency of energy seems irregular.

to overcome, i configured yaml to add a sensor to measure total energy.

sensor:
  - platform: template
    sensors:
      tuya_powermeter_total_energy:
        friendly_name: "Tuya Powermeter Total Energy"
        unit_of_measurement: "kWh"
        value_template: >-
          {% set current_energy = states('sensor.sensor.0x70ac08fffed04dfd_energy') | float %}
          {% set last_energy = state_attr('sensor.tuya_powermeter_total_energy', 'last_energy') | default(0) | float %}
          {% set total_energy = last_energy + current_energy %}
          {{ total_energy }}
        attribute_templates:
          last_energy: "{{ states('sensor.tuya_powermeter_total_energy') }}"

ayokyun avatar Apr 04 '23 13:04 ayokyun

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days

github-actions[bot] avatar May 05 '23 00:05 github-actions[bot]

Keeping open

cloudbr34k84 avatar May 05 '23 06:05 cloudbr34k84

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days

github-actions[bot] avatar Jun 06 '23 00:06 github-actions[bot]

Open

Alexofhiswalnut avatar Jun 19 '23 19:06 Alexofhiswalnut

How does "sensor" work ? I can't find documentation

seb49 avatar Jul 13 '23 17:07 seb49

Same problem with only one of my two energy metter.

Diegocampy avatar Nov 24 '23 10:11 Diegocampy

Same problem with only one of my two energy metter.

The new version is probably better based on the comments

https://fr.aliexpress.com/item/1005005881727281.html

Alexofhiswalnut avatar Nov 24 '23 10:11 Alexofhiswalnut

I have this device and still the Energy is not adding up.

unwiredtech avatar Aug 13 '24 16:08 unwiredtech