Skip to content
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

setMesh(), light.off()... raises an Assertion Error #9

Open
matthiaaas opened this issue Mar 2, 2019 · 7 comments
Open

setMesh(), light.off()... raises an Assertion Error #9

matthiaaas opened this issue Mar 2, 2019 · 7 comments

Comments

@matthiaaas
Copy link

Hey Leiaz,

I get an error when I try to interact with my bulb. It works well to connect and disconnect but when I try to do setMesh(), light.off() or something else it raises an AssertionError and I've no idea why.
Ignoring this and continuing executing the script doesn't work and the error still exists.

Help would be awesome.

Regards

@Leiaz
Copy link
Owner

Leiaz commented Mar 2, 2019

The complete error message would be helpful.

@matthiaaas
Copy link
Author

matthiaaas commented Mar 2, 2019

Traceback (most recent call last):
	File "/home/pi/.../python-awox-mesh-light/main.py", line 17, in <module>
		mylight.setMesh("mesh_name", "mesh_pwd", "mesh_key")
	File "/home/pi/.../python-awox-mesh-light/awoxmeshlight/__init__.py", line 152, in setMesh
		assert (self.session_key)
	AssertionError

@Leiaz
Copy link
Owner

Leiaz commented Mar 2, 2019

It means there is no session_key . Did you check if connect returned True ?

@matthiaaas
Copy link
Author

It's False. What's the problem?

@Leiaz
Copy link
Owner

Leiaz commented Mar 2, 2019

You can try to get more info with the debug messages see here.

@matthiaaas
Copy link
Author

Yes, it raises and Auth error. Something is wrong with the password and/or the name of the bulb.

@Leiaz
Copy link
Owner

Leiaz commented Mar 3, 2019

If you used the AWOX app, you have to get the password from the app in some way, or reset the light to default password, if you don't want to keep using the app.

Some sniffed the packets sent by the app, if you have root access to your android device, with adb root for instance, you can try looking in the app config files (in /data/, although I didn't check).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants