Hi have managed to do a packet trace on the communications between an iPad running HUI Light and the Nue bridge. The app appears to communicate directly with the Nue over TCP port 8001.
Apon initial connection the Nue transmits an enumerated list of the Custom Scenes, Groups and devices back to the iPad. The App then controls devices/groups/scenes by sending a single “command” packet which seems to get a single “status” response. None of this communication appears to be secured or encrypted. From the formatting of the TCP packets there is obviously some kind of rather basic API behind this communication that could be reverse engineered if someone was so inclined. Would be nice if they (fbee/fiebit) just published it though.
All that aside I still cannot get the Android app to work beyond the first run. I can tell that during the second & subsequent runs it never even gets to the point where it tries to communicate with the Nue (no transmission on network to the Nue) before it crashes. Also found the crash report on the Android phone that says error is related to a programming error "java.lang.NumberFormatException: For input string: “R01"”. I did find that by going in to settings / app / Hui Light / Storage and deleting all data it will run one more time (have to repeat this every time though). I am assuming the app is enumerating devices and saving to local storage to speed up subsequent runs but this is corrupted in some way causing crash unless you delete the saved data.
Again app works 100% all the time on an iPhone but really want it to work on my S8. There does not seem to be any official support channel for this app (not that I can find anyway). Given its last update date not sure if its been abandoned in favor of Hui Home - this would be unfortunate as I think its a much better app.