azerty9971 / xtend_tuya

eXtend Tuya's integration
GNU General Public License v3.0
30 stars 4 forks source link

not correct consumption from ZBP-1G (zigbee with power meter) #32

Open Djohnypalace opened 6 days ago

Djohnypalace commented 6 days ago

not correct read consumption photo_2024-06-29_10-42-45 Записати

azerty9971 commented 6 days ago

Hello, Can you send me the diagnostic information please? In your device page, click the download diagnostic ;).

Have a nice day, Azerty

Djohnypalace commented 6 days ago

tuya-70d8e2b956c738ea68bce5912def0f51-Вітальня ближня-09389c55cad15cd99f9ed00c511b624d.json thank you!

azerty9971 commented 5 days ago

Hello, Can you update to the latest release of Xtend_tuya and let me know if that fixed it for you?

Thanks :) Azerty

Djohnypalace commented 5 days ago

3300624

home-assistant_xtend_tuya_2024-06-30T12-55-38.335Z.log

azerty9971 commented 4 days ago

Disregard my other comments, I think I've figured out what is happening better.

Wait a few minutes, there will be a release available through HACS :).

Have a nice day, Azerty

Djohnypalace commented 4 days ago

finally restored. After the deleted messages, I deleted the CA along with the VM and reinstalled it, then restored the backup and updated the integration and everything worked. Now I'm looking for a way to clear history sensor.spalnia_blizhnia_consumption and other zigbee (It’s good that out of 20 I have replaced only 2 wifi on zigbee. so far, 18 wifi are waiting for replacement )

azerty9971 commented 4 days ago

Normally the device values will reset automatically on next cloud push.

Just wait a couple of hours and it should be good ;).

Can you confirm that all is working as expected?

Have a nice day, Azerty

Djohnypalace commented 4 days ago

Normally the device values will reset automatically on next cloud push.

Just wait a couple of hours and it should be good ;).

I hope Can you confirm that all is working as expected? of course, as soon as the indicators change, I will write - good or bad

Have a nice day, Azerty a quiet and peaceful day Alexey

Djohnypalace commented 4 days ago

don't work 300624 0.39 kWh in real

azerty9971 commented 4 days ago

Could it be that the unit is not correct? In what unit is your sensor?

Can you provide me with a 2 diagnostics for the same power meter with 1h difference between them please?

Sorry for the headache :'(.

Thanks in advance, Azerty

Djohnypalace commented 4 days ago

maybe I was wrong. I restored from a backup and did not update the version. I deleted it, it seemed like I cleared the history and.... turned off the light. I'm from Ukraine. As soon as the lights are turned on, I will send new diagnostics by installing the latest version from Github

azerty9971 commented 4 days ago

that could be it indeed ;)

What I need to see is if the consumption graph keeps growing or if it goes up and down with the new version.

Because ADD_ELE is supposed to be the delta energy between 2 consumptions (meaning, if AT 1PM you had spent 10kWh and at 2PM you were at 12kWH then ADD_ELE should be 2kWh). But it looks like your model is sending the total consumption every time so I had to change the logic so that we don't add up each cloud update.

I hope you are not too impacted by the war and pray that everything is fine for you and your loved ones! Azerty

Djohnypalace commented 4 days ago

home-assistant_xtend_tuya_2024-06-30T12-55-38.335Z.log

Djohnypalace commented 4 days ago

300624-1 xtend_tuya-70ac4853c51f275cb823b9343be186ec-Спальня ближня-068a9d9a0b1956723e0ca1a4ea3f303f.json photo_2024-06-30_23-20-29 tuya-70d8e2b956c738ea68bce5912def0f51-Вітальня ближня-09389c55cad15cd99f9ed00c511b624d.json

Djohnypalace commented 4 days ago

photo_2024-06-30_23-24-12 xtend_tuya-70ac4853c51f275cb823b9343be186ec-Вітальня ближня-09389c55cad15cd99f9ed00c511b624d (1).json Записати tuya-70d8e2b956c738ea68bce5912def0f51-Вітальня ближня-09389c55cad15cd99f9ed00c511b624d.json

Djohnypalace commented 4 days ago

If I can't sleep I'll do it again in an hour

Djohnypalace commented 4 days ago

tuya-70d8e2b956c738ea68bce5912def0f51-Вітальня ближня-09389c55cad15cd99f9ed00c511b624d.json tuya-70d8e2b956c738ea68bce5912def0f51-Спальня ближня-068a9d9a0b1956723e0ca1a4ea3f303f (1).json tuya-70d8e2b956c738ea68bce5912def0f51-Спальня ближня-068a9d9a0b1956723e0ca1a4ea3f303f.json xtend_tuya-70ac4853c51f275cb823b9343be186ec-Вітальня ближня-09389c55cad15cd99f9ed00c511b624d.json xtend_tuya-70ac4853c51f275cb823b9343be186ec-Спальня ближня-068a9d9a0b1956723e0ca1a4ea3f303f (1).json xtend_tuya-70ac4853c51f275cb823b9343be186ec-Спальня ближня-068a9d9a0b1956723e0ca1a4ea3f303f.json

azerty9971 commented 4 days ago

This looks better already, can you confirm that the consumption graphs are only going up since the upgrade? Normally, the value should match what you have in the Tuya app, can you confirm?

Djohnypalace commented 4 days ago

photo_2024-07-01_00-53-29

photo_2024-07-01_00-34-32 1 2

azerty9971 commented 4 days ago

I think this is now correct, 2.09kWh looks like it's matching the reported value in your app.

Maybe try to reset the consumption in your app or give it a few days and see if the values are still aligned (they should be)

Djohnypalace commented 4 days ago

,I hope the problem is completely resolved. Will you close this topic as resolved or will I? Thanks again!

azerty9971 commented 4 days ago

Let's wait a few days and verify that all is indeed working as expected ;)

BalooDK commented 2 days ago

My consumption numbers are way off, on this release. Most of my switches shows extremely low consumption, and one shows a crazy high number

azerty9971 commented 2 days ago

strange, Can you show me the history graphs of the low consumption devices? And also show me the history graph of the crazy high one? Together with the diagnostic data for each of these devices so that I can get a clear picture of what is happening?

Thanks :)

BalooDK commented 1 day ago

I had the manually installed version 1.0 until yesterday. I uninstalled that version completely, and installed the HACS version 1.2.6.

This is what I got on TV Soveværelse

As you can see, I used 5 kWh in my whole house today. TV Soveværelse shows 6 kWh. Tuya app shows 0.13 kWH

IMG_0465 IMG_0467 IMG_0466 IMG_0468

tuya-8bc965e54273aa45c7fd0f7fe8ac3f35-TV Soveværelse-55dfa1cf96fd63367a55898f4fb29e7a.json

xtend_tuya-27ffcd17e4f5aa8c82799f44c9b9b5b9-TV Soveværelse-55dfa1cf96fd63367a55898f4fb29e7a.json

Don't know if this is what you asked for ;)

BalooDK commented 1 day ago

This is one with too low consumption

IMG_0469 IMG_0470

xtend_tuya-27ffcd17e4f5aa8c82799f44c9b9b5b9-Teknik-76faec089c3035cd94418161c6cf2373.json

tuya-8bc965e54273aa45c7fd0f7fe8ac3f35-Teknik-76faec089c3035cd94418161c6cf2373.json

azerty9971 commented 1 day ago

That's really strange.

For the crazy high one TV Soveværelse can you verify in the history graph if by any chance the difference between the last 2 steps equates to your total consumption?

I'm thinking your device might be sending the full day consumption each time and not the delta energy that my devices are sending...

Sorry for the inconvenience

BalooDK commented 1 day ago

Seems like you are correct. The last step (0.57 kWh) equals the total of the device

BalooDK commented 1 day ago

It's not even the full day. It's the device total

BalooDK commented 1 day ago

I just verified that it is the device total. The Robotstøvsuger is connected to the same brand of Zigbee plug, and the last step of the graph also matches the device total.

The plugs with thee low consumption measurement are wifi plugs, but still the same brand as the Zigbee plugs

Edit: Not same brand ;)