-
-
Notifications
You must be signed in to change notification settings - Fork 144
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
Initial pairing instructions #53
Comments
I also found that while I could send If it helps, here's the activity that the app generated when changing SSID ( And here is the activity when clicking the "factory reset" button. Oddly, the SSID and password used are from the current connection when the reset is initiated. Here's the output of
I had actually been trying to figure out how the UDP communications worked myself before I found this repo. I had been working on my own library for controlling these lights independently that was much more hacked together and not nearly as complete. |
EDIT: Looked at this again today with the full manual and it seems to be working as it should (maybe because I sent AT+Z to reset). It looks like many of these commands no longer work; I have a newer light (MagicLight) that reports model AK001-ZJ200 and version 44_25_20180904 when I send HF-A11ASSISTHREAD\r and AT+LVER\r respectively. No response to any other commands; the commands are received by the bulb according to wireshark, but no response is given and setting WMODE seems to not work. Any ideas where to go from here? |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
I'm getting an +ok= response but nothing after the = any idea what i might be doing wrong? |
This issue comes up early in google searches and contains the excellent @Chris-Johnston wireshark captures that were instrumental in solving this problem on my newer Magic Home LED controller. Please forgive the necroposting but I'm trying to help anyone else with a similar problem on newer controllers. My Magic Home WiFi LED controller (affiliate link) didn't work quite as above. It has a version identifier AK001-ZJ2145 which is different, so not surprising that it behaves differently. Some of the changes appear to be them actually fixing the well known security problems with these controllers, they're still not safe to put on the public internet though. I powered mine up with 12VDC and scanned for new SSIDs. Mine came up as LEDnet003325A63A where the MAC address ends with 25A63A. I had used the above instructions and managed to soft-brick it so needed to reset to get back to a working state. These controllers no longer revert to AP mode if they can't connect (it was a security problem) so you have to factory reset if something doesn't work. To factory reset, timing is important.
The commands below are for Linux, Windows users might have to do things differently. Connect to LEDnet0033xxxxxx via WiFi with DHCP enabled. To configure it for your WiFi set the credentials variables and run the following: Four of the commands should return +ok, but a few return nothing. I used zengge-lightcontrol to verify operation. To install it, use: You can also use netcat to set the color: I hope this helps someone. |
I've been trying to get one of mine to work. Edit: Okay, it worked now. However, I still can't get it connected.. apparently the password length for the network is limited to 10 characters, anything longer and the connection fails cause it only sends a partial pass.. awesome. |
What commands are you actually sending? |
I sent the complete script by @Chisight multiple times, and also broke it into single commands. For some reason, this didn't work until the fifth time. |
We're going to work on adding the ability to the flux_led but it's probably a few months out. Have you tried just using the App to add them to the network and then using flux_led to control them? |
Yes. I initially tried to use the app and then tried this method BECAUSE the app failed to connect it. I tested it out with a different access point and every time the password exceeds 10 characters, the connection fails cause the password sent is not complete. |
My pass is 10 characters long. I'll make it 11 and see if I can figure it out. |
I found a sort of workaround.. by attaching a small USB Wifi stick to the Odroid, and setting up the addon "Hassio wifi hotspot", I can provide a seperate network for these strip controllers with a shorter password. |
Well.. or not. After a while of being offline (unplugged), the controller simply forgets all settings and returns to factory settings, it appears. I can reconnect it using the app again, but not access it until I go through the whole "find new device" thing. |
I run a separate wifi SSID for my IOT devices that only operates on 2.4 ghz and is segmented off from the rest of my network for this exact reason. Not sure if your wifi setup supports this. |
That's how it's set up now, with the access point being on the HA device itself. My main router doesn't allow for a second SSID. |
#58 has some helpful decoding on setting the sort order |
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
We might have enough info to provision the newer ones over Bluetooth now |
Hi,
as the app did not work for my led strip (AK001-ZJ200 as reported by HF-A11ASSISTHREAD), I decided to dig a bit how to do it without the app and wrote this up just in case someone else wants to do the same, or if someone wants to try to integrate this to the code-base.
I found a link to a spec sheet from https://github.com/vikstrous/zengge-lightcontrol which describes the 48899 port communication to some extent: http://www.hi-flying.com/downloadsfront.do?method=picker&flag=all&id=dc406e44-84ec-4be1-ab11-a4ce403f6d3f&fileId=0f147d14-d0aa-4fc8-b01f-36e43418d19d .
For starters you must connect to the network advertised by the device
LEDnetXXXX
or similar.It should also be noted that some commands require passing a
\r
while others do not.On successful commands this device yields
+ok=
(for queries followed by the response).The wifi mode can be queried and set with the AT+WMODE command, so the first step was to change the controller from AP to STA mode:
This device required
STA
all uppercase, a diversion from that spec sheet.Setting the SSID and the key worked as follows:
The first two parameters needs to be adjusted accordingly depending on used encryption mode and cipher, this device accepted only all-uppercase variants. Note that adding
\r
after the password would include that in it, the same is probably true for the name of the network.After that the device can be rebooted and will hopefully connect to the network:
Apparently some sort of software version can be requested by using VER, FVER and/or LVER, on my device only LVER did give a response:
It would be nice to have this integrated into this library & script, but I don't unfortunately have time for it. Hopefully this can be helpful to someone who wants to implement it, and maybe it helps someone who is looking into how to get these paired without the official "magic home" app.
The text was updated successfully, but these errors were encountered: