Replies: 3 comments
-
Beta Was this translation helpful? Give feedback.
-
Thank you, I finally found why the _client_connected is still false with your help. In the connect method of protocol.py, an exception is thrown:
Googling this one, the error was caused by the paho-mqtt version which is > 2.0.0 in my case. Reinstalling an older version solves the issue : I keep going to play with the module without HA, thank you! |
Beta Was this translation helpful? Give feedback.
-
@0rsa I am going to refactor whole connected/disconnected state handing because currently it is not working correctly and mqtt connection only guarantees the cloud connection but not connection to the device since it's just a cloud relay for getting the updates from device. What I recommend to you is using the |
Beta Was this translation helpful? Give feedback.
-
Hello,
First, thanks for the library and the hard work done (This is the only library that I know of that allows you to use a Dreame account).
Since I'm not using Home Assistant, I'm trying to use the dreame module separately with a custom script.
I'm trying to instantiate a new DreameVacuumDevice using the latest beta released on yesterday.
device = DreameVacuumDevice(params)
then I call the update method to init the connection.
device.update()
It connects successfully to the cloud and to the device but it fails at these lines in the update() method
Even it the connection is a success in the logs :
I'm not able to find where the "device_connected" attribute is set to true in the process.
Can you help me to go in the right way? I think and I hope it can be useful for people who don't use HA as domotic core.
Thank you! 😄
Beta Was this translation helpful? Give feedback.
All reactions