-
Notifications
You must be signed in to change notification settings - Fork 508
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tuya Smart Plug missing metering data (_TZ3000_cphmq0q7) #4838
Comments
I have exactly the same problem. Why it always must be difficult. 2 are working well a 2 are working not. Only the switches are doing their job but no measering. |
Unfortunately,this is the downside of having cheaper devices. The support was added to the one that works. The others have new chips/manufacturer names. That needs to be whitelisted. Can you provide screenshots from deconz as a device request? |
I have exactly the same problem. Device is registered in Phoscon as a Light. No measuring data is present. On/Off works fine. REST-API:
When I manually press the button on the device ( from On --> Off ) I get this event:
|
For me the code is blocking for the reason exposed by @muratcorlu, the device have
And the code don't like that, there is a hack for light device but not for sensor. Ugly one like
But for me it s possible with using dateCode.isNul(), but in this situation we will have swversion with null value. Need to ask first the autorisation at others devs. |
@Smanar, thanks for stepping in - but what you just said is "gibberish" to me. Could you "translate" it into layman's English? 😊 |
Lol.
This code (if it work) try to get the Swbuild, then the date code and finaly the Application version to fill the "swversion" field. You will have in log with "info"
And after the device will be included. |
Sorry, I don't understand. |
swbuild is Software Build number, I guess. |
Sorry. To make short, the deconz code ATM, prevent sensor creation for device without "swbuild", it s a field visible in the Json. The procedure is explained here https://github.com/dresden-elektronik/deconz-rest-plugin#install-deconz-development-package-optional-linux-only But you need a linux OS with full OS, I can't explain how to do on docker. |
Ok, I see. |
And not sure my fix will work too ^^. |
I would need another ConBee dongle and a test system to do this. ANd I don't have that. My existing set up is a productions system that I cannot take down. It would be easier for me to send a device to you. |
Don't worry, you are not alone with this bug. |
@oywino where do you need my opinion on? |
Hi @Mimiix , you wrote (if I understood correctly) that all that was needed was to whitelist the device (?) I was hoping that this could turn out to be an easy fix ? |
Well that's what I thought. But @Smanar says it isn't that easy, so I'm with him on this one. I'm not a developer so I can't change anything about this unfortunately. |
For the moment need someone with the device, with the issue and with a linux machine to test the code modification. |
I guess a "linux machine" can be arranged by simply installing Linux on a laptop. Which Linux do you recommend, and what would be the preferred installation config? |
I think all Linux version are supported, I have see some issues with dev package not found for some X64 but I think now it s corrected.
Classic install, not "light" "custom", headless (the desktop can be usefull for debugging) or docker. |
Ok, I need to find one more ConeBee II because I cannot disconnect the one I have in production. |
No, no danger, but just to make test, idk what is managed by your zigbee network, but you can just unplug the conbee from your production machine, make the test, and replug it. |
Ok, do you have step-by-step on how to install and config deConz on Ubuntu 20.04 (inkluding links)? |
Yep, first update the OS then https://phoscon.de/en/conbee2/install#ubuntu Then after with command line
|
|
Have you tried to include it using the GUI ?
If deconz don't display 5 endpoints, no reason to have them in the API .... |
By "GUI" I suppose you mean Phoscon ? It still comes up with 5 endpoints in both Phoscon and Home Assistant, but not in deConz. |
Nope the GUI mean on desktop (with the application), phoscon is a webapp.
Ok, it s realy a mystery, can you take some log with "info" and "info_l2" during the inclusion ? |
What does "inclusion" mean? |
Yep |
I was uncertain where to post, so I did it here: |
Hello all, Today I tried adding the mentioned switch/sensor to Deconz and showup to my Home Assistant frontend. However only the switch/plug is displayed. No information is shared about power consumption. I can however see the power consumption in the cluster information in Deconz. It also appears that there is a new subversion of this device because the suffix is different: Has anyone seen this type before and was able to get it to work? |
I follow. |
Same issue here... It seems that only switch is supported. |
Should be fixed with a DDF. |
@Smanar Can you give some pointers on that? |
Sure, for all plugs, same method #5633 (comment) If the value is updated only one time, when you read it in deconz, it's because of bind (will explain later) |
Hello can you try that #5633 (comment) ? |
In general I noticed that the manufacturer ID even is different if I order 4 in one lot...: What I noticed: Has somebody else similar experiences? I have one plug on a system which normally consumes 11W straight - constantly. But the consumption reads +0,01kwh after about 6-8 hours. I would expect it to add ~10W each hour. |
Adding a file to PS: I didn't check the situation that @bigcookie mentioned above. |
In DDF Editor (while connected via VNC), I changed the following under state/consumption: then "save" and "hot reload". Seems to work >happy< :-) |
And pls share the DDF for others, can make PR yourself or ask for someone make it, but you can at least copy/paste the DDF on github. |
@Smanar: Will try to make a PR (not a developer, but will manage ;-) )- but can you comment on the different manufacturer IDs? -> I have at least 2 more manufacturer identifiers in my pool of TS011F devices :-) Before I will make a PR, please let me know, if we shall create a DDR for each manufacturer ID, or if in this case, the DDF application logic will be adapted to be "flexible" on the string part after " Also I would like to get confirmation, if others see the same issue with consumption being reported. I would then make the changes accordingly. Attached the two DDFs I modified - to be renamed to "*.json": |
So first, don't worry, you can make error. (for me better having a broken code than no code at all, as it can't break others devices) On my side I m trying to mix DDF, when they are absolutely clone, mean they use the same DDF (with same value convertion for power for exemple) You can that with
rules are
Else can make a new file. If I m right they are all NAS WR10B, and use same code ? so can mix them in the same DDF. Wana make the PR yourself ? need to put the file in the devices/tuya folder, Try to use same kind of file name than others. |
Thanks. Will try to do the PR - give me some time :-). If I recall, I can even do that with the github web interface :-)... Otherwise will do that from my computer. I like the option to use the DDF for multiple models/manufacturers... Will handle it accordingly. |
Easier than thought - I could create the file in the web GUI. PR is here: |
Nice have just it ^^, thx. |
I saw that but have no idea how to make it and stay persistent in HomeAssisant + Deconz as docker image. Will try with |
I currently have this issue for TZ3000_5f43h46b |
This device don't have DDF, so you need to create one or add your model to an existing one, generaly tuya are clones, so all devices are using the same DDF. |
Describe the bug
I bought 4 Tuya Zigbee smart plugs and easily connected to Phoscon (running with Conbee II on Rpi4). I use them on my HomeKit setup via Homebridge. One of them worked perfectly with metering functionality but 3 of them doesn't report metering data. Working one has
_TZ3000_8nkb7mof
vendor name and others has_TZ3000_cphmq0q7
.Steps to reproduce the behavior
Expected behavior
I expect to see consumption data on Eve Home App or HomeAssistant.
Screenshots
Here is the list of devices in Phoscon App:
Detail screen of working one:
Detail screen of one of the non working devices (be aware this has version info):
Eve Home screenshot of working device:
Eve Home screenshot of one of the non-working devices:
Environment
deCONZ Logs
I use headless deconz. I currently couldn't figure out how to fetch debug logs. I'll update if I can.
Additional context
The text was updated successfully, but these errors were encountered: