Koenkk / zigbee2mqtt

Zigbee 🐝 to MQTT bridge 🌉, get rid of your proprietary Zigbee bridges 🔨
https://www.zigbee2mqtt.io
GNU General Public License v3.0
11.94k stars 1.66k forks source link

BlitzWolf (Tuya TS0121_plug) sockets problem #6713

Closed opirob64 closed 3 years ago

opirob64 commented 3 years ago

with the update to the latest version, my BlitzWolf sockets (identify Tuya TS0121_plug) no longer detect electricity consumption. Any suggestions?

Multipage commented 3 years ago

What do you mean with 'latest version'? Dev or master? With version 1.18.1-1 ( master) i have no problem with exactly the same Blitzwolf sockets

ASNNetworks commented 3 years ago

Running 1.18.1-2 stable and no issues here with the same socket. I have 4 of these (EU model), all working without issues, paired with Conbee II.

Also had no issues on 1.18.1-1.

Try deleting the device and pairing again.

m0wlheld commented 3 years ago

Also, no issues using Blitzwolf SHP-13, Z2M 1.18.1 and Home Assistant 2021.3.4.

Mr-Groch commented 3 years ago

I'm also having problems since update to 1.18.1 (from 1.17-dev). I'm seeing that powerand currentare always 0. voltageand energyare working as before.

m0wlheld commented 3 years ago

grafik

Zigbee2MQTT 1.18.1, HA 2021.3.4, Blitzwolf SHP-13 via CC2652RB coordinator device.

ASNNetworks commented 3 years ago

If you're having issues, you should post all information of the specific device. It's possible there are different model numbers and manufacturers that Blitzwolf uses (happens alot with Tuya stuff). Otherwise it will be impossible to solve this, and chances are it will break the devices for people that currently have no issues (like other users en myself).

Also write down what coordinator you use, so they can investigate this. (Basically follow the template and provide all information instead of clearing the whole template and only writing about your issue).

Mr-Groch commented 3 years ago

I have 4 of them, and all have the same problem - only energy is updating. That's why I haven't noticed it before (HA utility_meters were working). Just when I saw this issue, I've checked it...

I'm sure that about week ago it was working (I have been installing one of them in backyard and checked then all measurements.

What changed in my configuration?

Maybe that Ikea devices are responsible for that... I saw here similar issue...

I've tried to remove one of Blitzwolf SHP-13 from my newtork, then turn it off from power, allow join, and repaired it - doesn;t help... Still no power and current... voltage also disapeared after repairing... Only energy working... Lucky - that is what I need most :)

This is my env:

Zigbee2MQTT version: 1.18.1 commit: 1.18.1 Coordinator type: zStack3x0 (zzh!) Coordinator revision: 20210120

All Blitzwolf SHP-13 are the same - labeled Blitzwolf SHP-13, and Z2M detecting it as:

Device type
Router
Zigbee model
TS0121
Description
10A UK or 16A EU smart plug
Support status
Supported

IEEE address
0x588e81fffeff5d84
Network address
0xEC1D
Vendor
TuYa
Model
TS0121_plug

This is device record from database.db:

{"id":33,"type":"Router","ieeeAddr":"0x588e81fffeff5d84","nwkAddr":60445,"manufId":4098,"manufName":"_TZ3000_g5xawfcq","powerSource":"Mains (single phase)","modelId":"TS0121","epList":[1],"endpoints":{"1":{"profId":260,"epId":1,"devId":81,"inClusterList":[0,4,5,6,1794,2820],"outClusterList":[25,10],"clusters":{"genBasic":{"attributes":{"modelId":"TS0121","manufacturerName":"_TZ3000_g5xawfcq","powerSource":1,"zclVersion":3,"appVersion":65,"stackVersion":0,"hwVersion":1,"dateCode":""}},"seMetering":{"attributes":{"divisor":100,"multiplier":1}},"haElectricalMeasurement":{"attributes":{"acVoltageMultiplier":1,"acVoltageDivisor":1,"acCurrentMultiplier":1,"acCurrentDivisor":1000,"acPowerMultiplier":1,"acPowerDivisor":1}}},"binds":[{"cluster":6,"type":"endpoint","deviceIeeeAddress":"0x00124b00215fff6e","endpointID":1},{"cluster":2820,"type":"endpoint","deviceIeeeAddress":"0x00124b00215fff6e","endpointID":1}],"configuredReportings":[],"meta":{}}},"appVersion":65,"stackVersion":0,"hwVersion":1,"dateCode":"","zclVersion":3,"interviewCompleted":true,"meta":{"configured":1},"lastSeen":1615988372679}

Mr-Groch commented 3 years ago

I've just restarted zigbee2mqtt addon (without changing anything!) and electrical measurements are back!

image

My last restart was when updating addon to 1.18.1-2 few days ago...

luismalddonado commented 3 years ago

I have the same problem: MQTT publish: topic 'zigbee2mqtt/Lavadora', payload '{"current":0,"linkquality":55,"power":0,"state":"ON","voltage":237.54}' Info MQTT publish: topic 'zigbee2mqtt/Secadora', payload '{"current":0,"linkquality":31,"power":0,"state":"ON","voltage":236}'

Voltage is fine, but power and current disappeared.

My device: https://www.zigbee2mqtt.io/devices/HS2SK.html#heiman-hs2sk

I am in the master branch: pi@raspberrypi:/opt/zigbee2mqtt $ git branch

ASNNetworks commented 3 years ago

I have the same problem: MQTT publish: topic 'zigbee2mqtt/Lavadora', payload '{"current":0,"linkquality":55,"power":0,"state":"ON","voltage":237.54}' Info MQTT publish: topic 'zigbee2mqtt/Secadora', payload '{"current":0,"linkquality":31,"power":0,"state":"ON","voltage":236}'

Voltage is fine, but power and current disappeared.

My device: https://www.zigbee2mqtt.io/devices/HS2SK.html#heiman-hs2sk

I am in the master branch: pi@raspberrypi:/opt/zigbee2mqtt $ git branch

  • master pi@raspberrypi:/opt/zigbee2mqtt $ git pull Already up to date.

This is a completely different device. You should create a new ticket for that one. Chances are your problem will otherwise be burried and not solved soon.

GSzabados commented 3 years ago

@m0wlheld, @ASNNetworks could you please try to disable the LED on the adapter from the Frontend. (Settings/Serial/Check box checked at the bottom/Submit) and then restart Z2M from the Frontend. (Or enable the Last seen option from the Frontend and restart Z2M from the Frontend.)

That's the two things what I have done and those values stayed on the last reading, which was 0 and hasn't updated since.

But when I restart Z2M from Supervisor, as the Frontend Settings are not persistent, the LED comes back on and the Last seen option is not checked anymore.

My guess, the restart from the Frontend causes the values not to update.

Just give it a try to see can you reproduce the issue.

(I am using a CC2531 adapter and having the same issue.)

Mr-Groch commented 3 years ago

@m0wlheld, @ASNNetworks could you please try to disable the LED on the adapter from the Frontend. (Settings/Serial/Check box checked at the bottom/Submit) and then restart Z2M from the Frontend. (Or enable the Last seen option from the Frontend and restart Z2M from the Frontend.)

That's the two things what I have done and those values stayed on the last reading, which was 0 and hasn't updated since.

But when I restart Z2M from Supervisor, as the Frontend Settings are not persistent, the LED comes back on and the Last seen option is not checked anymore.

My guess, the restart from the Frontend causes the values not to update.

Just give it a try to see can you reproduce the issue.

(I am using a CC2531 adapter and having the same issue.)

Yes, I can confirm that electrical measurements arre gone after restarting Z2M from frontend, and the're back after restarting whole adddon.

GSzabados commented 3 years ago

Then can someone advise how this issue can be tracked down further? What difference does the restart from Frontend makes? And how to pinpoint it to this issue...

luismalddonado commented 3 years ago

I have the same problem: MQTT publish: topic 'zigbee2mqtt/Lavadora', payload '{"current":0,"linkquality":55,"power":0,"state":"ON","voltage":237.54}' Info MQTT publish: topic 'zigbee2mqtt/Secadora', payload '{"current":0,"linkquality":31,"power":0,"state":"ON","voltage":236}' Voltage is fine, but power and current disappeared. My device: https://www.zigbee2mqtt.io/devices/HS2SK.html#heiman-hs2sk I am in the master branch: pi@raspberrypi:/opt/zigbee2mqtt $ git branch

  • master pi@raspberrypi:/opt/zigbee2mqtt $ git pull Already up to date.

This is a completely different device. You should create a new ticket for that one. Chances are your problem will otherwise be burried and not solved soon.

Thanks. I fixed the problem rejoining the device.

GSzabados commented 3 years ago

I've just updated to 1.18.2 and if I restart Z2M from the frontend the plug stops reporting voltage, current and power, so the issue still exists. If the whole addon is restarted from the Supervisor menu, it starts to work again.

@Koenkk, can you give some hint how to track down this issue?

It feels like that it starts to use some different Herdman or the binding is broken. But I am just guessing.

@m0wlheld, @ASNNetworks have you tried to reproduce the issue on your setup?

Koenkk commented 3 years ago

@GSzabados can you check if this is fixed in the latest dev branch?

Changes will be available in the dev branch in a few hours from now. (https://www.zigbee2mqtt.io/how_tos/how-to-switch-to-dev-branch.html)

GSzabados commented 3 years ago

@GSzabados can you check if this is fixed in the latest dev branch?

Changes will be available in the dev branch in a few hours from now. (https://www.zigbee2mqtt.io/how_tos/how-to-switch-to-dev-branch.html)

Yes, I will do, but probably only tomorrow morning, tonight I am a bit busy (cooking and helping my wife to put the children to the bed), and the plug is next to the bedroom with a fan heater connected to it, so it is a bit noisy.

How many devices were affected? I've just started to look at the herdsman's details in the device.js. My first thought was that it for some reason not handling the onEvent correctly.

GSzabados commented 3 years ago

@GSzabados can you check if this is fixed in the latest dev branch?

@Koenkk

I've just updated to the edge version, and have confirmed that it was using the latest commit.

With the change what you have implemented after restarting Zigbee2MQTT from the frontend the device reports correctly voltage, current and power as expected.

And I was happy to see as well that the typo in Settings(specific), "Get possible device specific praemeters" has been fixed as well to "parameters".

I think this issue can be closed then.

github-actions[bot] commented 3 years ago

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

faeton commented 2 years ago

Doesn't seem to be fixed ~ same topic developing here https://github.com/Koenkk/zigbee2mqtt/issues/7272