Leiaz / python-awox-mesh-light

Python package to control Awox mesh light bulbs.
MIT License
69 stars 15 forks source link

Unknown failure when setting mesh #12

Open slvwolf opened 5 years ago

slvwolf commented 5 years ago

When executing the example script for setting the mesh configuration I receive an unknown failure. Running the same script on the remote works fine. The problem seems to only happen with the setMesh command, other commands such as setColor works fine.

Light is RGBW Eglo LED panel.

Any idea what is the error code about?

Script,

import awoxmeshlight
import logging
logger = logging.getLogger("awoxmeshlight")
logger.setLevel(logging.DEBUG)
handler = logging.StreamHandler ()
handler.setLevel(logging.DEBUG)
logger.addHandler (handler)
mylight = awoxmeshlight.AwoxMeshLight ("xx:xx:xx:xx:xx:xx", "R-ACCXXX", "1234")
mylight.connect()
mylight.setMesh("PixtxaLightNet", "IeY3johvoosh","4556572782865925")
mylight.disconnect()

Output,

Connected.
Receiced notification from characteristic 00010203-0405-0607-0809-0a0b0c0d1912
Received message : b'\x18\x82\x12\x00\x00,\x15\xdc`\x01\xdd\x11\x01\x7f\x11d\xff\x003\x00'
Mesh network settings change failed : bytearray(b'\x0e')
Disconnecting.
Leiaz commented 5 years ago

This code is the same as the one for "wrong password" when connecting. Maybe if you have other devices, make sure you are using the same mesh name and passwords. I never used more than one light, so I didn't test the mesh network features.

fsaris commented 4 years ago

Had the same error message here. After making the mesh_name and mesh_password shorter I could succesfully update the values. And could "pair" the light :)