joe-ng / homebridge-dyson-link

MIT License
206 stars 40 forks source link

DYSON GIVING ERROR #142

Open agowda76 opened 3 years ago

agowda76 commented 3 years ago

HI,

I Like the plugin, worked fine for a day, but then started giving errors and HB keeps restarting continuously, so basically, every time install the plugin HB stops working.

I'm getting this error right now, don't know what sense to make out of it

SyntaxError: Unexpected token e in JSON at position 1 at JSON.parse () at IncomingMessage. (/usr/local/lib/node_modules/homebridge-dyson-link/index.js:180:40) at IncomingMessage.emit (events.js:388:22) at endReadableNT (internal/streams/readable.js:1336:12) at processTicksAndRejections (internal/process/task_queues.js:82:21)

It may be an issue of the platform name or platform, cause once I just did a add platform and save it worked until I restarted HB and then it was gone again.

Anything to make this work without any issues would be great. hope the feedback helps.

Thanks AG

agowda76 commented 3 years ago

Looks like the issue is with Dyson account password, If you comment the password or take out that line, the HB works fine also showing all the options of Dyson device, but from my device. just like a place holder. hope this helps you to solve the issue.

redrohX commented 3 years ago

Same problem here.

SyntaxError: Unexpected token e in JSON at position 0
    at JSON.parse (<anonymous>)
    at IncomingMessage.<anonymous> (/homebridge/node_modules/homebridge-dyson-link/index.js:180:40)
    at IncomingMessage.emit (events.js:388:22)
    at endReadableNT (internal/streams/readable.js:1336:12)
    at processTicksAndRejections (internal/process/task_queues.js:82:21)

Removing the password removes indeed the error, but then obviously the device is not added to accessories.

MariellevDijk commented 3 years ago

This is happening with me too, removing password keeps homekit out of it's bootloop.

[6/9/2021, 4:22:04 PM] [DysonPlatform] Initializing DysonPlatform platform...
[6/9/2021, 4:22:04 PM] [DysonPlatform] Finished launching. Start to create accessory from config
[6/9/2021, 4:22:04 PM] [DysonPlatform] Dyson email/pass not found, v2 devices may not work
[6/9/2021, 4:22:04 PM] [DysonPlatform] Missing password for device with serial number [serial], devices found on your account: 
atomicmaximaze commented 3 years ago

Same here... hopefully someone has an idea or it'll be fixed with an update :o

SyntaxError: Unexpected token e in JSON at position 0 at JSON.parse (<anonymous>) at IncomingMessage.<anonymous> (/usr/local/lib/node_modules/homebridge-dyson-link/index.js:180:40) at IncomingMessage.emit (events.js:327:22) at endReadableNT (internal/streams/readable.js:1327:12) at processTicksAndRejections (internal/process/task_queues.js:80:21)

giss69 commented 3 years ago

same problem:(

surfing-IT commented 3 years ago

Same problem here. Thanks for looking into it

Andavin commented 3 years ago

Removed my account password from the config and for some reason it completely started working again. Hopefully it stays that way, but may be a fix for others here also

zachwaterson commented 3 years ago

It looks like Dyson is rolling out two factor authentication, which this plugin does not support. I switched to this plugin, and it's working great!

https://github.com/lukasroegner/homebridge-dyson-pure-cool