home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
73.37k stars 30.64k forks source link

Dyson Integration unable to log on #38607

Closed olbjan closed 4 years ago

olbjan commented 4 years ago

The problem

Starting within the last 24 hours the Dyson integration has stopped working when HA is being restarted. It can no longer log on to the Dyson cloud account.

Environment

Problem-relevant configuration.yaml

dyson:
  username: !secret dyson_user
  password: !secret dyson_password
  language: DE
  devices:
    - device_id: !secret dyson_device_id # eg: Pure Cool Link device
      device_ip: 192.168.0.19

Traceback/Error logs

2020-08-06 17:45:15 INFO (MainThread) [homeassistant.setup] Setting up dyson
2020-08-06 17:45:15 INFO (SyncWorker_5) [homeassistant.components.dyson] Creating new Dyson component
2020-08-06 17:45:15 INFO (SyncWorker_5) [homeassistant.components.dyson] Creating new Dyson component
2020-08-06 17:45:15 ERROR (SyncWorker_5) [homeassistant.components.dyson] Not connected to Dyson account. Unable to add devices
2020-08-06 17:45:15 ERROR (SyncWorker_5) [homeassistant.components.dyson] Not connected to Dyson account. Unable to add devices
2020-08-06 17:45:15 INFO (MainThread) [homeassistant.setup] Setup of domain dyson took 0.7 seconds
2020-08-06 17:45:15 ERROR (MainThread) [homeassistant.setup] Setup failed for dyson: Integration failed to initialize.

Additional information

arifroni commented 4 years ago

I have replaced the dyson.py and it is working now. I am using HASS OS on raspberry pi4 btw. now, once it is fixed from home assistant, the copied dyson.py will be replaced, right?

googanhiem commented 4 years ago

I have replaced the dyson.py and it is working now. I am using HASS OS on raspberry pi4 btw. now, once it is fixed from home assistant, the copied dyson.py will be replaced, right?

Yes. You won't have to do anything else, it should just work.

More detail: Two files will be replaced behind the scenes by HA. The manifest.json in the HA dyson integration will include a requirements update, which will trigger HA to download the new Libpurecool library replacing dyson.py again. We're still awaiting @etheralm reviewing the pull request for the Libpurecool library, so this may be a HA version or two away.

etheralm commented 4 years ago

Hey guys, sorry about the delay, I just got back and saw my inbox. Thank you for figuring out what the issue was. I'll push a an update for libpurecool immediately. I'll let you know when it's done.

theboystu commented 4 years ago

Running Home Assistant 0.113.1 inside VM on Ubuntu, have ssh into hassio and used

find name dyson.py No such file or directory

Could someone please tell me where this file is likely to be saved?

This is currently what I have in config.yaml

dyson: username: myemail password: mypassword language: AU devices:

When I start HA I get the following...

Setup failed for dyson: Integration failed to initialize. 16:37:55 – setup.py (ERROR) Not connected to Dyson account. Unable to add devices 16:37:55 – dyson (ERROR)