joe-ng / homebridge-dyson-link

MIT License
207 stars 40 forks source link

Dyson Devices Not appearing on Homekit using Hoobs Homebridge. #144

Open eddie1590 opened 3 years ago

eddie1590 commented 3 years ago

First I would like to thank all the people that make these plug-ins possible. I had my Dyson devices previously working with the plug-in “Dyson Link” published on 1/29/21 by author Joeng. I understand now Dyson has a new 2 form authentication that has left that plug-in not to work and a new one has been created by author lukas.roegner called “Dyson Pure Cool” and published on 5/24/21. I’m not a super professional but I am a bit knowledgeable to some degree when it comes to this process. However, I am obviously missing something and if anyone has resolved this problem and can help I would greatly appreciate it. So I follow the instructions: “Step 1: Configure the plugin (don't add devices to the devices array if you don't already have the credentials for them). If you're setting up the plugin for the first time, you can simply use the following configuration:” { "platforms": [ { "platform": "DysonPureCoolPlatform", "devices": [], "updateInterval": 60000, "credentialsGeneratorPort": 48000 } ] } “Step 2: Start homebridge”

“Step 3: Open a browser and navigate to http://:48000/ (where is the IP address of the host your homebridge instance is running on)”.

Okay, I’ll explain something here that I learned by trial and error. For those having trouble. This next example is how retrieved the credentials. It wants you to add the IP address of the Homebridge, in my case I am using Hoobs on a Raspberry Pi and this example is how I was able to generate the credentials. http://123.456.7.89:48000/ .Please note that the IP address I used on this example is not real and used just to show how the layout should be with YOUR IP ADDRESS before copying and pasting to the search bar.

“Step 4: Follow the steps on the website to retrieve the credentials for all of the devices that are registered in your Dyson account”.

So I get to the website where it asks for the country you live in, Dyson account email, Dyson account password and the security code that Dyson sends to you via Email. I successfully go through the process and I get to the page where it lists all my Dyson devices and provides “credentials” for each of the devices. Disclaimer: I have checked to make sure my devices are compatible with this plug-in and they all are.

“Step 5: Now you can add the devices to the configuration (see below) and restart homebridge”.

The following is the example of how I’ve configured the JSON inside the plug-in after retrieving the credentials. Just a disclosure, the only thing I changed from the example configuration provided to follow was the: IP address for my Dyson Device. The Serial number for my Dyson device and the credentials I redeemed. Everything else was left the same. The configuration looks as follows:

{ "platforms": [ { "platform": "DysonPureCoolPlatform", "devices": [ { "ipAddress": "My Dyson IP Address", "serialNumber": "My Dyson Serial Number", "credentials": "The Credentials I redeemed using step 3", "enableAutoModeWhenActivating": false, "enableOscillationWhenActivating": false, "isNightModeEnabled": false, "isJetFocusEnabled": false, "isContinuousMonitoringEnabled": false, "isTemperatureSensorEnabled": false, "isHumiditySensorEnabled": false, "isAirQualitySensorEnabled": false, "isSingleAccessoryModeEnabled": false, "isFullRangeHumidity": false, "isHeatingDisabled": false } ], "updateInterval": 60000, "credentialsGeneratorPort": 48000 } ] }

Fofer commented 3 years ago

HOOBS is not the same as Homebridge, even though you're describing them interchangeably. I had all sorts of issues with various plugins when I was using HOOBS.

I switched over to Homebridge, using the exact same Raspberry Pi hardware, and all of my problems went away.

https://github.com/homebridge/homebridge-raspbian-image/wiki/How-to-migrate-from-HOOBS-to-Homebridge