CharlesBlonde / libpurecoollink

Dyson Pure Cool link python library
http://libpurecoollink.readthedocs.io
Other
205 stars 54 forks source link

Can't log into Dyson account #18

Open xxKeoxx opened 6 years ago

xxKeoxx commented 6 years ago

Is this still supported? I can't seem to get a successful login. I know my ID and PW are correct because I can log in with them just fine on the dyson site.

xxKeoxx commented 6 years ago

Never mind. The instructions say you need to pass the language code, but it's actually country code.

tshamilton commented 5 years ago

Thanks for that, it's the difference here between "EN" and "AU" (Australia).

Meanwhile, I'm logging in OK, it's identifying my fan, but I'm not getting it to do anything, and it's throwing InsecureRequestWarning when I run my test script (cut and pasted from the main site). Are you having any luck?

trevorludgate commented 5 years ago

Try adding this to your script: import urllib3 urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)

Let me know! :)

tshamilton commented 5 years ago

Thanks trevor! that's certainly got rid of the message, now to work out why it's not responding to commands...

LauraFlem commented 5 years ago

Hi there, having some issues myself with set up. I think I can correctly log onto my dyson account but when I try to list the devices registered to the account it outputs nothing, even though I have a dyson pure cool fan registered online. Has anyone come across this? I was also getting the InsecureRequestWarning message but now that I added the suggestion made above to the script it outputs nothing. Any help would be greatly appreciated :)

exking commented 5 years ago

Hi there, having some issues myself with set up. I think I can correctly log onto my dyson account but when I try to list the devices registered to the account it outputs nothing

Please look at https://github.com/CharlesBlonde/libpurecoollink/issues/14 as it adds support for newer devices.

LauraFlem commented 5 years ago

Please look at #14 as it adds support for newer devices.

@exking Did you have any issues manually connecting your device? However I have downloaded the branch made to support newer devices and can now see my fan but it wont connect. I get the following output:

`Traceback (most recent call last):

File "", line 18, in connected = devices[0].connect("192.168.1.2")

File "C:\Users\elec\Anaconda3\lib\site-packages\libpurecoollink\dyson_pure_cool_link.py", line 148, in connect return self._mqtt_connect()

File "C:\Users\elec\Anaconda3\lib\site-packages\libpurecoollink\dyson_pure_cool_link.py", line 157, in _mqtt_connect self._network_device.port)

File "C:\Users\elec\Anaconda3\lib\site-packages\paho\mqtt\client.py", line 839, in connect return self.reconnect()

File "C:\Users\elec\Anaconda3\lib\site-packages\paho\mqtt\client.py", line 962, in reconnect sock = socket.create_connection((self._host, self._port), source_address=(self._bind_address, 0))

File "C:\Users\elec\Anaconda3\lib\socket.py", line 712, in create_connection raise err

File "C:\Users\elec\Anaconda3\lib\socket.py", line 703, in create_connection sock.connect(sa)

TimeoutError: [WinError 10060] A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond`

Auto connect also will not work.

exking commented 5 years ago

@LauraFlem mine connects just fine

georgeglessner commented 5 years ago

@LauraFlem Try to use nmap to find correct IP of your device nmap -p 1883 192.168.0.1/24 --open change the 192.168.0.1 to whatever your network address is.

jagribble commented 4 years ago

Has anyone been able to connect to it recently? I'm getting a 404 response.

theho commented 4 years ago

Has anyone been able to connect to it recently? I'm getting a 404 response.

I am getting 404 as well. Is anyone else experiencing the same issue?

exking commented 4 years ago

switch to this