azerty9971 / xtend_tuya

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

Another question about usage #2

Closed MarGal79 closed 5 months ago

MarGal79 commented 10 months ago

Hi.

First of all, thank you very much for your work. I appreciate it very much. I used your energy sensor with Utility meter helper to get daily energy consumption. It worked well at first but after a while I have strange results. After a short time after switching on, the energy sensor seems to no longer register consumption (see picture), even though the device is connected to a tuya socket and is working. The device that is connected to the tuya socket often turns on and off (electric heater) and the rieman intergration gives me wrong results. From 02:00 until 06:00 wifi is turned off. What can I do? Please help!

Mario

pic

azerty9971 commented 10 months ago

Hello Mario, Thank you for your kind words!!

The graph that you shared shouldn't look like this at all, it should be going up only (see below) image

Multiple things could cause this:

Also, the way this plugin works is by listening to the add_ele events that are sent by Tyua's cloud, these event contain the consumption between the last event and now, so if your Home Assistant is offline / off and Tuya send's such a message then you won't take it into account and the end result will be wrong (inferior to the actual consumption)

I'm going to try to investigate so that the last sum of consumption is fetched back upon reboot, this could fix your issue

Have a nice day !!

MarGal79 commented 10 months ago

Hi Azerty! Thanks for fast reply. Of course, I understand that graph should go only up, because total consumption can only rise. I didnt have latest version so I updated it now. I will try and send you report. Yes, I do often restart of HA. Setup is correct because I use it on regular tuya.

Thank you for your efforts and work for now and in the future.

Greetings from Croatia

MarGal79 commented 9 months ago

Hi Azerty! Merry Christmas and happy New Year! Since the last time we spoke, your integration is working well for me. I stopped resetting HA. Thank you very much for your help and effort and best wishes!

azerty9971 commented 5 months ago

<3