dresden-elektronik / deconz-rest-plugin

deCONZ REST-API plugin to control ZigBee devices
BSD 3-Clause "New" or "Revised" License
1.9k stars 498 forks source link

HEIMAN BW-SHP13 look a like is not showing powerconsumption #3788

Closed canedje closed 2 years ago

canedje commented 3 years ago

Device

Screenshots

image

image

image

image

image

image

image

image

image

I did order in the past from Banggood a Heiman Blitzwolf BW-SPH13 This worked good. I now did order again two devices. These ones are not showing power messaurement. If I look in the Deconz GUI I do see there is not Heiman as Vendor but:

image

If I look at the cluster infor there is power Measurement (See pictures above) In HA there is no power measurement My early one (BlitzWolf 1) has:

image width=1442&height=373 22B68522-5F96-4884-A334-31252EA2D353

Mimiix commented 3 years ago

@canedje In ha, it creates a Consumption and Power entity. Mostly named sensor.power_22 or something like that.

canedje commented 3 years ago

No it isn't EDIT: I did remove and repair the devices. Now it is showing indeed the power entity. I 'm only not possible to repair both of the devices again One is working oke now The other I can not pair anymore It is showing up in VNC but not with a name. I tried several times to repair, but without any luck. Any Advice? image It only creates this node as above in VNC. No device in the Phoscon app

If I look into the Docker Log I do see this message: image

Then after restarting Deconz Docker, there are no light visible anymore in the app. I do need to restore a backup to get my lights back???

Diondk commented 3 years ago

I have the same issue as described above. i received 2 blitzwolfs but 1 of them isnt providing the power meter sensor in home assistant.

When i check the log files i also have this error:

09:31:08:227 Tuya debug 7 : Missing manufacture name for 0x588e81fffeff5d5f 09:31:08:227 DB SELECT manufacturername FROM nodes WHERE mac LIKE '58:8e:81:ff:fe:ff:5d:5f%' COLLATE NOCASE: _TZ3000_g5xawfcq

Already tried repairing the device but no luck.

image

caro7372 commented 3 years ago

No it isn't EDIT: I did remove and repair the devices. Now it is showing indeed the power entity. I 'm only not possible to repair both of the devices again One is working oke now The other I can not pair anymore It is showing up in VNC but not with a name. I tried several times to repair, but without any luck. Any Advice? image It only creates this node as above in VNC. No device in the Phoscon app

If I look into the Docker Log I do see this message: image

Then after restarting Deconz Docker, there are no light visible anymore in the app. I do need to restore a backup to get my lights back???

How did you manage to repair one of the plugs?

J05HI commented 3 years ago

I have the same problem. Ordered one again with the name "_TZ3000_g5xawfcq" now. Has the manufacturer changed something?

jimz011 commented 3 years ago

Same problem here, received 2 today and only on/off is showing. I see people talking about repairing, though how can we do that?

J05HI commented 3 years ago

Same problem here, received 2 today and only on/off is showing. I see people talking about repairing, though how can we do that?

I already removed it and repaired several times. This doesn't solve the problem. I repaired an old one and have the same problem for it too. Looks like there is a bug in the latest version.

minke890 commented 3 years ago

I have the same issue with 3 newly ordered BW-SPH13's. Three 'older' ones work including power and consumption. Repairing does not work. No idea how to repair them, but apparently this does not work.

Smanar commented 3 years ago

Someone that have a working and a not working one can compare the cluster list to check if they have not a difference somewhere ?

J05HI commented 3 years ago

@Smanar The only difference I can see is the Application Version and Manufacturer Name.

Old working: image

New not working: image

Smanar commented 3 years ago

It s not a small change ^^. Both create the sensor device ? (with consumption) ? If not can you give me the manufacture number (in node information) and the 6 first character in MAC adress.

For information, the working one natively use

    { VENDOR_NONE, "TS0121", silabs3MacPrefix }, // Tuya/Blitzwolf smart plug
    { VENDOR_EMBER, "TS0121", silabs3MacPrefix }, // Tuya/Blitzwolf smart plug

VENDOR_NONE = 0x0000 VENDOR_EMBER = 0x1002 silabs3MacPrefix = 0xec1bbd......

In reality the white list is more permissive, but the one you have can have an impact on detection. It work too withemberMacPrefix, konkeMacPrefix, silabs5MacPrefix, silabs7MacPrefix.

If both create the sensor entry, forget my previous comments, and pls check for cluster list.

luchtenburger commented 3 years ago

I have similar issues with my two BW-SHP13 plugs, purchased from Banggood. First I've used the deConz addon for the connection in HA. For one plug (Plug 2) I had both power and engergy data, for the other plug (Plug 3), I had no sensor data (only On and Off switch).

I've removed the deConz addon and installed the ZHA integration. Now I have the power reading for both plugs and no energy sensor (same for both plugs)

This is the data I have in the ZHA integration: image

The energy sensor is created, but the data is unknown: image

Mimiix commented 3 years ago

@luchtenburger As this is about zha, it doesn't add much here. Only the ID I guess. The rest is irrelevant. @Smanar, is this a new version?

LodewijkSioen commented 3 years ago

This is what happened to me with the new version (TZ3000_g5xawfcq). I paired the plugs in Phoscon and gave them a new name. They appeared in Home Assistant with the new name, but without power sensors. After a while the power sensors appeared in Home Assistant, but with random names. The names of the devices then also reverted back to a random name in Home Assistant. Phoscon HomeAssistant What other information can I give?

Mimiix commented 3 years ago

I've asked Manuel to reply here. See what goes. I understand that there might be something wrong here.

userMak commented 3 years ago

This is what happened to me with the new version (TZ3000_g5xawfcq). I paired the plugs in Phoscon and gave them a new name. They appeared in Home Assistant with the new name, but without power sensors. After a while the power sensors appeared in Home Assistant, but with random names. The names of the devices then also reverted back to a random name in Home Assistant. Phoscon HomeAssistant What other information can I give?

I have exactly the same problem.

jimz011 commented 3 years ago

Funny how so many of you have power readings at all. I have repaired my devices a bunch of times and even let it run for a few days. No power sensor at all in Home Assistant.

I see people talking about the name not corresponding though I believe that is the normal behavior since my other blitwolfs (the ones that do show power consumption) also have random names. Though they are shown in the device list (when you click on devices in HA you can see which sensors are associated with that device).

The ones that don't work (the ones with the same serial as the ones posted here) do not show any power consumption at all.

I really wonder how you guys were able to get power consumption readings at all.

jimz011 commented 3 years ago

Not working:

Screenshot_20210118-124111_Home Assistant.jpg

Working: Screenshot_20210118-124133_Home Assistant.jpg

userMak commented 3 years ago

Funny how so many of you have power readings at all. I have repaired my devices a bunch of times and even let it run for a few days. No power sensor at all in Home Assistant.

I see people talking about the name not corresponding though I believe that is the normal behavior since my other blitwolfs (the ones that do show power consumption) also have random names. Though they are shown in the device list (when you click on devices in HA you can see which sensors are associated with that device).

The ones that don't work (the ones with the same serial as the ones posted here) do not show any power consumption at all.

I really wonder how you guys were able to get power consumption readings at all.

It is very strange. I bought 4 plugs from the same shop. 3 of them are working (with power consumption etc) and one of them it is not.

LodewijkSioen commented 3 years ago

One extra thing: I can turn the plug on/off from the Phoscon UI, but using the Switch Entity from Home Assistant doesn't work. The toggle reflects the current state of the plug, but using it as a switch does nothing. Using the Deconz group as a Switch in Home Assistant works though.

J05HI commented 3 years ago

@Smanar I've reset the plug to the factory defaults through deCONZ. Afterwards I've repaired the device. After reloading the integration in Home Assistant it shows the power and consumption and everything works as it should. Where's the key problem here?

userMak commented 3 years ago

@Smanar I've reset the plug to the factory defaults through deCONZ. Afterwards I've repaired the device. After reloading the integration in Home Assistant it shows the power and consumption and everything works as it should. Where's the key problem here?

How did you reset the plug through Deconz please?

Mimiix commented 3 years ago

@userMak Please read the manual for that.

On a moderation note: Please don't clutter the issue with #metoo or #howdoi questions.

@Smanar @manup @SwoopX Is this a issue of the device (firmware) or something we can fix. Either way, we need a way forward.

manup commented 3 years ago

We put the devices and a bunch of other Tuya stuff on the order list, hard to tell what's actually going on otherwise.

https://de.banggood.com/BlitzWolf-BW-SHP13-Zigbee-3_0-Smart-WIFI-Socket-16A-EU-Plug-Electricity-Metering-APP-Remote-Controller-Timer-Work-with-Amazon-Alexa-Google-Home-p-1679992.html?cur_warehouse=CN&rmmds=search

They seem not to be available on Amazon :/

up2datecyborg commented 3 years ago

Hi, I have exactly the same problem, but I'll explain what happened in my case:

Another plug I wanted to migrate worked succesfully.

I bought 18 more SHP13 plugs, and when pairing them for the first time, I don't get any issue with them. So I don't know if it has something to do with the fact that it was already paired once...

I tried to repair it more than 20 times, I tried what @J05HI said about factory reset through deconz, but no luck with this plug. I also tried to backup and restore conbee config via phoscon web page, but no luck neither.

If you need any useful info calling the API, or screenshot of deconz, I'd be pleased to help to resolve this problem.

TheBisk commented 3 years ago

image image i see that in deconz app the state is syncronized while in home assistant the state is off but the switch it is on. Why? I cannot control the switch via home assistant only via deconz...any fix? thanks

Mimiix commented 3 years ago

@TheBisk The same goes for you https://github.com/dresden-elektronik/deconz-rest-plugin/issues/3788#issuecomment-762782418

I'll lock this issue until @manup confirms / fixes it. Please note that this is not permanent, but as long as there's no progress new posts only clutter the issue.

manup commented 3 years ago

Related PR https://github.com/dresden-elektronik/deconz-rest-plugin/pull/4448

Mimiix commented 3 years ago

As there was a fix included in 2.10.1, this is reopened for any feedback on it. Please note that you need to remove the device (using the restapi/Phoscon) and re-add it after updating to the new version

marithpl commented 3 years ago

I connected 2 smart plugs Blitzwolf BW-SHP13 to Deconz. Unfortunately without power consumption in Home Assistant.

Device: Blitzwolf BW-SHP13 Phoscon App: Vendor_TZ3000_g5xawfcq

Host system: NAS Running method: Marthoc Docker container Firmware version: 26660700 deCONZ version: 2.10.02 / 23.12.2020 Device: ConBee II

marithpl commented 3 years ago

@manup Changes will be released in 2.10.05?

Mimiix commented 3 years ago

No clue what he did there. I told him while we were on the phone πŸ˜‚. He didn't know either.

It has his attention and he is picking the device up today at work. It won't come in 2.10.5 (as that would never come). Next beta will be 2.11.0. I make sure he does a fix if needed :)

marithpl commented 3 years ago

I will appreciate that :)

Pedder007 commented 3 years ago

Hi all, me too πŸ‘ I was struggeling now over days with that issue. Also having the device firstly paired to my dev environment successfully, incl. all measurements, and then, when switching it to my prod enviroment, no more measurement any longer at all. It really runs me crazy until I found the related threads here. Just updated to 2.10.04 but it also didn't bring the solution, but then I read to the end here ;-) ... I will wait then :-)

manup commented 3 years ago

Hey all, of course I forgot to take the device with me when I was in the company :facepalm: so will test during the week.

The above changes are where already part of v2.10.1-beta and readings should be done as long as the ZHAConsumption and ZHAPower sensors are created and returned in the /sensors REST-API.

From my database I can see that there were values queried from the device here is the last state:

ModelId: _TZ3000_g5xawfcq

ZHAConsumption : 60:a4:23:ff:fe:5e:2a:2d-01-0702
{
    "consumption": 130,
    "lastupdated": "2021-02-20T12:49:39.524"
}

ZHAPower :  60:a4:23:ff:fe:5e:2a:2d-01-0b04
{
    "current": 0,
    "lastupdated": "2021-02-20T12:50:12.158",
    "power": 0,
    "voltage": 232
}

I've noticed that the MAC address prefix looks different than the above not sure if it's relevant :thinking:

SebLz commented 3 years ago

Same problem here, received 2 today and only on/off is showing. I see people talking about repairing, though how can we do that?

By "repair" I assume people mean "pair again", so by pressing the SHP13 on/off button for a few seconds to make it join the zigbee network again. This also confused me.

I also have the same issue, tried to delete (with reset param in deconz rest API) device, pair again, restart deconz / hassio and it still doesn't show power consumption (but I do get the readings in deconz). The funny thing is that the plug that is not working anymore, used to work in older deconz/HA versions. I have another SHP13 with exactly the same Manufactureur Name, ZCL & application versions that has no problem at all.

Mimiix commented 3 years ago

Can you provide screenshots of both basic clusters?

SebLz commented 3 years ago

Here they are ("prise deshumidificateur" has no metering in HA, "prise desktopseb" has): shp13-1 shp13-2

Pedder007 commented 3 years ago

The problem at least only occures, when one is trying to pair the same plug the second time. From then on, the sensors seems not any longer beeing discovered by Phoscon. It then only is discovered as a simple light further more, regardless you go to another environment (ConBee stick / Phoscon / deCONZ). Having this issue since trying to migrate a plug from my dev environment to my prod environment (completely seperated Raspi setup with own ConBee II stick). Moving back the plug to dev also does not work any longer, resp. only as switch but w/o all measurements, resp. no discovery as sensor. Took now a new plug, directly connected it to my prod environment and it works there - for sure will not move it or disconnect from there, unless this issue is not solved πŸ˜…

SwoopX commented 3 years ago

@SebLz Can you please also provide the screenshots for the node info panel for both devices?

SebLz commented 3 years ago

image image

Mimiix commented 3 years ago

@SwoopX notice the Mac prefix?

marithpl commented 3 years ago

No clue what he did there. I told him while we were on the phone πŸ˜‚. He didn't know either.

It has his attention and he is picking the device up today at work. It won't come in 2.10.5 (as that would never come). Next beta will be 2.11.0. I make sure he does a fix if needed :)

Do you know when 2.11.0 will release?

Finne75 commented 3 years ago

Hello, speaking about MAC prefixes - I have one plug where metering works (paired that with 2.9.3 already) , and one without (paired that today with 2.10.4). They seem to have the same prefix. I will tinker a bit more with the new one - until now, I did the usual delete/re-pair cycle, reading of descriptors, without success.

The one with metering:

image

The one without:

image

manup commented 3 years ago

While currently testing the device I've noticed, that the sensor resources for power measurement are only created when the device is joined via sensor search. Therefore in the case these are missing, start search for sensors and power cycle the device (doesn't need to be reset).

Finne75 commented 3 years ago

@manup that worked, thank you!

marithpl commented 3 years ago

While currently testing the device I've noticed, that the sensor resources for power measurement are only created when the device is joined via sensor search. Therefore in the case these are missing, start search for sensors and power cycle the device (doesn't need to be reset).

It doesn’t work for me. But maybe I made something wrong. I tried 2 ways: 1) Start looking for sensor and click turn on/off button on device a few times. 2) Remove device from phoscon and made the same as above.

Finne75 commented 3 years ago

@marithpl try to unplug/plug the device from the socket.

marithpl commented 3 years ago

@marithpl try to unplug/plug the device from the socket. Doesn't work for me.

SebLz commented 3 years ago

This weekend I was working on my electrical installation and doing so I had to turn off / on power multiple times the circuit on which my SHP13 with no sensors was plugged in. Yesterday, I noticed the sensors had appeared in HA ! This happened even though I did not start a search for new sensors in deconz.