Page 1 of 1
Vstarcam Wifi LED bulb
Posted: Monday 30 November 2015 18:22
by burton666
I bought a couple of these from aliexpress a while ago, they where pretty cheap ~20Eur but the app is worthless as it as in chinese and I have not found any way to use them without the app.
The bulbs get there own IP and comunication seems to be over UDP.
Is there any chance that it will be possible to control them from domoticz?
Here are a link to the bulb.
http://www.aliexpress.com/item/VStarcam ... eb201560_7
Here are some more info from another forum when I last tried to figure out how to control the bulbs.
http://forums.hackaday.com/viewtopic.php?f=5&t=5467
Re: Vstarcam Wifi LED bulb
Posted: Monday 30 November 2015 19:10
by ThinkPad
Have a look at my topic:
http://domoticz.com/forum/viewtopic.php?f=38&t=7957
I have a small RGB-ledstrip dimmer that also works only with an Android app. I was able to sniff the traffic with Wireshark and controlling the dimmer with my own scripts eventually.
How i did it:
Connected a spare router to my PC, set it up as accespoint (disable DHCP server on the router) and let the app/dimmer connect to that new network.
By doing it that way, the traffic MUST pass through the PC, so i was able to log it much easier. Afterall, the commands for my dimmer turned out to be quite simple. But for your bulb it might be harder, don't know.
I used this filter to filter out the interesting data:
udp.port eq 30978 and udp.port eq 30977
In your case it uses port 55056 and 5580 (i saw that on the screenshot on Hackaday forum), so i would try this:
Code: Select all
udp.port eq 55056 and udp.port eq 5880
It will probably be in HEX-format. Have a look in my topic to see how that works.
Re: Vstarcam Wifi LED bulb
Posted: Tuesday 01 December 2015 14:21
by burton666
Thanks, but I don't really know how to proceed. How do I know what part of the data that is the interesting part?

- wireshark.PNG (97.09 KiB) Viewed 2651 times
Re: Vstarcam Wifi LED bulb
Posted: Wednesday 02 December 2015 10:42
by ThinkPad
It's very hard to tell from here what you should look for. I am not a network specialist, so i can't say: 'look for ABC or XYZ in menu ...'
I think the messages are a bit long and also those are sent to the broadcast address (.255). Aren't there any shorter messages that are send to the IP of the bulb itself (does it get an IP from your router?).
Re: Vstarcam Wifi LED bulb
Posted: Friday 12 February 2016 13:13
by ChrisMuc
Hi!
Did anyone in the meantime manage to reverse engineer the protocol?
I received my wifi led bulb yesterday, and will try to reverse engineer it, if not already done.
Cheers,
Chris
Re: Vstarcam Wifi LED bulb
Posted: Saturday 27 February 2016 23:02
by burton666
Sorry for the slow response, but I fiddled around little with the bulbs and after connecting it to the wifi using the crappy chinese e4home app. I have managed to send some commands to it. Maybe some of you brainiacs could compose some kind of script or similar to be able to control it a little more easy.
Send a UDP packet to the Ip of the bulb and the port 5880 (I don't know if the port is the same for all bulbs)
with this similar "data":
55 aa 00 31 01 00 00 00 00 00 00 14 31 a1 00 00 00 00 20 00 03 00 00 18 37 34 c7 00 00 00 00 01 e7 00 0c 00 00 00 00 29 c9 00 00 00 00 01 2c 01 2c
I suck at this kind of stuff but the underlined part ( and probably some part to the right of the underlined part) seems to be a hex value for the color. I have had some problems getting the same color as the one i expected from the hex value I change it to so I am guessing that you specify one, two or three hex values and the colormix is the result. I have not had the time to figure that one out
Re: Vstarcam Wifi LED bulb
Posted: Saturday 27 February 2016 23:23
by Derik
is this rgbw bulb, Philips Hue like?
Or more a wifi bulb like applamp ?
Re: Vstarcam Wifi LED bulb
Posted: Tuesday 01 March 2016 11:02
by burton666
I don't understand what you mean but the lamp is rgb like the hue and uses Wifi for communication directly, no bridge. I don't know the lux or color accuracy as I don't own any other rgb bulb to compare it to.
Re: Vstarcam Wifi LED bulb
Posted: Tuesday 01 March 2016 19:23
by Derik
burton666 wrote:I don't understand what you mean but the lamp is rgb like the hue and uses Wifi for communication directly, no bridge. I don't know the lux or color accuracy as I don't own any other rgb bulb to compare it to.
Sorry.
The Hue is 1000% better then the Wifi bulbs...
That is why iam asking, i do now this lamp.. only perhaps it is a cheaper option..
Re: Vstarcam Wifi LED bulb
Posted: Sunday 24 July 2016 23:11
by gschmott
For those of you who may still be interested in controlling the VStarCam AF820 Smart Light. . .
Although I have had no success programming the ESP-8266 directly on the VStarCam AF820 Smart Light itself, I have had some luck deciphering the protocol used to communicate with it. I have created a Node.js project that you can use to control the bulb (via MQTT) and also documented what I know/understand of the protocol. Perhaps this will benefit someone interested in integrating the bulb into an IoT network.
The project can be found here:
https://gitlab.com/iot/af820smartlight
Let me know if there are any questions. Have Fun!