Clamp Meter _TZE204_cjbofhxw - energy IS not reporting as Sum
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

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
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') }}"
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
Keeping open
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
Open
How does "sensor" work ? I can't find documentation
Same problem with only one of my two energy metter.
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
I have this device and still the Energy is not adding up.