zigbee2mqtt icon indicating copy to clipboard operation
zigbee2mqtt copied to clipboard

TuYa TS011F_plug_1 | Zigbee2MQTT exposing wrong values

Open b2Homard opened this issue 3 years ago • 11 comments

What happened?

Hello everyone !

As i was trying to setup some simple automation using a smart plug with power measurement, and struggled a lot, I saw something I can’t understand.

I turn ON the fan plugged to the smart plug and Zigbee2MQTT is exposing 33W, which is normal.

I also check manually the measured power using “Dev Console” Tab and read 33W.

I turn OFF the fan and Zigbee2MQTT still exposes 33W, forever. It will only change after I pull some power (e.g. >20W). It will also never go down to 0W even if the fan is OFF or unplugged.

However, if I manually check the power using the “Dev Console” tab, I always have the right value(0W when the fan is OFF and ~33W when the fan is ON). DevConsole Exposes Reporting

What did you expect to happen?

Expose voltage, power and current periodically, as defined in the "Reporting" tab, no matter the load.

How to reproduce it (minimal and precise)

Draw some power through the plug (at least 20W) then stop drawing power. Then draw less power (e.g. a small LED lamp, 6W). Observe that the exposed power (and current) is not actualizing. Manually read the consumed power to compare to the exposed power.

Zigbee2MQTT version

1.30.4

Adapter firmware version

6.10.3.0 build 297

Adapter

Sonoff | Zigbee 3.0 | Dongle Plus-E

Debug log

DebugLog.txt

b2Homard avatar May 08 '23 13:05 b2Homard

Hello, I have the same problem, and according to this thread we need to wait a fix in the next z2m update Issue 17569

alexh3o avatar May 09 '23 11:05 alexh3o

Same here, Zigbee2MQTT stable version 1.30.4:

  • Zigbee Model: TS011F
  • Zigbee Manufacturer: _TZ3000_gvn91tmx

Also tested add-on edge version 1.30.4-dev commit a6bebf1, values go back to 0 but does not seem reliable. E.g. kettle was off for hours, still took a few minutes and toggling the plug off and on a few times in z2m before it got to 0. So seems to run better, but not as before. Will keep monitoring and try to compare to pre-1.30.4.

tjorim avatar May 09 '23 16:05 tjorim

Duplicate of #16709

Koenkk avatar May 09 '23 17:05 Koenkk

I don't think that I expose the same problem in my issue ! Maybe I'm missing something though.

b2Homard avatar May 14 '23 21:05 b2Homard

I don't think that I expose the same problem in my issue ! Maybe I'm missing something though.

True ! This is different problem. I have one week power 650W with empty and turn off plug ! I try delete plug, and repair. Power work normal, first i connect my heater show correct power, then stay in 650W !

sved-SI avatar May 15 '23 16:05 sved-SI

Duplicate of #16709

Different problem. power stuck and won't change for days! ( even if the heater is turned off ) Switch is set to off

sved-SI avatar May 15 '23 16:05 sved-SI

how you check the power using the “Dev Console ?

sved-SI avatar May 15 '23 16:05 sved-SI

Did you already check with the latest dev branch? (https://www.zigbee2mqtt.io/advanced/more/switch-to-dev-branch.html)

Koenkk avatar May 15 '23 17:05 Koenkk

Hello @Koenkk , I don't think that I'm capable of doing such things. I saw that this issue should be solved with the last update thought !

To check the value with the Dev Console : Go to Zigbee2MQTT extension. Click on a device and go in the "Dev Console" Tab. Select "haElectricalMeasurement" in "Cluster" and select "activePower" in "Attribute". Above the green button "Read", a line will be added. Click the "Read" button. This value is always right (for me at least). ReadUsingDevConsole

b2Homard avatar May 20 '23 14:05 b2Homard

@b2Homard the fix will be included in the next release on 1 June.

Koenkk avatar May 21 '23 13:05 Koenkk

Could it be , that the issue is back ? I do have one TS011F_plug_3 which always sends power set to 35W it was working for month. Power cycle does not help .

network-shark avatar Apr 23 '25 18:04 network-shark