-
Notifications
You must be signed in to change notification settings - Fork 15
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
Bad documentation #3
Comments
This could be a Python version problem. The So I've tried a workaround for I've updated the README, thanks for your contribution ! |
Thanks for updating the README. I'm no Python expert, too. I'm something between beginner and advanced. I haven't tried pip, I've tried to run setup.py, but (as far I remember) it wasn't working. Well, I should have used pip, thanks for the hint. |
Well, to install firmware-updates and to control my lamp, I also wanted to use the app without resetting my mash-network anytime. But the app has no configuration for the password, so the app has to do the setup and my RaspberryPi needs the data.
Now I can run my simple test script again:
And I can use the app. It isn't possible to use the lamp with the App while the RaspberryPi is connected and Maybe it is also possible to set up the lamp on the RaspberryPi and manipulate the network traffic, so the Remote is getting the correct mesh-name and password it has to use. But I think the other way is more simple. And thanks again to @Leiaz for this awesome piece of code, without I wouldn't be able to control my lamp over my RaspberryPi! |
@Pixtxa : I also plan to control my awox bulb from raspberry, but keeping also the possibility to change the light from the Smart Control app. So I have installed greyshirts.sslcapture (1.4.7 from an apk store), and captured the app after a bulb reset. But I do not get anything readable in the app. I know this is not too much information, but if you could point in any direction, or add some more details on how you have found the necessary information to get the client_id and acces_token information, I would really appreciate it. Thank you in advance! |
The password should also be in the app data, readable if you have root access (with If one of you wants to improve the README, you can send a pull request. I think opening the wiki may be overkill. I'm reopening this to make it more visible. |
I tried this approach but only got a 552 byte data packet when adding my light to the Awox app. This packet contains an empty json, only header information. I also encounter the following request: ` When installing the SSL-Sniffing-Certificate I was given a choice between App/VPN and WIFI. Not knowing exactly what this meant I choose App/VPN and it seemed to work. |
As @Leiaz mentioned, it seems that everything needed is in the application data (root access needed) and all in one readable xml file It looks like that for me
Theoratically this should work to connect: It's not tested yet on my side as I don't have awox device right now with me. |
Nice! And because awox syncs the data on all your mobile devices, it should be possible to use a root-vm to install the app, log in and get the data, without needing the own device to be rooted. And hopefully, this way doesn't offer personal data of other awox-customers. |
Yes it works, i manage to install android x86 on my atom laptop... install the awox app from play store.. at login it crashs but after trying to run the app, i just searched the file and nicelly got all infos like you said.. and now all worked :D nice job guys ;) |
For those who managed to control from python and android please report your configurations using this script: |
But I've got it to run with my EGLOpanel and the Remote with the RaspberryPi (but without the Awox-App, but that's ok). Thanks!!!
I've renamed init.py to awoxmeshlight.py, so "import awoxmeshlight" works. Also I changed Line 3 to "import packetutils as pckt", because "from . import ..." didn't work.
Reset the light (hold PowerOn + Fav. 1) and the remote (hold PowerOn + ColorCyicle) and connect the remote to the light again (hold PowerOn). Now hold PowerOn and the blue button for a few seconds, so the remote switches to Bluetooth-mode. Use BT-app (nRF-Connect or so) to get the mac and name (both will have the same name, its "R-" followed by the last 6 digits of the remotes mac-address). Password will be "1234".
For the remote:
[After setMesh(...) the program didn't work, but the data was set, so i killed the task]
For the light:
[After setMesh(...) the program didn't work, but the data was set, so i killed the task]
Now you can run a simple test script:
Thanks for your work, Leiaz! It helped me a lot. AwoX- and EGLO-Support told me, it wouldn't be possible to do this.
The text was updated successfully, but these errors were encountered: