shenxn / ha-dyson

HomeAssitant custom integration for dyson
MIT License
312 stars 59 forks source link

Is it possible to use local integration without Dyson Link app at all? #147

Open c1tru55 opened 2 years ago

c1tru55 commented 2 years ago

Hi.

I have Dyson Pure Humidify+Cool PH01, but in my country Dyson Link app is not available. I tried to download apk file, but still without success, device is not added to the app.

I tried to use get_devices.py script, but got an error:

c1tru55@c1tru55-nuc:~/libdyson$ python3 get_devices.py 
  from cryptography.hazmat.primitives.ciphers import Cipher, algorithms, modes
Please choose your account region
1: Mainland China
2: Rest of the World
Region [1/2]: 2
Region code: ***
Email: ***
Traceback (most recent call last):
  File "get_devices.py", line 22, in <module>
    verify = account.login_email_otp(email, region)
  File "/home/c1tru55/libdyson/libdyson/cloud/account.py", line 127, in login_email_otp
    auth=False,
  File "/home/c1tru55/libdyson/libdyson/cloud/account.py", line 114, in request
    raise DysonInvalidAuth
libdyson.exceptions.DysonInvalidAuth

Is it possible to use local integration without Dyson Link app at all? PS: I also don't see any sticker with wi-fi credentials on my device, only serial no. PPS: when I press power button for 5 sec and wifi icon appears - I don't see any new wi-fi network on the phone. should I?