Closed afk11 closed 2 years ago
May I know where is the dyson.py location if I am using HA Supervised? I tried to search this file inside my Debian but I can’t locate it, thank you
Just run the docker command shown above.
May I know where is the dyson.py location if I am using HA Supervised? I tried to search this file inside my Debian but I can’t locate it, thank you
Just run the docker command shown above.
Thank you, didn’t realise this will work
After applying the dyson.py fix I get further but still errors that it can't connect to my devices like this
2021-02-17 21:12:14 WARNING (SyncWorker_2) [homeassistant.components.dyson] Unable to connect to device DysonPureCool(...)
2021-02-17 21:12:19 WARNING (SyncWorker_2) [libpurecool.dyson_pure_cool_link] Unable to find device XXXXX, try 0
2021-02-17 21:12:28 WARNING (SyncWorker_2) [libpurecool.dyson_pure_cool_link] Unable to find device XXXXX, try 1
2021-02-17 21:12:36 WARNING (SyncWorker_2) [libpurecool.dyson_pure_cool_link] Unable to find device XXXXX, try 2
2021-02-17 21:12:45 WARNING (SyncWorker_2) [libpurecool.dyson_pure_cool_link] Unable to find device XXXXX, try 3
2021-02-17 21:12:53 WARNING (SyncWorker_2) [libpurecool.dyson_pure_cool_link] Unable to find device XXXXX, try 4
2021-02-17 21:13:02 WARNING (SyncWorker_2) [libpurecool.dyson_pure_cool_link] Unable to find device XXXXX, try 5
2021-02-17 21:13:10 WARNING (SyncWorker_2) [libpurecool.dyson_pure_cool_link] Unable to find device XXXXX, try 6
2021-02-17 21:13:19 WARNING (SyncWorker_2) [libpurecool.dyson_pure_cool_link] Unable to find device XXXXX, try 7
2021-02-17 21:13:27 WARNING (SyncWorker_2) [libpurecool.dyson_pure_cool_link] Unable to find device XXXXX, try 8
2021-02-17 21:13:36 WARNING (SyncWorker_2) [libpurecool.dyson_pure_cool_link] Unable to find device XXXXX, try 9
2021-02-17 21:13:39 ERROR (SyncWorker_2) [libpurecool.dyson_pure_cool_link] Unable to connect to device XXXXX
I turned on debug but this is all I get
2021-02-18 17:37:04 WARNING (SyncWorker_0) [libpurecool.dyson_pure_cool_link] Unable to find device XXXXX, try 7
2021-02-18 17:37:07 DEBUG (zeroconf-Engine-803) [zeroconf] Ignoring duplicate message received from '127.0.0.1':5353 (socket 9) (40 bytes) as [b'\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x0b_dyson_mqtt\x04_tcp\x05local\x00\x00\x0c\x00\x01']
2021-02-18 17:37:07 DEBUG (zeroconf-Engine-803) [zeroconf] Ignoring duplicate message received from '172.17.0.4':5353 (socket 9) (40 bytes) as [b'\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x0b_dyson_mqtt\x04_tcp\x05local\x00\x00\x0c\x00\x01']
2021-02-18 17:37:08 DEBUG (zeroconf-Engine-803) [zeroconf] Ignoring duplicate message received from '127.0.0.1':5353 (socket 9) (40 bytes) as [b'\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x0b_dyson_mqtt\x04_tcp\x05local\x00\x00\x0c\x00\x01']
2021-02-18 17:37:08 DEBUG (zeroconf-Engine-803) [zeroconf] Ignoring duplicate message received from '172.17.0.4':5353 (socket 9) (40 bytes) as [b'\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x0b_dyson_mqtt\x04_tcp\x05local\x00\x00\x0c\x00\x01']
2021-02-18 17:37:09 DEBUG (zeroconf-Engine-803) [zeroconf] Ignoring duplicate message received from '127.0.0.1':5353 (socket 9) (40 bytes) as [b'\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x0b_dyson_mqtt\x04_tcp\x05local\x00\x00\x0c\x00\x01']
2021-02-18 17:37:09 DEBUG (zeroconf-Engine-803) [zeroconf] Ignoring duplicate message received from '172.17.0.4':5353 (socket 9) (40 bytes) as [b'\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x0b_dyson_mqtt\x04_tcp\x05local\x00\x00\x0c\x00\x01']
2021-02-18 17:37:11 DEBUG (zeroconf-Engine-803) [zeroconf] Ignoring duplicate message received from '127.0.0.1':5353 (socket 9) (40 bytes) as [b'\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x0b_dyson_mqtt\x04_tcp\x05local\x00\x00\x0c\x00\x01']
2021-02-18 17:37:11 DEBUG (zeroconf-Engine-803) [zeroconf] Ignoring duplicate message received from '172.17.0.4':5353 (socket 9) (40 bytes) as [b'\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x0b_dyson_mqtt\x04_tcp\x05local\x00\x00\x0c\x00\x01']
2021-02-18 17:37:12 WARNING (SyncWorker_0) [libpurecool.dyson_pure_cool_link] Unable to find device XXXXX, try 8
Any update on when this fix will be implemented ?
connect to the console for it and run
docker exec -t homeassistant pip3 install --upgrade git+https://github.com/bfayers/libpurecool.git@fix_auth
Then restart hass.
this made hass again able to see and change temperature but turn on/off does not seem to work.
Hello everyone. Been missing my dyson automations since it broke. I'm running hassos supervised on the hassos vm image. I've logged into the console but I can't seem to find the correct commands to get to the point where I can add the updated dyson.py file for temporary fix. Any suggestion here?
Also, it looks from above comments there's an overhaul for this integration, any preview documentation on this yet as I'm hoping it addresses a few of the shortcomings in current integration.
Hello everyone. Been missing my dyson automations since it broke. I'm running hassos supervised on the hassos vm image. I've logged into the console but I can't seem to find the correct commands to get to the point where I can add the updated dyson.py file for temporary fix. Any suggestion here?
Also, it looks from above comments there's an overhaul for this integration, any preview documentation on this yet as I'm hoping it addresses a few of the shortcomings in current integration.
connect to the console for it and run docker exec -t homeassistant pip3 install --upgrade git+https://github.com/bfayers/libpurecool.git@fix_auth
Then restart hass.
the above fix was suggested to me on my vm and works
@bfayers, haha you beat me to it mention your command that worked like hot cakes for me
I've tried both the Portainer console method
install Portainer Addon, disable protection mode, start addon and open web-ui. in Portainer settings remove core and homeassistant from the disabled devices now from the containr list select homeassistant, clic the console button and enter the three lines above one after the other: cd /usr/local/lib/python3.8/site-packages/libpurecool/ rm dyson.py curl -O https://raw.githubusercontent.com/bfayers/libpurecool/fix_auth/libpurecool/dyson.py Reboot core and Voilà !
as well as the pip3 method
connect to the console for it and run docker exec -t homeassistant pip3 install --upgrade git+https://github.com/bfayers/libpurecool.git@fix_auth Then restart hass.
Both executed and completed successfully, including restarting HA Core. Unfortunately, neither of these solutions has fixed the issue. My Dyson Hot+Cool was working perfectly in Home Assistant before February 11th, but hasn't worked since. I've made zero changes to the Dyson section of my configuration.yaml file. Any help would be much appreciated.
Invalid config The following integrations and platforms could not be set up:
dyson Please check your config and logs.
Logger: homeassistant.setup Source: setup.py:138 First occurred: 5:42:17 PM (1 occurrences) Last logged: 5:42:17 PM
Setup failed for dyson: Integration failed to initialize.
Logger: homeassistant.components.dyson Source: components/dyson/init.py:60 Integration: dyson (documentation, issues) First occurred: 5:42:17 PM (1 occurrences) Last logged: 5:42:17 PM
Not connected to Dyson account. Unable to add devices
Hello everyone. Been missing my dyson automations since it broke. I'm running hassos supervised on the hassos vm image. I've logged into the console but I can't seem to find the correct commands to get to the point where I can add the updated dyson.py file for temporary fix. Any suggestion here? Also, it looks from above comments there's an overhaul for this integration, any preview documentation on this yet as I'm hoping it addresses a few of the shortcomings in current integration.
connect to the console for it and run
docker exec -t homeassistant pip3 install --upgrade git+https://github.com/bfayers/libpurecool.git@fix_auth
Then restart hass.the above fix was suggested to me on my vm and works
I'm using the hassos image (not a native linux image). That command doesn't work
When I login to the console, I have very specific HA commands I have to use.
https://www.home-assistant.io/blog/2018/07/11/hassio-images/
You need to type 'login' then that command afterwards
You need to type 'login' then that command afterwards
+1 to you. I've been using this now for 2 years and up until now I didn't know I could get to the actual shell. Thanks a ton!
You need to type 'login' then that command afterwards
Well I spoke too soon; looks like the integration is still failing after running the command. Is there yaml changes with this update that I need to consider? I've looked at the dyson page and my settings are correct (per the page)
It still fails for me as well, with a plain Docker image and restarting it after upgrading libpurecool
with the command listed above.
I put my system in the beta channel for supervisor. That fixed it, dyson is now working but sadly, I can't get to the supervisor UI anymore. :)
Last week, the problem was solved by replacing dyson.py by:
https://raw.githubusercontent.com/bfayers/libpurecool/auth_customdeps/libpurecool/dyson.py
It stops working today. No success with:
pip3 install --upgrade git+https://github.com/bfayers/libpurecool.git@fix_auth
Broken (again) here also - tried both pip3 install and docker update solutions that worked previously, but no luck this time. I'm running HassOS fwiw. I also reinstalled HACS today - no luck restoring from previous backups, but wonder if there's a new conflict..
something happened again. since a restart in the morning mine is also not working.
Hi, my Dyson is an HP02 and I migrated all my stuff to ha-dyson It is a local integration, it is not linked to my Dyson account and it works very well
Hi, my Dyson is an HP02 and I migrated all my stuff to https://github.com/shenxn/ha-dyson. It is a local integration, it is not linked to my Dyson account and it works very well
I am trying to add my dyson to this integration. But it is asking for serial and credential, how did you get these values?
Hi, my Dyson is an HP02 and I migrated all my stuff to https://github.com/shenxn/ha-dyson. It is a local integration, it is not linked to my Dyson account and it works very well
I am trying to add my dyson to this integration. But it is asking for serial and credential, how did you get these values?
Serial can be found on the device itself, but I am stuck on the credential part too... :(
something happened again. since a restart in the morning mine is also not working.
Ditto
When I installed this integration I actually had two integrations: I first inserted my dyson account credential in Dyson Cloud: I think it is used just to know which devices I have. Then discovery found my device and just asked for host ip
@damiano75 Where do you find discovery or how do you enable it ? TIA.
at the moment dyson_cloud is not working either. saying invalid auth.
@damiano75 Where do you find discovery or how do you enable it ? TIA.
It is the HA discovery service: https://www.home-assistant.io/integrations/discovery/
at the moment dyson_cloud is not working either. saying invalid auth.
Maybe your device is not yet supported
@damiano75 Where do you find discovery or how do you enable it ? TIA.
It is the HA discovery service: https://www.home-assistant.io/integrations/discovery/
I have this discovery added in my configuration.yaml
discovery:
but when I try to add the dyson_local integration, it still ask me credentials, serials, host and so on.
@damiano75 Where do you find discovery or how do you enable it ? TIA.
It is the HA discovery service: https://www.home-assistant.io/integrations/discovery/
I have this discovery added in my configuration.yaml
discovery:
but when I try to add the dyson_local integration, it still ask me credentials, serials, host and so on.
Your credentials should be the credentials of your Dyson account, the host should be the IP address of your device in your local lan
k it is used just to know which devices I have. Then discovery found my device and just asked for host ip
Thx, but I'm getting an error when I try to login to Dyson Cloud.
at the moment dyson_cloud is not working either. saying invalid auth.
Maybe your device is not yet supported
mine is TP04, which is listed as pure cool in dyson_local integration. so i assumed it is also supported in dyson_cloud.
at the moment dyson_cloud is not working either. saying invalid auth.
Maybe your device is not yet supported
mine is TP04, which is listed as pure cool in dyson_local integration. so i assumed it is also supported in dyson_cloud.
I had problem with dyson_local at the beginning: it saw my device but it didn't accept ip address. In this case my device was not supported yet
Now all sensors and scripts work weel
@damiano75, what exactly did you do to get working again?
Now all sensors and scripts work weel
@damiano75 are you using shenxn's ha-dyson service, or the native integration? It must be ha-dyson as native's still wonky on my side.
@damiano75, what exactly did you do to get working again?
I installed the integration by shenxn, at the beginning there were two integrations: Dyson Cloud and Dyson Local. I first installed Dyson Cloud and login with my Dyson credentials, then Dyson Local was able to discover my device and to create sensors and entities
I guess that now that Dyson has changed something on their end, Dyson Cloud isn't able to login anymore (probably as of yesterday). Hope there's a way to solve this!
I guess that now that Dyson has changed something on their end, Dyson Cloud isn't able to login anymore (probably as of yesterday). Hope there's a way to solve this!
For you, and anyone else in the thread trying to use shexn's integration (or the stock one with my library change)
Sign out of the Dyson App, then log into it again and then restart home assistant as soon as you've logged in on the app - should be fine after that.
Now all sensors and scripts work weel
@damiano75 are you using shenxn's ha-dyson service, or the native integration? It must be ha-dyson as native's still wonky on my side.
shenxn's one, because with native integration I have also another issue: every time I unplug my device from the power HA loses the connection with the device and I have to restart HA to re-establish the connection. With this local integration I don't have any connection issue
I have installed both dyson cloud and dyson local using HACS. Where do I enter my credentials? I only see Dyson Local as intergration listed.
I guess that now that Dyson has changed something on their end, Dyson Cloud isn't able to login anymore (probably as of yesterday). Hope there's a way to solve this!
For you, and anyone else in the thread trying to use shexn's integration (or the stock one with my library change)
Sign out of the Dyson App, then log into it again and then restart home assistant as soon as you've logged in on the app - should be fine after that.
Thanks for the reply, but still not able to login unfortunately! :(
I have installed both dyson cloud and dyson local using HACS. Where do I enter my credentials? I only see Dyson Local as intergration listed.
Now I think shenxn changed the integration, it seems you have to enter your credentials and host IP in Dyson Local integration, but I don't know the details, 'cause I installed this integration at his early stage and thejn I just updated it
I guess that now that Dyson has changed something on their end, Dyson Cloud isn't able to login anymore (probably as of yesterday). Hope there's a way to solve this!
For you, and anyone else in the thread trying to use shexn's integration (or the stock one with my library change)
Sign out of the Dyson App, then log into it again and then restart home assistant as soon as you've logged in on the app - should be fine after that.
thanks. it works with ha_dyson_cloud and leads to the discovery by ha_dyson.
I guess that now that Dyson has changed something on their end, Dyson Cloud isn't able to login anymore (probably as of yesterday). Hope there's a way to solve this!
For you, and anyone else in the thread trying to use shexn's integration (or the stock one with my library change) Sign out of the Dyson App, then log into it again and then restart home assistant as soon as you've logged in on the app - should be fine after that.
Thanks for the reply, but still not able to login unfortunately! :(
works for me...what i did: ha_dyson and ha_dyson_cloud are installed but not configured. logged out from my mobile app. log in again after 1 min. then add ha_dyson_cloud and put my email and pass...works. right after this ha_dyson found my dyson.
Sign out of the Dyson App, then log into it again and then restart home assistant as soon as you've logged in on the app - should be fine after that.
Worked for me, thanks
for those who are using ha_dyson, it doesn't support setting angle, right? i cant seem to find that option.
for those who are using ha_dyson, it doesn't support setting angle, right? i cant seem to find that option.
correct, i could never get this to work or the rotation
Sign out of the Dyson App, then log into it again and then restart home assistant as soon as you've logged in on the app - should be fine after that.
@bfayers solid direction, native integration is working(ish) here - oddly, my (unsupported) HP06s are registering, but my HP04s are not - I'll troubleshoot this evening. FWIW this fix didn't initially work for me, although I have been updating various Hass components over the last 24 hours and likely needed to re-update the auth patch (did via docker command).
In any case, I also uninstalled / reinstalled both Hass and Dyson apps on mobile during the process - upon re-installing the Dyson app I had to provide a 2fa email token during initial login (can't remember if that was standard previously), and sure enough the app UI was quite updated. Not sure what version I was on prior, but now 5.0.21060. Thanks again!
I guess that now that Dyson has changed something on their end, Dyson Cloud isn't able to login anymore (probably as of yesterday). Hope there's a way to solve this!
For you, and anyone else in the thread trying to use shexn's integration (or the stock one with my library change)
Sign out of the Dyson App, then log into it again and then restart home assistant as soon as you've logged in on the app - should be fine after that.
That was the missing piece of the puzzle! Thank you for sharing. The native (and updated) integration is once again working. Appreciate the assist!
Last week, the problem was solved by replacing dyson.py by:
https://raw.githubusercontent.com/bfayers/libpurecool/auth_customdeps/libpurecool/dyson.py
It stops working today. No success with:
pip3 install --upgrade git+https://github.com/bfayers/libpurecool.git@fix_auth
I'm in this same situation as of today when I upgraded to 2021.3.0. The command above worked for me previously.
Sign out of the Dyson App, then log into it again and then restart home assistant as soon as you've logged in on the app - should be fine after that.
I tried logging out of the app, logging back in, and restarting home assistant (twice) as well.
Edit: I'm using the native integration.
The problem
I have been using the dyson integration with my hot/cold fan successfully for a while. I upgraded HA last night to 2021.2 and saw alerts that the integration couldn't initialize
What is version of Home Assistant Core has the issue?
2021.2
What was the last working version of Home Assistant Core?
2021.1
What type of installation are you running?
Home Assistant Core
Integration causing the issue
Dyson
Link to integration documentation on our website
https://www.home-assistant.io/integrations/dyson/
Example YAML snippet
Anything in the logs that might be useful for us?
I'm running the qcow2 image in KVM. Happy to muck about with suggested tweaks if it helps narrow down the issue.