lukasroegner / homebridge-dyson-pure-cool

Plugin for using the Dyson Pure Cool fans in homebridge.
MIT License
291 stars 52 forks source link

Login Issue 401 #26

Closed ZAP-ZAP-ZAP closed 4 years ago

ZAP-ZAP-ZAP commented 4 years ago

Hi!

I think I configures all correctly but I do get the Error:

[DysonPureCoolPlatform] Error while signing in. Status Code: 401

Maybe thi is related to the "Captcha" on the Dyson Page?

*{ "platform": "DysonPureCoolPlatform", "username": "correctmail", "password": "correctpass", "countryCode": "DE", "devices": [ { "ipAddress": "correctip", "serialNumber": "correctserial", "enableAutoModeWhenActivating": true, "isNightModeEnabled": true, "isJetFocusEnabled": true, "isTemperatureSensorEnabled": true, "isHumiditySensorEnabled": true, "isAirQualitySensorEnabled": true } ] }

lukasroegner commented 4 years ago

Hi @ZAP-ZAP-ZAP,

I just tested it, works with my credentials (also DE). A 401 is returned if the credentials are not valid. Please double-check the email address and the password in your config.json (maybe it has been an issue with the encoding while copy-pasting the credentials in the config file).

ZAP-ZAP-ZAP commented 4 years ago

Hi Lukas, thx runs fine now. Dyson is using two different accounts (one for the commercial shop system) and one for the account which is steering the devices. I used the shop credentials and was confused on the 401 - Unauthorized. Many thx for your swift response. Sebastian