HomeAssistant Custom Integration for Dyson
This custom integration is still under development.
This is a HA custom integration for dyson. There are several main differences between this custom integration and the official dyson integration:
It does not rely on dyson account. Which means once configured, the integration will no longer login to the Dyson cloud service so fast and more reliable start up process.
Config flow and discovery is supported, so easier configuration.
Based on a new library that is better structured so the code in the integration itself is simplified.
My goal is to make this integration official. However, at the current stage, I don’t want to do the changes in core since there could be a lot of breaking changes. Therefore, I’ll do be merge when everything seems stable.
You can install using HACS. Adding https://github.com/shenxn/ha-dyson as custom repository and then install Dyson Local. If you want cloud functionalities as well, add https://github.com/shenxn/ha-dyson-cloud and install Dyson Cloud.
You can also install manually
Local and Cloud
There are two integrations, Dyson Local and Dyson Cloud. Due to the limitation of HACS, they are split into two repositories. This repository hosts Dyson Local, and https://github.com/shenxn/ha-dyson-cloud hosts Dyson Cloud.
Dyson Local uses MQTT-based protocol to communicate with local Dyson devices using credentials. Currently it supports
- Dyson 360 Eye robot vacuum
- Dyson Pure Cool
- Dyson Pure Cool Desk
- Dyson Pure Cool Link
- Dyson Pure Cool Link Desk
- Dyson Pure Hot+Cool
- Dyson Pure Hot+Cool Link
- Dyson Pure Humidity+Cool
Humidifier support under HA platform
humidifier is not supported yet.
Dyson Cloud uses HTTP-based API to communicate with cloud service. Currently it supports getting device credentials and show all devices as discovered entities under the Integrations page. It also supports getting cleaning maps as
camera entities for 360 Eye robot vacuum.
It is recommended to set up Dyson Cloud first so that you don’t need to manually get device credentials. To do so, go to Configuration -> Integrations and click the + button. Then find Dyson Cloud. After successful setup, all devices under the account will be shown as discovered entities and you can then set up Dyson Local with single click. Leave host blank to using zeroconf discovery. After that, you can even remove Dyson Cloud entity if you don’t need cleaning maps. All local devices that are already set up will remain untouched.
If you want to manually set up Dyson Local, you need to get credentials first. Clone or download https://github.com/shenxn/libdyson, then use
python3 get_devices.py to do that. You may need to install some dependencies using
pip3 install -r requirements.txt.