Closed Jeltel closed 3 years ago
What else can I do to get this implemented sooner? :)
Scrap that. Going to return this and bought a twinkly.
I'll leave the code here, for future implementation.
Maybe the HG06467 protocol is useful to you guys, https://pastebin.com/pcgWVjCp as it describes all options for the Xmas lights. The guys over at z2m have sniffed it and it use classic tuya command, can use the tuya code without problem it seems.
Scrap that. Going to return this and bought a twinkly.
I'll leave the code here, for future implementation.
May i ask why you're gonna go for a twinkly? I've got the same lights, i think they could be useful with a update of ZHA.
Scrap that. Going to return this and bought a twinkly. I'll leave the code here, for future implementation.
May i ask why you're gonna go for a twinkly? I've got the same lights, i think they could be useful with a update of ZHA.
The better app, you can calibrate you setup with a camera in the app. And wifi based, so integration in Home Assistant is easier. There is supposed to be a native HA implementation from 0.119. Don't know if it will include the scenes, but that would be very cool.
Yes the lidl lights will become more usefull with a proper zigpy integration. Hope that works :)
== Protocol== :
Sequence The sequence number of the transmitted data, ranging from 0 to 65535, and returned to 0 after reaching 65535
Function Code Power: 01 01
Mode: 02 04
In White: 03 02
In Color: 05 03
In Scene: 06 03
Length effective data length of the transmission; single-frame data length does not exceed 64 bytes
Data Valid Data Transferred
== Power Function ==
Fc SEQ CMD LENGTH DATA
Turn OFF .. .. 01 01 00 01 00
Turn ON .. .. 01 01 00 01 01
== Mode Function ==
Fc SEQ CMD LENGTH DATA
White Mode .. .. 02 04 00 01 00
Color Mode .. .. 02 04 00 01 01
Scene Mode .. .. 02 04 00 01 02
== White mode function ==
Fc SEQ CMD LENGTH DATA
Set brightness .. .. 03 02 00 04 00 00 xx xx
xx xx should be a number between 0 and 1000.
== Color mode function ==
Fc SEQ CMD LENGTH DATA
Set Color .. .. 05 03 00 0c hh hh hh ss ss ss ss ll ll ll ll
hh hh hh hh, ss ss ss ss and ll ll ll ll should be a number between
30 30 30 61 and 30 33 65 38
== Scene mode function ==
Fc SEQ CMD LENGTH DATA
Set scene .. .. 06 03 nn nn fc fc ss ss rr rr gg gg bb bb
ss ss (speed) should be between 30 30 (12336) and 36 34 (13876)
rr rr gg gg bb bb (colors) should be between 30 30 (12336) and 66 66 (26214)
nn nn is not a fixed length, depends on data.
Depending on the amount of colors, multiple colors can be passed in the data, sequential after each other (so it becomes fc fc ss ss rr rr gg gg bb bb rr rr gg gg bb bb etc.)
Function codes (fc fc) are:
Scene FC # colors
Steady 30 30 1
Snow 30 31 1
Rainbow 30 32 0
Snake 30 33 6
Twinkle 30 34 2
Firework 30 35 2
Horizontal Flag 30 36 3
Waves 30 37 3
Updown 30 38 2
Vintage 30 39 1
Fading 30 61 1
Collide 30 62 1
Strobe 30 63 5
Sparkles 30 64 3
Carnaval 30 65 6
Glow 30 66 6
FYI, development docs for Tuya Zigbee radio module device UART communication serial port general protocol can be found here:
Looks like zigbee-herdsman (and zigbee2mqtt) devs figured out some things about the Tuya UART protocol in these discussions:
Melinera / Silvercrest HG06467 issue discussion: https://github.com/Koenkk/zigbee-herdsman-converters/issues/1792
and
Melinera / Silvercrest HG06467 pull request: https://github.com/Koenkk/zigbee-herdsman-converters/pull/1799
These new Zigbee devices seem to use the new Tuya custom "manuSpecificTuya" cluster in their UART protocol and it sounds as if that is used more by rebranded OEM devices that use internal hardware from Tuya. Because of this the zigbee2mqtt / zigbee-herdsman developers have now even written a specific guide to help add support additional new Tuya devices here:
https://www.zigbee2mqtt.io/how_tos/how_to_support_new_tuya_devices.html
As noted, zigbee-herdsman-converters is zigbee2mqtt equivalent to zha-device-handlers for zigpy.
May i ask why you're gonna go for a twinkly? I've got the same lights, i think they could be useful with a update of ZHA.
The better app, you can calibrate you setup with a camera in the app.
While slightly off-topic here the idea of using AR mapping function with the app using the camera of your phone sounds awesome!
Love that Twinkly app concept of using the phone's camera to AR 3D mapping similar Christmas light strings:
https://www.twinkly.com/knowledge/map-your-lights-2/
Twinkly's app uses Augmented-Reality together with your phone's camera to first 3D map each and every lightbulb in the Christmas light string and then let you "paint" each and every one of those lightbulbs individually with their app on your phone.
https://www.youtube.com/watch?v=xMJ3bLBtGaQ&ab_channel=Twinkly-SmartDecoration
Tip from zigbee2mqtt developers regarding contacting the manufacturer for help on how to communicate with their devices:
When contacting a manufacturer of Tuya compatible device, DO NOT ask for Zigbee protocol of the device, they usually have no idea how the Tuya radio that they bought communicates over Zigbee. Instead, ask for the UART protocol for their device, this should give you better cooperation. You can also ask them about DPIDs and data formats for their functions.
is there any way to purchase these in the US?
East coast have stores https://www.lidl.com/stores and more is coming. The bad thing is no sign for "Home Smart Home" on the zite ;-((
is there any way to purchase these in the US?
Sounds like most if not all of Lidl's Zigbee products are rebranded OEM or while-label versions of Tuya or HEIMAN devices, and if so it might be easiest to find the same product but different brand from a Chinese online store and order it to the USA directly from China?
An alternative could be for a community member to buy the Lidl product in Europe and ship it to the USA but that is expensive.
One thing to check before getting products for the European marked shipped to North America is if the product also supports ~110v AC-power at 60Hz because all of western Europe runs on ~230v AC-power at 50Hz, and not all products support both.
Sounds like most if not all of Lidl's Zigbee products are rebranded OEM versions of Tuya or HEIMAN devices
By the way, just a few other companies who are known for rebranding and selling at least a couple OEM or while-label Zigbee devices (and WiFi devices) from Tuya and HEIMAN are Zemismart, Alecto, Bandi, Binthen, Blitzwolf, Malmbergs, Gosund, Eachen, Moes, Sonoff, Teckin, Earda, LEELKI, Larkkey, Lonsonho, LoraTa, Norklmes, SHOJZJ, Samotech, Smart9, Somgoms, TUYATEC, UseeLink, Vrey, Woox, Yushun, and CR Smart Home,
Many such rebranded OEM or while-label Zigbee devices manufactured by Tuya can be found in zigbee2mqtt and deconz lists:
https://www.zigbee2mqtt.io/information/supported_devices.html
https://github.com/dresden-elektronik/deconz-rest-plugin/wiki/Supported-Devices
Looks like zigbee-herdsman (and zigbee2mqtt) devs figured out some things about the Tuya UART protocol in these discussions:
Silvercrest HG06467 issue discussion: Koenkk/zigbee-herdsman-converters#1792
and
Silvercrest HG06467 pull request: Koenkk/zigbee-herdsman-converters#1799
These new Zigbee devices seem to use the new Tuya custom "manuSpecificTuya" cluster in their UART protocol and it sounds as if that is used more by rebranded OEM devices that use internal hardware from Tuya. Because of this the zigbee2mqtt / zigbee-herdsman developers have now even written a specific guide to help add support additional new Tuya devices here:
https://www.zigbee2mqtt.io/how_tos/how_to_support_new_tuya_devices.html
As noted, zigbee-herdsman-converters is zigbee2mqtt equivalent to zha-device-handlers for zigpy.
FYI, Zigbee2mqtt now have this page for the Melinera / Silvercrest HG06467 Christmas lights from Lidl with Zigbee ID "TS0601":
https://www.zigbee2mqtt.io/devices/HG06467.html
https://github.com/Koenkk/zigbee2mqtt.io/blob/master/docs/devices/HG06467.md
For reference, here is also the older Discourse discussion about Zigbee2mqtt support for these:
https://zigbee2mqtt.discourse.group/t/lidl-christmas-lights/1788
Sounds like most if not all of Lidl's Zigbee products are rebranded OEM or while-label versions of Tuya or HEIMAN devices, and if so it might be easiest to find the same product but different brand from a Chinese online store and order it to the USA directly from China?
Does anyone have better pictures of the Christmas lights themselves and their control/power-adapters to help a search in China?
https://www.lidl.de/de/melinera-lichterkette-zigbee-smart-home/p360021
https://www.lidl.nl/nl/p/smart-home/200-rgb-led-verlichtingsketting/p43246
Also, it does not look like Lidl is selling this Christmas lights product in all countries in Europe or at least is not marketing them.
deconz development discussion about these "Melinera Smart LED string lights" from Lidl can be found here:
https://github.com/dresden-elektronik/deconz-rest-plugin/issues/3716
Device
- Product name: The device name as shown on the product or package.
- Manufacturer: _TZE200_s8gkrkxk
- Model identifier: TS0601
- Device type : Light
deconz development discussion about these "Melinera Smart LED string lights" from Lidl can be found here:
dresden-elektronik/deconz-rest-plugin#3716
Device
- Product name: The device name as shown on the product or package.
- Manufacturer: _TZE200_s8gkrkxk
- Model identifier: TS0601
- Device type : Light
@ebaauw has now also submitted a PR to deCONZ for advanced REST API support for the LIDL Melinera Smart LED strip:
https://github.com/dresden-elektronik/deconz-rest-plugin/pull/3776
+a follow-up PR with enhancements and bug fixes for those Xmas lights:
https://github.com/dresden-elektronik/deconz-rest-plugin/pull/3789
This PR adds REST API support for the LIDL Melinera Smart LED strip, a.k.a. the Xmas light strip, see https://github.com/dresden-elektronik/deconz-rest-plugin/issues/3716
I've implemented the following changes:
Created
xmas.cpp
with exposes the following public methods:
DeRestPluginPrivate::isXmasLightStrip()
to check whether aLightNode
is, in fact the Xmas light strip;DeRestPluginPrivate::setXmasLightStripState()
to handle a PUT to the state of the Xmas light strip;DeRestPluginPrivate::addTaskXmasLightStrip...()
to queue tasks for Tuya cluster of the Xmas light strip;Created the following public enums:
XmasLightStripMode
;XmasLightStripEffect
;- Changed
RStateEffect
back toDataTypeString
;- Added a hook in
DeRestPluginPrivate::setLightNodeCapabilities()
to delete unsupportedstate
attributes, which are probably created before the Manufacturer Name has been read'- Added hooks in
DeRestPluginPrivate::updateLightNode()
to ignore Level Control and Color Control attributes, as the Xmas light strip doesn't update these when updating the state through the Tuya cluster;- Added hook in
DeRestPluginPrivate::handleTuyaClusterIndication()
to send a ZCL Default Response on receiving command 0x01.
I have the 3 way outlet with USB charging and the RGBWS LED stripe and all have EC marking but no FCC marking and no of the Home Smart Home products is applied for it (under name Lidl US, LLC) at FCC-ID. But likely more suppliers is making it from tuya for the next christmas.
By the way the led controller have the same EFR32 as SonOff Zigbee Bridge and pretty easy souldring the pins for flashing it :-)))
And easy modding for external antenna if needed and putting force boot loader switch.
@MattWestb did you also buy the Lidl Christmas lights as well and if so would you mind terribly to fully opening it up as well?
Thinking it might help find the matching OEM or white-label product in China if know all the markings on the circuit board?
Was not getting it. In Austria they was only having half of the products in the east part and the west part the other (the GW and the motion sensor was for all). So no Zigbee Christmas Tree Lights here ;-((
Was not getting it. In Austria they was only having half of the products in the east part and the west part the other (the GW and the motion sensor was for all). So no Zigbee Christmas Tree Lights here ;-((
Same in Sweden as no Zigbee Christmas at Lidl brick-and-mortar stores here and there is not even an Swedish Lidl online-store.
I think LIDL dont want killing the tower of Kungens Kurva ;-) But its sad for the HA community that not releasing it in all stores ! I is on the hunt for the ceiling lamps but cant going to Innsbruck then its lockdown here and also IKEA is closed so no köttbullar. löksill and lussekatter for christmas this year !!
is there any chance of this being picked up and supported?
Yes, will just take time. Especially because we can’t get them.
The LIDL Xmas light strip is supported in v2.7.0, see https://github.com/dresden-elektronik/deconz-rest-plugin/issues/3716#issuecomment-735467996. Be sure to (re-)pair it under that version.
I'm guessing the PR by @ebaauw is nothing that can be reused by the ZHA integration right away? @dmulcahey anything that I can do to help out? Would be really great to have this before xmas time. I do have the light strip and the gateway. But I rather not use the gateway and have the controls with HA
If needed, i can pick them up here at the local lidl, and ship them to you guys. Plug will be EU (230V), not sure if that can be switched easily.
Would it be possible to have the different modes in HA/ZHA?
Plug will be EU (230V), not sure if that can be switched easily.
FYI, @Somberland posted some pictures of the lights + control-box + the transformer/plug power-supply combo (JT-DC24V24W by Jutai/CZJutai) in https://github.com/dresden-elektronik/deconz-rest-plugin/issues/3716 and it looks to use one of those standard AC-to-DC 24 Volt 24W capacity transformer with an IP44 (outdoor) plug that is commonly used for strings / light-chain of Christmas-style LED-lights. So should be relatively easy to find a replacement transformer capable of outputting at least 24 volts @ 0.85A so a 1 Amp / 24 Watt 24 volts DC-transformer is probably recommended.
Tuya "TY-REV002" Smart LED String Lights looks to be the original white-label / OEM product that Lidl has rebranded for Europe:
https://zigbeealliance.org/zigbee_products/smart-led-string-lights/
Zigbee Alliance certification report for Tuya TY-REV002 :
That fact has not helped me narrow down what the equivalent Zigbee product version(s) is known as in Chinese online stores or where to order it from in China. Tuya list a few similar products on their website but the string lights and lightstrips there are Bluetooth and WiFi-based or white-color only and not RGB:
The LIDL Xmas light strip is supported in v2.7.0, see dresden-elektronik/deconz-rest-plugin#3716 (comment). Be sure to (re-)pair it under that version.
Little bit off topic.
Currently I'm using the zha device handler and switching to deconz interferes with zha so I have to move all my devices to deconz.. or is there a way both integrations can work at the same time?
The LIDL Xmas light strip is supported in v2.7.0, see dresden-elektronik/deconz-rest-plugin#3716 (comment). Be sure to (re-)pair it under that version.
Little bit off topic.
Currently I'm using the zha device handler and switching to deconz interferes with zha so I have to move all my devices to deconz.. or is there a way both integrations can work at the same time?
I'm new with ZHA and using it with a flashed zbbridge from Sonoff. I repaired my christmas lights in Home Assistant 2 days ago, but it's not working. Should I wait for an update of HA? And is compatibility in Deconz equal to ZHA? (Sorry for the n00b questions, just started with this)
Found this so it should work I guess:
https://zigbee.blakadder.com/Lidl_HG06467.html
But I repaired it 5 min ago and it's not seeing it properly
Currently I'm using the zha device handler and switching to deconz interferes with zha so I have to move all my devices to deconz.. or is there a way both integrations can work at the same time?
No, you can only use both integrations at the same time if you buy/have two separate Zigbee USB adapters. That is, you can only use any Zigbee USB adapter exclusivly with one Zigbee integration, and any Zigbee integration can in turn only have one adapter.
I'm new with ZHA and using it with a flashed zbbridge from Sonoff. I repaired my christmas lights in Home Assistant 2 days ago, but it's not working. Should I wait for an update of HA? And is compatibility in Deconz equal to ZHA?
Sorry but that link was only for reference for the developers. Support is deCONZ does not equal support in ZHA. ZHA and deCONZ are two different Zigbee gateway products. From an end-users point-of-view they have nothing to do with each other but developers from different can learn from each others success and failures so the information provided there could possibly help ZHA developers come closer to a solution for ZHA, however, it is no guarantee and no time-frame can be given based on that.
Found this so it should work I guess:
https://zigbee.blakadder.com/Lidl_HG06467.html
But I repaired it 5 min ago and it's not seeing it properly
Sorry but that information on that website is just wrong in regards to ZHA compatibility with Melinera LED String Lights from Lidl.
Strange though as website code does not list ZHA https://github.com/blakadder/zigbee/blob/master/_zigbee/Lidl_HG06467.md
Currently I'm using the zha device handler and switching to deconz interferes with zha so I have to move all my devices to deconz.. or is there a way both integrations can work at the same time?
You can only use both integrations at the same time if you buy/have two separate Zigbee USB adapters. That is, you can only use any Zigbee USB adapter exclusivly with one Zigbee integration, and any Zigbee integration can in turn only have one adapter.
I'm new with ZHA and using it with a flashed zbbridge from Sonoff. I repaired my christmas lights in Home Assistant 2 days ago, but it's not working. Should I wait for an update of HA? And is compatibility in Deconz equal to ZHA?
Sorry but that link was only for reference for the developers. Support is deCONZ does not equal support in ZHA. ZHA and deCONZ are two different Zigbee gateway products. From an end-users point-of-view they have nothing to do with each other but developers from different can learn from each others success and failures so the information provided there could possibly help ZHA developers come closer to a solution for ZHA, however, it is no guarantee and no time-frame can be given based on that.
Found this so it should work I guess:
https://zigbee.blakadder.com/Lidl_HG06467.html
But I repaired it 5 min ago and it's not seeing it properly
Sorry but that information on that website is just wrong in regards to ZHA compatibility with Melinera LED String Lights from Lidl.
Strange though as website code does not list ZHA https://github.com/blakadder/zigbee/blob/master/_zigbee/Lidl_HG06467.md
Thank you for your detailed answer. If the blakadder website is not correct, then that explains why it is not working. I've tried to figure out how to make a quirk on my own, but it's just too complicated for me as I'm not very familiar with ZHA and zigbee. Hopefully someone will step up and make a working quirk.
Hey @blakadder Its somthing wrong with your metadata or so of some devices. The HG06467 is only supported by Z2M and deCONZ (partly but working) and is not implanted in ZHA then we have not finding one way getting one device to our devs in US for implanting it.
Thanks in advance.
website was going on the statement that zha will work with all zigbee lights. I removed that part from the code now
Thanks @blakadder ! That is true for "normal" lights that is reasonable working with some zigbee standards. The on/off is standard zigbee but all other "tuya" commands must being sniffed and and implanting for working with the system to getting the christmas tree lighting to working.
that zha will work with all zigbee lights
Should have been with all "Standard" Zigbee lights, i.e. devices with server clusters: 6, 8 and 300 Tuya devices a hardly standard Zigbee Lights. :) Unless for regular users we also need to put a disclaimer that ZHA won't work with Bluetooth, Zwave and WiFi lights.
website was going on the statement that zha will work with all zigbee lights. I removed that part from the code now
that zha will work with all zigbee lights
Should have been with all "Standard" Zigbee lights, i.e. devices with server clusters: 6, 8 and 300 Tuya devices a hardly standard Zigbee Lights. :) Unless for regular users we also need to put a disclaimer that ZHA won't work with Bluetooth, Zwave and WiFi lights.
Seems the site is displaying it wrong. The MD file shows only z2m
@blakadder FYI, I think that the same should go for Zigbee2MQTT and Tasmota2Zigbee (Tasmota 2 Zigbee).
For deCONZ and T2Z its true but for Z2M all "normal" devices need being added in there database for working out of the box. https://github.com/Koenkk/zigbee-herdsman-converters
You can adapt most devices in Tasmota since it usually operates with endpoints and codes from ZCL
@Hedda same what?
website was going on the statement that zha will work with all zigbee lights. I removed that part from the code now
@Hedda same what?
Suggest that you reconsider if your website should automatically list all Zigbee lights as supported by any gateway product. You can always assume but you can not know for sure that all Zigbee lights until someone have tested the device with that solution.
the only thing that is not correct on @blakadder site is the color temperature.
Brightness, color xy and on/off work as they should.
Now we are just waiting for ZHA to also support the effect option
The normal Zigbee cluster is working but the tuya commands is not implanted yet :-))
Hope to see your christmas tree then you have getting it Zigbeesized !!!
website was going on the statement that zha will work with all zigbee lights. I removed that part from the code now
@Hedda same what?
Suggest that you reconsider if your website should automatically list all Zigbee lights as supported by any gateway product. You can always assume but you can not know for sure that all Zigbee lights until someone have tested the device with that solution.
All lights that are automatically supported is if the developer of the said gateway solution stated so.
I also not claim they're supported, the website clearly states Confirmed working which is true. Not having all features available is not the same thing
the only thing that is not correct on @blakadder site is the color temperature.
Brightness, color xy and on/off work as they should.
Now we are just waiting for ZHA to also support the effect option
I have tested it, It turns on and off, but color pick or brightness are working a bit iffy. Colors not always match and brightness is very unpredictable. Fingers crossed for good support soon
any update?
If we could send custom states with a ZHA service, then it should work.
For example, with Z2M i'm using this:
type: button
tap_action:
action: call-service
service: mqtt.publish
service_data:
topic: zigbee2mqtt/christmas_lights_1/set
payload: >-
{"effect":{"effect":"glow","speed":100,"colors":[{"r":164,"g":168,"b":50},{"r":168,"g":50,"b":153},{"r":102,"g":50,"b":168},{"r":50,"g":155,"b":168},{"r":50,"g":168,"b":72},{"r":168,"g":88,"b":50}]}}
name: Glow
Is your feature request related to a problem? Please describe. The Christmas lights of Lidl are recognized. But only with an on/off switch and a brightness. Switching the lights on and off work. Doing something with the brightness results in the lights going to a shade of white, eventhough a colour was set previously
Describe the solution you'd like At first: proper brightness and colour control
After that: implementation of the different effects avaiable:
[Name] [Options] Steady (color) Snow (color, speed) Rainbow (speed) Snake (color list up to 6, speed) Twinkle (color list up to 2, speed) Fireworks (color, speed) Horizontal Flag (color list up to 3, speed) Waves (color list up to 3, speed) Updown (color list up to 2, speed Vintage (color, speed) Fading (color, speed) Collide (color, speed) Strobe (color list up to 5, speed) Sparkles (color list up to 3, speed) Carnival (color list up to 6, speed) Glow (color list up to 6, speed)
Manuals
Device signature
Additional context