python-zengge icon indicating copy to clipboard operation
python-zengge copied to clipboard

Feature Request: Support for Bluetooth LED Strips

Open FaserF opened this issue 5 years ago • 4 comments

Hi Thanks for your work. Is it possible to add support for bluetooth LED Stripes (like ones with "Happy Lightning" App), these should be very similar. Or should these already work?

FaserF avatar Oct 22 '20 12:10 FaserF

Hi, I too would have great interest in such addition. I got hands on this kind of led strip, and I would love to be able to drive them directly in Home Assistant since Zengge is available as an integration. I have started playing with Zengge and those strips, and so far I observe the following differences :

  • the handle to control the led strip is not 0xffe9 but 0xffd9. Changing this handle allow me to drive my strip on, off and change color
  • the handle to get notified about state change is not 0xffe4 but '0xffd4`. Changing this handle allows me to properly receive state updates on strip connection

However I see no activity since 2017 neither on github nor pip... @mjg59 are you still using this binding to drive Zengge equipements ? If so, are you open to contributions for light strips ? If so, would you put the effort, if the feature is added, to push it to pip/hass ? Or are you using another tool now ?

Tropicao avatar Dec 04 '20 17:12 Tropicao

I am still using this, and happy to take patches. Does the UUID of the service in the advertisement change? If so it's easy to make this conditional, but otherwise we can just look for ffe9 and fall back to ffd9 if it's not there.

mjg59 avatar Dec 04 '20 20:12 mjg59

I am still using this, and happy to take patches. Does the UUID of the service in the advertisement change? If so it's easy to make this conditional, but otherwise we can just look for ffe9 and fall back to ffd9 if it's not there.

Glad to hear this :) About the advertising, I see the following in the advertising payload :

LEN TYPE VALUE
2 0x01 0x06 (flags)
3 0x02 0xE0FF (incomplete list of 16bits UUID)
19 0x09 Local name => "Triones-5908041659"
8 0xFF 0x0000000000000000

What is expected in case of a real Zengge lighting ?

Tropicao avatar Dec 07 '20 07:12 Tropicao

I'm away from home at the moment, so can't check right now - I'll try to look into that at the weekend.

mjg59 avatar Dec 07 '20 22:12 mjg59