deconz-rest-plugin icon indicating copy to clipboard operation
deconz-rest-plugin copied to clipboard

TZ3000_gjnozsaz appears but only power and link quality - No power meter

Open waazdakka opened this issue 3 years ago • 78 comments
trafficstars

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

  • Pair Tuya TZ3000_gjnozsaz TS011F plug to deCONZ
  • See them appear into deCONZ and succeed to use them (on / off)
  • Go to Status panel
  • See nothing changing in the electrical measurement and simple metering panels

Expected behavior

  • Obtain the consumption and other electrical values on deCONZ

Screenshots

image image image

Environment

  • Host system: Raspberry Pi 4
  • Running method: Home Assistant deCONZ Add-on
  • Firmware version: 26660700
  • deCONZ version: 2.13.04 / 18/12/2021
  • Device: ConBee II
  • Do you use an USB extension cable: no
  • Is there any other USB or serial devices connected to the host system? no

waazdakka avatar Jan 03 '22 16:01 waazdakka

What if you click read?

If the values don't change, the device probsbly doesn't support it.

Mimiix avatar Jan 03 '22 16:01 Mimiix

Hmm it's sold as power metering plug :'( https://fr.aliexpress.com/item/1005003523027932.html

waazdakka avatar Jan 03 '22 18:01 waazdakka

If you click read on the clusters, does it show power consumption? Make sure something is plugged in.

Mimiix avatar Jan 03 '22 18:01 Mimiix

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

waazdakka avatar Jan 04 '22 21:01 waazdakka

That doesn't say anything about the device power metering

Mimiix avatar Jan 04 '22 22:01 Mimiix

I have the same plug.

image image image image

akinek avatar Jan 08 '22 22:01 akinek

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",

Smanar avatar Jan 09 '22 10:01 Smanar

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.

image

image

image

image

raekmacka avatar Jan 10 '22 19:01 raekmacka

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 ?

Smanar avatar Jan 10 '22 20:01 Smanar

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.

raekmacka avatar Jan 11 '22 08:01 raekmacka

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?

Mimiix avatar Jan 11 '22 08:01 Mimiix

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?

raekmacka avatar Jan 11 '22 08:01 raekmacka

image

If you have the DDF for the device set to "silver" make sure that "Silver" is also checked in the above screen.

Mimiix avatar Jan 11 '22 08:01 Mimiix

Hmmm.. For me settings look like. Old version? Settings somewhere else?

image

raekmacka avatar Jan 11 '22 09:01 raekmacka

Are you on the latest 2.13.4?

Mimiix avatar Jan 11 '22 09:01 Mimiix

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.

raekmacka avatar Jan 11 '22 09:01 raekmacka

So it's solved?

Mimiix avatar Jan 11 '22 09:01 Mimiix

So it's solved?

Yep, its solved. Got the right information in HA now.

raekmacka avatar Jan 11 '22 09:01 raekmacka

Can you make a PR With the DDF in bronze? Just so others can benefit this?

Mimiix avatar Jan 11 '22 09:01 Mimiix

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?

raekmacka avatar Jan 11 '22 10:01 raekmacka

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.

Mimiix avatar Jan 11 '22 10:01 Mimiix

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.

image

image

image

image

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.

karsie1994 avatar Jan 27 '22 21:01 karsie1994

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.

Smanar avatar Jan 28 '22 09:01 Smanar

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.

github-actions[bot] avatar Feb 19 '22 01:02 github-actions[bot]

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? 😅

waazdakka avatar Feb 21 '22 14:02 waazdakka

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.

Smanar avatar Feb 21 '22 17:02 Smanar

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.

github-actions[bot] avatar Mar 15 '22 01:03 github-actions[bot]

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?

avrel-kb avatar Mar 19 '22 11:03 avrel-kb

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

Smanar avatar Mar 19 '22 13:03 Smanar

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 ?

Screenshot 2022-03-20 at 12 23 32

avrel-kb avatar Mar 20 '22 10:03 avrel-kb