Skip to content
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

Lidl SilverCrest Smart USB Extension Lead HG06338 #5493

Closed
fana605 opened this issue Nov 15, 2021 · 124 comments
Closed

Lidl SilverCrest Smart USB Extension Lead HG06338 #5493

fana605 opened this issue Nov 15, 2021 · 124 comments

Comments

@fana605
Copy link

fana605 commented Nov 15, 2021

Device

  • Product name: Lidl SilverCrest Smart USB Extension Lead
  • Manufacturer: _TZ3000_lobwwnmq
  • Model identifier: unknown
  • Device type :
    • Other: Smart Plug / Power Strip

Screenshots

image
image

Basic

image

Identify

image

Groups

image

Scenes

image

On/Off

image

This is the portuguese version of this Lidl Smart USB Extension Lead, model HG06338. There's a previous request to the model HG06338-DK, which I guess has different sockets.

The extension has 3 power sockets. It works, but the sockets all turn on/off at the same time. It would be great to control each one individually.

Thank you.

@Smanar
Copy link
Collaborator

Smanar commented Nov 15, 2021

But I m looking the code fast, and I dont see something specific to the device HG06338
On the capture you have 3 endpoint, so deconz have created 3 entries, one by plug, no ?

@fana605
Copy link
Author

fana605 commented Nov 15, 2021

Ok, sorry for the confusion. HG06338 is the model stated on the instructions manual. And yes, it seems to be 3 endpoints, one for each plug, but they seem to behave like only one. If I turn one on, all the other turn on.

image

Here I turned on the first one, and the other two became on too.

@Smanar
Copy link
Collaborator

Smanar commented Nov 15, 2021

Strange, not a group issue ?
Can you show a device json ? (You can have them in http://phoscon.de/pwabeta in help/API Information.

@fana605
Copy link
Author

fana605 commented Nov 15, 2021

I'm using Home Assistant, not sure where to get the device json. But regarding the group issue, what could I do to check that out?

@Smanar
Copy link
Collaborator

Smanar commented Nov 15, 2021

You can use the link on the previous post, it will not work for all user but can make a try.

@fana605
Copy link
Author

fana605 commented Nov 15, 2021

@Smanar Got it.

Plug 1:
{ "etag": "3b9611b6b247a41860c0ae37a0450886", "hascolor": false, "lastannounced": null, "lastseen": "2021-11-15T21:40Z", "manufacturername": "LIDL Silvercrest", "modelid": "HG06338", "name": "Extensão Lidl Tomada 1", "state": { "alert": "none", "on": true, "reachable": true }, "swversion": "70", "type": "On/Off plug-in unit", "uniqueid": "50:32:5f:ff:fe:4d:fb:fb-01" }

Plug 2:
{ "etag": "a755895db9e81560d8f65d0b54b5e6ec", "hascolor": false, "lastannounced": null, "lastseen": "2021-11-15T21:40Z", "manufacturername": "LIDL Silvercrest", "modelid": "HG06338", "name": "Extensão Lidl Tomada 2", "state": { "alert": "none", "on": true, "reachable": true }, "swversion": "70", "type": "On/Off plug-in unit", "uniqueid": "50:32:5f:ff:fe:4d:fb:fb-02" }

Plug 3:
{ "etag": "ebbfdd79d98458ae6bc3b6984f9127ec", "hascolor": false, "lastannounced": null, "lastseen": "2021-11-15T21:43Z", "manufacturername": "LIDL Silvercrest", "modelid": "HG06338", "name": "Extensão Lidl Tomada 3", "state": { "alert": "none", "on": true, "reachable": true }, "swversion": "70", "type": "On/Off plug-in unit", "uniqueid": "50:32:5f:ff:fe:4d:fb:fb-03" }

@Smanar
Copy link
Collaborator

Smanar commented Nov 16, 2021

Arf, sorry I m stupid, if there is something you will see it in "group" part (on the same link)

And I don't found similar issue with this hardware. As you have the GUI, can you share logs when making a "on" request with flags "info" and "info_l2" ?

@fana605
Copy link
Author

fana605 commented Nov 18, 2021

Hi @Smanar, Copy/paste is not working on the debug logs in order to share with you the info and info_l2 flags...
But from what I can see, when making a "on" request, 3 events appear on the logs, one for each plug, at the same time.

On API information, the groups part shows (I removed groups not related to this device):

{ "5": { "action": { "alert": "none", "bri": 127, "colormode": "hs", "ct": 0, "effect": "none", "hue": 0, "on": true, "sat": 127, "scene": null, "xy": [ 0, 0 ] }, "devicemembership": [], "etag": "90111d420aa417646f63b88c2b15adb7", "hidden": false, "id": "5", "lights": [ "11", "10", "13", "14", "15" ], "lightsequence": [], "multideviceids": [], "name": "Room", "scenes": [], "state": { "all_on": false, "any_on": false }, "type": "LightGroup" } }

@Smanar
Copy link
Collaborator

Smanar commented Nov 18, 2021

This group is normal, it s the "all device" group.
Seriously I don't understand, and if you turn "on" a plug using the GUI, for exemple on endpoint 0x01, cluster 0x0006, it turn on all plugs or only one ?

@fana605
Copy link
Author

fana605 commented Nov 18, 2021

Yes, it turns all plugs at the same time. I checked with a friend that bought the same device and he has the same issue using zigbee2mqtt. But the device does support control of each individual plug, using LIDL app, as you can see on this video (UK version): https://youtu.be/PASZ-p9EuJs?t=1481

@Smanar
Copy link
Collaborator

Smanar commented Nov 18, 2021

Ok, so there is something magic to do.
But what ? and this device don't have tuya cluster for magic ....

Edit:
Z2m issue Koenkk/zigbee2mqtt#9564

@Element2
Copy link

Element2 commented Dec 8, 2021

Have the same issue, any progress?

@hcastanho
Copy link

Same here. It turns on/off all 3 power sockets at the same time.

@Smanar
Copy link
Collaborator

Smanar commented Dec 15, 2021

I haven't found more info.
Need someone with the gateway sniff the traffic to find the "magic trick"

@github-actions
Copy link
Contributor

github-actions bot commented Jan 6, 2022

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 github-actions bot added the stale label Jan 6, 2022
@github-actions
Copy link
Contributor

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.

@JvD12
Copy link

JvD12 commented Jan 19, 2022

Any updates on this?

@Mimiix
Copy link
Collaborator

Mimiix commented Jan 19, 2022

Its funny, i have the same one and it works flawlessly.

@Element2
Copy link

Element2 commented Jan 19, 2022

I have an 'old' one. Bought it a year ago. That one works.
A 'new' one which I bought about a month ago, has the problems described above.
So probably a firmware update/change.

@Element2
Copy link

@Smanar
I have access to root at the original Lidl gateway.
Can you do anything with the TUYA debug logs when switching this device?
I can supply them

@Smanar
Copy link
Collaborator

Smanar commented Jan 21, 2022

You have something to log request done by an original tuya gateway ?
For that you need to sniff the zigbee traffic when the tuya gateway send a working request, with wireshark (for exemple)

@Element2
Copy link

Wireshark is not an option since my wifi-card doesn't do promiscuous mode.
Are you looking for some kind of string, because the debug log on the gateway has a lot of info.
So maybe I can see if the log has any info you need?

@Mimiix Mimiix reopened this Jan 21, 2022
@github-actions github-actions bot removed the stale label Jan 22, 2022
@Smanar
Copy link
Collaborator

Smanar commented Jan 22, 2022

IDK, how look the debug log on the gateway ?

@Element2
Copy link

This is part of the debug log when switching outlet 3 of 3 to ON:

tuya_debug.txt

@DanielK990
Copy link

Hi @Smanar,

I tried it again - it did not work for the first time, I had to try it several times. But then the additional plugs appeared in phoscon!

Thanks for you support!

@vdelab
Copy link

vdelab commented Jan 3, 2023

Hello @DanielK990,
Did you actually tried then in Home Assistant if the plugs were individually controlable?
I reached the same point where, after many attempts, the three plugs appeared in Phoscon, but nonetheless, as far as entity in HA are concerned, moving one of them on/off moved always the other two...
So in the end, my only way (not perfect) has been to use my second zigbee controller with ZHA to be able to control them.

But if you confirm you can individually control them in HA with the deconz plugin, then I'd rather try it again.
Sincerely,
Vincent

@DanielK990
Copy link

Hello @vdelab ,
I am not using Home Assistent but IO Broker but this should not matter.
Yes, I can switch the plugs individually in both Phoscan and IO Broker.

I am using deconz version 2.19.2-beta and the latest firmware on the Conbee II.

Summary of what I did:

  • Phoscon "add new lights"
  • Pressed button on plug unit for ~5 s --> after some time, only one plug appears in Phoscon, deconz GUI only shows one section with plugin unit and "Green Power" section when clicking on the second circle on the node
  • Again, Phoscon "add new lights"
  • From the context menu of the node in deconz GUI click "read node descriptor" and "read simple descriptors" and from "0000 Basic" cluster info click on "read" button in "Attributes" section
  • The last step I repeated several times. Then two further plugs appear in Phoscon, all of them can be switched separately

@Smanar
Copy link
Collaborator

Smanar commented Jan 4, 2023

It depend of firmwares, just make a try using the GUI, if it work on the GUI it can work with DDF, else not possible ATM.

@optimistcz
Copy link

Hello @vdelab , I am not using Home Assistent but IO Broker but this should not matter. Yes, I can switch the plugs individually in both Phoscan and IO Broker.

I am using deconz version 2.19.2-beta and the latest firmware on the Conbee II.

Summary of what I did:

  • Phoscon "add new lights"
  • Pressed button on plug unit for ~5 s --> after some time, only one plug appears in Phoscon, deconz GUI only shows one section with plugin unit and "Green Power" section when clicking on the second circle on the node
  • Again, Phoscon "add new lights"
  • From the context menu of the node in deconz GUI click "read node descriptor" and "read simple descriptors" and from "0000 Basic" cluster info click on "read" button in "Attributes" section
  • The last step I repeated several times. Then two further plugs appear in Phoscon, all of them can be switched separately

Home Assistant version 2022.12.9
Deconz version 2.19.03
Firmware ConBee II version 26720700

Thank you @DanielK990 ! These steps works for me! Now i can switch the plugs individually too.

@DynaMake
Copy link

DynaMake commented Jan 17, 2023

Using this method I get it work and obtain the following DDF, if it may be usefull for others:, this file: ts011f.json
need to be put in
~/.local/share/dresden-elektronik/deCONZ/devices

ts011f.txt

@programmieramt
Copy link

programmieramt commented Feb 10, 2023

I did the same with the
Firmware ConBee II version 26720700
Edit: I just updated the firmware to 26780700
Version 2.20.01 / 19.9.2022

I have now 3 switches but all turn on/off all the plugs.
Any idea what I can do?

Can someone open the issue again?

@Mimiix
Copy link
Collaborator

Mimiix commented Feb 10, 2023

Re-opening on request.

@Mimiix Mimiix reopened this Feb 10, 2023
@programmieramt
Copy link

Thanks for reopening. If I can offer new informations just let me know

@BabaIsYou
Copy link
Contributor

As descibed here by @Smanar this may require sending the Tuya "magic sequence " which DeConz does not currently know how to do until this request will be realized.

@programmieramt
Copy link

As descibed here by @Smanar this may require sending the Tuya "magic sequence " which DeConz does not currently know how to do until this request will be realized.

Just to understand, are there different hardware variants which work different?

@BabaIsYou
Copy link
Contributor

Yes different variant of intern hardware or firmware … or both …

@github-actions github-actions bot removed the stale label Feb 11, 2023
@BabaIsYou
Copy link
Contributor

@programmieramt , @Smanar found a way to have the this Tuya Magic sequence to be integrated in a DDF. That's perhaps just a workaround waiting for something more optimized but can try to add the part in the referenced issue in a DDF for your device.

@programmieramt
Copy link

programmieramt commented Feb 24, 2023

@programmieramt , @Smanar found a way to have the this Tuya Magic sequence to be integrated in a DDF. That's perhaps just a workaround waiting for something more optimized but can try to add the part in the referenced issue in a DDF for your device.

Yeah would be great thank you. I will try to figure out how the new ddf file has to look like.

@BabaIsYou
Copy link
Contributor

BabaIsYou commented Feb 24, 2023

You just have to add this part

        {
          "name": "config/configured",
          "refresh.interval": 86400,
          "read": {
            "fn": "zcl",
            "ep": 1,
            "cl": "0x0000",
            "at": [
              "0x0004",
              "0x0000",
              "0x0001",
              "0x0005",
              "0x0007",
              "0xfffe"
            ]
          },
          "parse": {
            "fn": "zcl",
            "ep": 1,
            "cl": "0x0000",
            "at": "0xfffe",
            "eval": "Item.val = (Attr.val != 0)"
          },
          "public": false,
          "default": false
        },

after

        {
          "name": "state/on",
          "refresh.interval": 5
        },

just after the first occurence of state/on in the DDF submitted by @DynaMake for instance ( (only once in the DDF)

@github-actions
Copy link
Contributor

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 github-actions bot added the stale label Mar 18, 2023
@github-actions
Copy link
Contributor

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.

@marcomania75
Copy link

Hello everybody,

I'd like to get some help. I read the thread but at some point I lost it. I can see the device as three plugs in phoscon. the first plug I can switch on and off. the second and third switches all three on and off. In deconz I can switch them all separately. Can you guide me to get the expected behavior in phoscon?

@Smanar
Copy link
Collaborator

Smanar commented Apr 9, 2024

You need a DDF with the tuya unlock sequence.
What is your device modelid/Manufacture name ?

To check if there is an exiting DDF or need to make a new one.

Something that look like

{
  "schema": "devcap1.schema.json",
  "manufacturername": "_TZ3000_vzopcetz",
  "modelid": "TS011F",
  "vendor": "LIDL",
  "product": "TS011F",
  "sleeper": false,
  "status": "Gold",
  "subdevices": [
    {
      "type": "$TYPE_ON_OFF_PLUGIN_UNIT",
      "restapi": "/lights",
      "uuid": [
        "$address.ext",
        "0x01"
      ],
      "items": [
        {
          "name": "attr/id"
        },
        {
          "name": "attr/lastannounced"
        },
        {
          "name": "attr/lastseen"
        },
        {
          "name": "attr/manufacturername"
        },
        {
          "name": "attr/modelid"
        },
        {
          "name": "attr/name"
        },
        {
          "name": "attr/swversion"
        },
        {
          "name": "attr/type"
        },
        {
          "name": "attr/uniqueid"
        },
        {
          "name": "state/on"
        },
        {
          "name": "state/reachable"
        },
        {
          "name": "config/tuya_unlock"
        }
      ]
    },
    {
      "type": "$TYPE_ON_OFF_PLUGIN_UNIT",
      "restapi": "/lights",
      "uuid": [
        "$address.ext",
        "0x02"
      ],
      "items": [
        {
          "name": "attr/id"
        },
        {
          "name": "attr/lastannounced"
        },
        {
          "name": "attr/lastseen"
        },
        {
          "name": "attr/manufacturername"
        },
        {
          "name": "attr/modelid"
        },
        {
          "name": "attr/name"
        },
        {
          "name": "attr/swversion"
        },
        {
          "name": "attr/type"
        },
        {
          "name": "attr/uniqueid"
        },
        {
          "name": "state/on"
        },
        {
          "name": "state/reachable"
        }
      ]
    },
    {
      "type": "$TYPE_ON_OFF_OUTPUT",
      "restapi": "/lights",
      "uuid": [
        "$address.ext",
        "0x01"
      ],
      "items": [
        {
          "name": "attr/id"
        },
        {
          "name": "attr/lastannounced"
        },
        {
          "name": "attr/lastseen"
        },
        {
          "name": "attr/manufacturername"
        },
        {
          "name": "attr/modelid"
        },
        {
          "name": "attr/name"
        },
        {
          "name": "attr/swversion"
        },
        {
          "name": "attr/type"
        },
        {
          "name": "attr/uniqueid"
        },
        {
          "name": "state/on"
        },
        {
          "name": "state/reachable"
        }
      ]
    }
  ],
  "bindings": [
    {
      "bind": "unicast",
      "src.ep": 1,
      "dst.ep": 1,
      "cl": "0x0006",
      "report": [
        {
          "at": "0x0000",
          "dt": "0x10",
          "min": 1,
          "max": 300
        }
      ]
    },
    {
      "bind": "unicast",
      "src.ep": 2,
      "dst.ep": 1,
      "cl": "0x0006",
      "report": [
        {
          "at": "0x0000",
          "dt": "0x10",
          "min": 1,
          "max": 300
        }
      ]
    },
    {
      "bind": "unicast",
      "src.ep": 3,
      "dst.ep": 1,
      "cl": "0x0006",
      "report": [
        {
          "at": "0x0000",
          "dt": "0x10",
          "min": 1,
          "max": 300
        }
      ]
    }
  ]
}

There is already a DDF, but without the unlock sequence https://github.com/dresden-elektronik/deconz-rest-plugin/blob/master/devices/lidl/hg06338.json

@marcomania75
Copy link

marcomania75 commented Apr 9, 2024

@Smanar, thank you for the quick response. The Manufacture Name: _TZ3000_1obwwnmq and the Model Identifier: TS011F are the same as in the linked json.
So, I take the linked json-file and put the lines from BabalsYou in it, save the file at ~/.local/share/dresden-elektronik/deCONZ/devices/ ? Do I have to restart the system?

Will this interfere with the two existing older models?

@Smanar
Copy link
Collaborator

Smanar commented Apr 9, 2024

We have a problem here.
Your device already have a DDF, a crappy one, it change the manufacure name/model id, but I can't make a new one for the same device, deconz have problem with 2 DDF for the same device.
So better to edit the actual one, you have it in /usr/share/deCONZ/devices/lidl/hg06338.json

Just add on the first entry (on 3)

        {
          "name": "config/tuya_unlock"
        },

Take care at typo, you can need a "," no problem if you add the code in the middle.

            "uuid": [
                "$address.ext",
                "0x01"
            ],
            "items": [
                {
                    "name": "attr/id"
                },
              {
                "name": "config/tuya_unlock"
              },

Then better to restart deconz (for it take the new DDF) and re-include the device (the tuya unclock sequence is done only every 24h and after inclusion)

If it work you can submit a PR, to have it on next deconz version (the edited DDF will be replaced on your next deconz update), else put your DDF in ~/.local/share/dresden-elektronik/deCONZ/devices/ to have it permanently, but you will miss deconz update for it.

@marcomania75
Copy link

Thank you @Smanar, after several reconnections and two reboots I got it working.

@pezmannen
Copy link

pezmannen commented May 16, 2024

Hello @vdelab , I am not using Home Assistent but IO Broker but this should not matter. Yes, I can switch the plugs individually in both Phoscan and IO Broker.

I am using deconz version 2.19.2-beta and the latest firmware on the Conbee II.

Summary of what I did:

  • Phoscon "add new lights"
  • Pressed button on plug unit for ~5 s --> after some time, only one plug appears in Phoscon, deconz GUI only shows one section with plugin unit and "Green Power" section when clicking on the second circle on the node
  • Again, Phoscon "add new lights"
  • From the context menu of the node in deconz GUI click "read node descriptor" and "read simple descriptors" and from "0000 Basic" cluster info click on "read" button in "Attributes" section
  • The last step I repeated several times. Then two further plugs appear in Phoscon, all of them can be switched separately

I followed this and it partially solved the issue. I can now control the first outlet. The other two still works like one unit

Any updates on this issue?

@Smanar
Copy link
Collaborator

Smanar commented May 16, 2024

What is your modelid/Manufacture name ?
Generaly need to create a DDf and add

        {
          "name": "config/tuya_unlock"
        },

On only 1 device entry.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests