-
Notifications
You must be signed in to change notification settings - Fork 507
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
New device: Tuya smart plug 16a #5334
Comments
It's possible this PR was enought to enable the power measurement for it, if you can make a try ? |
I have the same device and installed it in home assistant -but no energy metering sensor was |
@Smanar I built and install the PR and it made no difference
|
@jfparis Can you share the device JSON ? |
Have added the mac adress for the first one
But your is already in code
Can you check if your manufacture number is 0x1002 too ? in node info panel. |
Manufacturer code is 0x1002. Just to make sure I test properly
Should I see the power reading in the Phoscon interface as well ? |
No, I don't think Phoscon display power measurement device, but like you have done previously is fine, take a llok in the json direclty. For me all is fine, the device is in whitelist
If it s still not working, can you share logs during the inclusion ? with "info" and "info_l2" ? |
For some reason, I cannot compile the new branch I backported your patch (essentially the whitelisting of addresses) to the previous version in your branch (the one from last week that I was able to compile) and I can confirm that I am now getting some power reading in home assistant but not in the gateway interface All good for me. Looking forward to have this integrated in the stable version |
The code is now in the master branch, just validated, and yes the deconz-dev package is updated ATM because ddf file Have same issue than you for the moment after having installed qtdeclarative5-dev and libqt5qml5 |
Hey @Smanar , Product name: Tuya smart plug 16a Device type : Smart plug with power metering (EU version) Rebranded as: Smatrul |
I am also using the Tuya smart plug and would really be interessted in the energy monitoring feature. Since I am new to the HA world - is this a feature that is currently into development/integration? If yes, is there a way to test this? Thank you very much! |
@HejThereWorld Be aware that not all zigbee Tuya plugs have this power monitor feature. And also be aware that Tuya devices are rebranded many times, so I assume all different "manufacturers" should be added to the deconz codebase. the above mentioned PR adds the "power monitor" feature to deconz (and Home Assistant), It is part of release 2.13 which is currently in beta: In supervisor you can find the deconz version you are running on: If you share your manufacturer (something that contains _TZ3000 )from the deconz gui, we could check if it's part of that release... |
Like have said @thomas-svrts I can't be sure. But the code use white/black list for sensors, so this can prevent the device creation. |
Hi, Thank you very much for you help. |
@HejThereWorld your mac address is in the same range as mine. So comment of Smanar is also valid for you:
So let’s hope that they move quickly to a stable release of deconz. (Normally they have a stable release every 2á3 months, so I expect a release in November…). Or does somebody know an easy way to install a beta release as ha addon? edit: check #4838 |
I have a |
As i see from zigpy, they also handled both the restore of powerOnOff and power readings. Is there a way to create a DDF file for this? I am using _TZ3000_ew3ldmgx and only On/Off works on this. Thanks... |
The power reading is workng on last version on ? Wich one version have you ? Your device is a "TS011F" ? Have you tried a re-inclusion ? Just after
Add
If it work pls make a PR. |
@Smanar, thanks for showing me the way. This works perfectly for the Power On State:
I had to change access="r" to access="rw" in order to be able to change the setting. Although i didn't had any use for 0x8004 - "Switch Mode" for this particular plug, i put it there anyway. |
As you want it's your PR, but it was for other devices, it s a same place, it's just to avoid making 2 PRs. And BTW, thx for making the PR |
Are you sure? |
Ok, I just realized that it could be true, the problem as far as I can see is that HA in the Energy section is measuring that value multiplied by two. I'll have to see if tomorrow that failure repeats itself again, or if the meter is reset correctly. I think I can consider the measurement as correct. |
And yes it s possible, on the DDF editor, you have a field "Expression" with something like "Item.val = Attr.val" you can add a *10 or / 10. |
@steljwagh - thanks for you reply, but regretfully - I'm still a bit lost. |
@oywino you're welcome. |
I also created a new DDF for the TZ3000_w0qqde0g and it worked, but had serious issues with DDF in general (slowing deconz to a crawl and eventually crashing it), so I am holding off for now. There are 15 brand new updated plugs waiting for the next Beta, will try again then. :) |
On the DDF cheat sheet Dresden writes "All DDF coming with deCONZ typically reside in /usr/share/deCONZ/devices/generic/"
(I'm not sure why it says: total 24) |
Thoses one will be modified every time you update deconz.
But the path can change on docker https://github.com/dresden-elektronik/deconz-rest-plugin/tree/master/devices/generic You are 1 folder too hight ^^. |
@Smanar - do you mean this folder:
|
Yep you can use this one, make a folder for exemple "personnal_DDF" inside this one, but remember this folder is for deconz, so you can use it for test, but the next time you will update deconz, the folder will be deleteds |
@Smanar, your contribution and knowledge is highly appreciated. Thank you for sharing. |
I've got the same issue now with: _TZ3000_typdpbpg |
Can do same fo all plugs #5633 (comment) |
Today I received the Tuya gateway, which solely purpose was only to update all of my Tuya zigbee plugs to get them remember the last state they were in. But, for 15 dollar you can update all of your slimline Tuya zigbee plugs. Beware btw, they are lacking of quality control, you can see much signal difference between some plugs. |
What is your deconz version ? |
I should be on something like v2.14.0-beta (I'm exactly on my Pull-Request version https://github.com/EmJay276/deconz-rest-plugin/tree/Tuya-fix-offset_BRT-100). I can merge the current master branch if needed.
|
This attribute is in the deconz xml file, so if you have a recent version you need to have it displayed in the GUI https://github.com/dresden-elektronik/deconz-rest-plugin/blob/master/general.xml#L654 |
I just merged the newest master commit, but I still don't see the 0x8002 id. |
You need to install the last deconz application, the github is just for the API plugin used by it.
|
Thanks, that worked like a charm. It was a bit tricky to edit the file, 'cause I'm running deCONZ in a docker container. @Smanar |
It's stored on deconz folder itself (or deconz system config folder), when you install it, when manup update the deconz package it take the one from the githup, but the file is not updated when you use github stuff. |
As there has not been any response in 21 days, this issue has been automatically marked as stale. At OP: Please either close this issue or keep it active It will be closed in 7 days if no further activity occurs. |
As there has not been any response in 28 days, this issue will be closed. @ OP: If this issue is solved post what fixed it for you. If it is not solved, request to get this opened again. |
@steljwagh |
the problem is still there (2.16.01) |
Wich one issue ? |
@Smanar the Tuya _TZ3000_gjnozsaz TS011F |
Have updated the issue here #5633 To add it on HA https://forum.phoscon.de/t/how-to-add-edit-a-ddf-on-home-assistant-using-text-editor/1839 |
Device
Product name: Tuya smart plug 16a
Manufacturer: _TZ3000_dpo1ysak
Model identifier: TS011F
Device type : Smart plug with power metering
Screenshots
The text was updated successfully, but these errors were encountered: