Integration for Sengled Boost (LED+WIFI Router)

I have one of this bulbs and I was trying to find a way to integrate it into homeassistant.
The only way to control the light is via the mobile app (android) and only within the lan (no cloud).
What I figured out so far:
-It has a built in router with an web interface on port 80 (no light functions exposed)
-Can access telnet on port 23 (default admin:admin)
-It also has DNS port open.
I was able to spy the connection between android app and the bulb and found that comunication is on port UDP 9060 this is the command I get on wireshark:
Turn on lamp:

User Datagram Protocol, Src Port: 9060, Dst Port: 9060
    Source Port: 9060
    Destination Port: 9060
    Length: 37
    Checksum: 0x4f65 [unverified]
    [Checksum Status: Unverified]
    [Stream index: 0]
    [Timestamps]
Data (29 bytes)
    Data: 0d00020001c0a8016cc0a80157c0a8016cc0a801570100010000006464
    [Length: 29]

Turn off lamp:

User Datagram Protocol, Src Port: 9060, Dst Port: 9060
    Source Port: 9060
    Destination Port: 9060
    Length: 37
    Checksum: 0xb365 [unverified]
    [Checksum Status: Unverified]
    [Stream index: 0]
    [Timestamps]
Data (29 bytes)
    Data: 0d00020001c0a8016cc0a80157c0a8016cc0a801570100010000006400
    [Length: 29]

How can I replicate this commands to the bulb? Not sure what to do next, maybe someone can help with example of another integration that uses this aproach.

Thanks in advance

I was able to make it work on comand line with netcat and I’m using command_line platform on home assistant:
For now it is only working with on off comand, the light supports dimming, I might dig in this latter, also ha doesn’t know if the light is initially on or off (need to inspect the trafic between the app and the bulb to discover):

  - platform: command_line
    switches:
      sengled_boost:
        command_on: echo -e "\x0d\x00\x02\x00\x01\xc0\xa8\x01\x6c\xc0\xa8\x01\x57\xc0\xa8\x01\x6c\xc0\xa8\x01\x57\x01\x00\x01\x00\x00\x00\x64\x64" | nc -u -w1 -p 9060 192.168.1.87 9060
        command_off: echo -e "\x0d\x00\x02\x00\x01\xc0\xa8\x01\x6c\xc0\xa8\x01\x57\xc0\xa8\x01\x6c\xc0\xa8\x01\x57\x01\x00\x01\x00\x00\x00\x64\x00" | nc -u -w1 -p 9060 192.168.1.87 9060

Had an hard time to figure out the -w1 switch as it was only working once after each restart (I guess you have to close the port connection after each packet) -q1 wasn’t working for me. Also, I had to install netcat as the version on busybox didn’t have option for udp.

Hi n0t,

It’s been a while since your post, but I want to let you know that It worked for me, so thank you!!

Did you ever find out how to setup the dimming option, or HA recognize the initial state?

btw, I’m a truly begginer!!

THANKS!!

I’m glad it worked for you. I didn’t spend much more time investigating on this. I’m still using it as my main goal was to make it respond to all lights off.