Closed waazdakka closed 2 years ago
What if you click read?
If the values don't change, the device probsbly doesn't support it.
Hmm it's sold as power metering plug :'( https://fr.aliexpress.com/item/1005003523027932.html
If you click read on the clusters, does it show power consumption? Make sure something is plugged in.
Nothing, it stays at zero and I have a device plugged in. In found some similar issue on Z2MQTT, don't know if it could be a related-issue? https://github.com/Koenkk/zigbee2mqtt/issues/10487
That doesn't say anything about the device power metering
I have the same plug.
Ok, so for you it seem working, can try with a DDF https://github.com/dresden-elektronik/deconz-rest-plugin/wiki/DDF-cheat-sheet you have a sample here, used for most of plugs https://github.com/dresden-elektronik/deconz-rest-plugin/pull/5577
With text editor, just need to edit thoses lines, the modelid is probably the same (visible on basic clsuter).
"manufacturername": "_TZ3000_w0qqde0g",
"modelid": "TS011F",
"product": "NAS-WR01B",
"path": "/devices/neo/NAS-WR01B.json",
Ok, so for you it seem working, can try with a DDF https://github.com/dresden-elektronik/deconz-rest-plugin/wiki/DDF-cheat-sheet you have a sample here, used for most of plugs #5577
With text editor, just need to edit thoses lines, the modelid is probably the same (visible on basic clsuter).
"manufacturername": "_TZ3000_w0qqde0g", "modelid": "TS011F", "product": "NAS-WR01B", "path": "/devices/neo/NAS-WR01B.json",
I am not that familiar to DDF (and kind of new to deconz). l don't get this to work. Ill changed the manufacturnam and got new entities in HA but with value unknown. Trying to understand what I am doing wrong but have no clue.
I don't understand why you have 3 entities ?
All 3 are for the same device ? you can find the device JSON in phoscon / help / API Information. The DDF don't look so bad The status is other than "draft" ? You have enabled DDF in the "control" tab ? Can take "hot reload" in the menu of the DDF editor. When you select "edit DDF" on the node, what is the path in the windows title ? where have you saved the DDF ?
I don't understand why you have 3 entities ?
All 3 are for the same device ? you can find the device JSON in phoscon / help / API Information. The DDF don't look so bad The status is other than "draft" ? You have enabled DDF in the "control" tab ? Can take "hot reload" in the menu of the DDF editor. When you select "edit DDF" on the node, what is the path in the windows title ? where have you saved the DDF ?
No it aint the same. Ill got five plugs so there is nothing wrong there. But somehow I manage to get double up of all of them like power_28_2 and so on when i changed in the DDF and hot reloaded.
Oh thanks, I was trying to find where I could find the API JSON on a easy way.
"lastannounced": null,
"lastseen": "2022-01-11T07:38Z",
"manufacturername": "_TZ3000_gjnozsaz",
"modelid": "TS011F",
"name": "Consumption 27",
"state": {
"consumption": null,
"lastupdated": "none"
I have been tested status draft and status silver. DDF is enabled in control tab Have tested hot reload
now its devices/smartplug.json I am on a Windows machine and have tested to save the DDF in AppData/Local/Dresden..../deconz/devices~ and C:/Deconz/devices/...
Now I found something! In the API information I found that I have sensors named power 36,38,40,42 also and they got the power information! But I can't find the sensors in HA. Somehow they are doubled up and just the first one with no information Ill find in HA.
In the Control tab, is the Status you use for the DDF enabled? So if you have it set on "silver" , is silver also enabled in the control tab?
Hmm no clue on that one. In control I have set DDF to normal. DDF status is now draft. How do I see if the status I have been chosen have DDF enabled in control tab?
If you have the DDF for the device set to "silver" make sure that "Silver" is also checked in the above screen.
Hmmm.. For me settings look like. Old version? Settings somewhere else?
Are you on the latest 2.13.4?
Nope. Im on 2.13.2. Now I updated and got the same setting as you. Still same problem.
I deleted the devices from deconz and connected them again. Now I only got one power and one consumption. Thanks for all the help.
So it's solved?
So it's solved?
Yep, its solved. Got the right information in HA now.
Can you make a PR With the DDF in bronze? Just so others can benefit this?
Can you make a PR With the DDF in bronze? Just so others can benefit this?
Ill can make a try later. Maybe I should rename it, Now its called smartplugtest.json :) Is there any instruction how it should be set up to PR with DDf in bronze?
Just make sure the DDF is set to bronze. Then probably you should be able to go here: https://github.com/dresden-elektronik/deconz-rest-plugin/tree/master/devices/tuya and click "Add file" and upload there ( i think).
Then it should make a PR.
Ok, so for you it seem working, can try with a DDF https://github.com/dresden-elektronik/deconz-rest-plugin/wiki/DDF-cheat-sheet you have a sample here, used for most of plugs #5577 With text editor, just need to edit thoses lines, the modelid is probably the same (visible on basic clsuter).
"manufacturername": "_TZ3000_w0qqde0g", "modelid": "TS011F", "product": "NAS-WR01B", "path": "/devices/neo/NAS-WR01B.json",
I am not that familiar to DDF (and kind of new to deconz). l don't get this to work. Ill changed the manufacturnam and got new entities in HA but with value unknown. Trying to understand what I am doing wrong but have no clue.
How did you fill the binding table? I have no idea how to fill the binding table or upload the DDF file to Deconz when running from within Hassio on a Rasp Pi 4.
How did you fill the binding table? I have no idea how to fill the binding table or upload the DDF file to Deconz when running from within Hassio on a Rasp Pi 4.
You can have an issue on HA for bind https://forum.phoscon.de/t/ddf-editor-how-to-drag-bindings/1351 But we can edit the file manualy for that, will see later, without the bind, values will be updated in HA when you read them in deconz.
To manage file on HA with docker https://github.com/dresden-elektronik/deconz-rest-plugin/issues/5459#issuecomment-1019496135
Else can use the editor and "pre-used" path.
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.
Hello! Coming back to the subject, I didn't understand all the edit suggestions in deConz, not sure of what to edit 🙄 But is there any chance to be corrected in the future to allow users to get power information without editing DDF-thing? 😅
But is there any chance to be corrected in the future to allow users to get power information without editing DDF-thing?
DDF will be added 1 by 1 on the deconz package. But for the moment only DDF submitted in PR have a chance to be in the deconz package.
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.
Hi I just installed a plug that is showing as “_TZ3000_gjnozsaz” and does not show the power consumption. Reading the messages above it seems the solution was found but never finalised. what should be done to have the issue resolved?
The DDF was not submitted ^^, or I don't find it @raekmacka can you make the PR or paste it here for someone make it ?
Else can edit this one https://github.com/dresden-elektronik/deconz-rest-plugin/pull/5577/files
Hi, so i did a few tests and tried to understand this DDF concept that was new to me. I could get the power information in Home Assistant. The power data is refreshed every 6 minutes, this is not ideal but fine for what I intend to do with it. Edit: i found the parameter to change to influence the interval between refresh (see under)
I created a DDF but it is in Deconz add-on in HomeAssistant and no idea How to export it... anyone knows ?
I think it s better first to try to change the reporting setting, on the third tab (the min max / chnage). The option in red is a poll, for device that don't support reporting
To export a DDF, you can copy it from the "preview" tab, but there is probably a magic trick to do for copy/paste, you can't use a simple text editor ?
So copy / paste from the preview tab does not work when done from Home Assistant directly. It did work when opening deconz directly from VNC (it must be activated in the options of the addon). Please Note that the DDF was created on the basis of the existing device neo/NAS-WR01B.json I only changed the device manufacturer name, product ID, Vendor and Product + the read interval for the power (as screenshot above) to 30s. It seems to work.
Regarding the reporting setting, on the third tab (the min max), I tried and it had no effect. Setting to 30 s instead of 300 still give a refresh of the data every 6 minutes.
Yes can be normal, there is a new tuya plug generation that don't support reporting.
Hi,
i also got a _TZ3000_gjnozsaz for the purpose of power-reading. I get it connected, but onyl can switch on/off, I don't get any sensor-values.
My Setup: I use fhem to connect to deconz, and i have a headless raspi-running the software. So i don't have the gui or anything else than config files.
I create the "devices/tuya/_TZ3000_gjnozsaz.json" file:
{
"schema": "devcap1.schema.json", "manufacturername": "_TZ3000_gjnozsaz", "modelid": "TS011F", "vendor": "_TZ3000_gjnozsaz", "product": "TS011F", "sleeper": false, "status": "Silver", "path": "/devices/tuya/_TZ3000_gjnozsaz.json", "subdevices": [ (....)
restarted deconz, re-added the device, but still no sensor in phoscon gui or any sensor visible from fhem. What do i need to enable beside adding the file?
Dek
Hello what is your deconz version. On last one, DDF are enabled by defaut. You can run deconz with command line to be sure the DDF is loaded (flag "info" "info_l2" and "ddf")
You are sure for the folder ? was /usr/share/deCONZ/devices or /home/deconzuser/.local/share/dresden-elektronik/deCONZ/devices ?
Set the status to "Gold"
I am using 2.14.01. Path was /usr/share/deCONZ/devices/tuya/_TZ3000_gjnozsaz.json
Will try gold setting
Dek
changed:
Dek
Hi everyone, I've done everything listed above because only on/off are displayed on Home Assistant. Now, I can see the values...but they are not updated in real time. Am I missing something?
Yep, probably the missing binding, can you show or tell me wich one DDF you are using ?
Thanks for the reply. I'm using the one linked above by avrel-kb with the settings suggested by De-k
You can see my settings below, please let me know if you need more info, thanks a lot
Can you check the application version in cluster 0x0000, old version don't support reporting (69 from my memory) so deconz use polling for them (and from your ddf power is updated faster than current)
It's 68, is it a problematic one? in your experience is it a solvable problem?
If you have time, take a look here https://forum.phoscon.de/t/new-tuya-smart-plug-nas-wr01b-or-tz3000-w0qqde0g/819 ^^
From my memory, some users have updated their plugs.
tnx i'll let you know!
So to my understanding I only need a Tuya Hub to upgrade the plug version, am I correct? sorry but my english is not that good to fully understand the whole thread :-(
Same for me ^^, and too much thing to read.
You can increase the refresh interval, to speed up the polling, but yes it seem lot of users have updated their plugs
Here it s the same than you, the TZ3000_gjnozsaz https://forum.phoscon.de/t/new-tuya-smart-plug-nas-wr01b-or-tz3000-w0qqde0g/819/79
The important thing is that I can make it work somehow Thank you VERY much for your kind support.
Hi everybody,
i got it working. As mentioned before, I am using fhem as a smart home SW. One thing that bothers me is the frequency of the updates: [power value]: 2022-04-04_16:57:15 6 2022-04-04_16:57:16 40 (...) 2022-04-04_16:57:36 6 2022-04-04_16:57:37 104 2022-04-04_16:57:38 41
I get a new value every second. I am struggling to find a specification of the json-content of the file. Is there something where this can be limited?
Dek
Describe the bug
The plug appears in deCONZ with all its capabilities, but values stay by default in the electrical mesurement and the simple metering panels
Steps to reproduce the behavior
Expected behavior
Screenshots
Environment