-
Notifications
You must be signed in to change notification settings - Fork 53
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
Connecting to a Pure Hot+Cool Hangs #12
Comments
Hi, I have been quite busy this last month but I'll take a look quickly ! |
Hi, I have a connection issue too (no discovery, no manual connection). How can I help? |
I'm also having a similar (or related issue), in that it hangs on second run? I also notice in VS code that some threads are still lingering
|
import json
from libpurecoollink.dyson import DysonAccount
from libpurecoollink.const import FanSpeed, FanMode, NightMode, Oscillation,
FanState, StandbyMonitoring, QualityTarget, ResetFilter, HeatMode,
FocusMode, HeatTarget
if __name__ == '__main__':
with open('config.json') as json_data:
config = json.load(json_data)
dyson_acc = DysonAccount(config["dyson_user"], config["dyson_pass"], config["dyson_lang"])
login_status = dyson_acc.login()
if not login_status:
print("Failed to login to Dyson account.")
devices = dyson_acc.devices()
device = devices[0].connect("192.168.1.157")
Using the above code, results in a hang on the connect line. Doesn't matter if I use auto_connect or connect directly to the host. If I manually connect to the device using paho-mqtt(and I captured the user/pass using wireshark) I am able to connect no problem. I have tried it from multiple environments/hosts all who can talk directly to the device.
The text was updated successfully, but these errors were encountered: