nicholasrobinson / homebridge-smartcielo

Smartcielo (MRCOOL) plug-in for [Homebridge](https://github.com/nfarina/homebridge) using the smartcielo API.
MIT License
14 stars 6 forks source link

Device not connecting #8

Closed vincentanthony closed 3 years ago

vincentanthony commented 3 years ago

Checked login details and public IP, and this is the error message I’m getting in homebridge upon restart:

TypeError: Cannot read property 'map' of undefined at getCookiesFromResponse (/usr/local/lib/node_modules/homebridge-smartcielo/node_modules/node-smartcielo/SmartCielo.js:28:24) at /usr/local/lib/node_modules/homebridge-smartcielo/node_modules/node-smartcielo/SmartCielo.js:110:27 at processTicksAndRejections (internal/process/task_queues.js:97:5) at getApplicationCookies (/usr/local/lib/node_modules/homebridge-smartcielo/node_modules/node-smartcielo/SmartCielo.js:109:32)

Accessory is showing up in home app, with Not Responding error.

forevaclevah commented 3 years ago

Same issue here.

sparky742 commented 3 years ago

I'm seeing exactly this error and issue also. My MrCool device firmware version its 2.4.4, 2.4.4

I'd dig a little deeper but I don't really know how to debug a homebridge plugin currently.

forevaclevah commented 3 years ago

Total speculation here:

Cielo changed their login process in some way that broke Nicholas’ “API”. I am hoping that it’s a small change to fix it and not a brick wall from cielo preventing future operation of the plug-in.

Sent from ProtonMail Mobile

On Sat, Jan 2, 2021 at 12:17 PM, sparky742 notifications@github.com wrote:

I'm seeing exactly this error and issue also. My MrCool device firmware version its 2.4.4, 2.4.4

I'd dig a little deeper but I don't really know how to debug a homebridge plugin currently.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

sparky742 commented 3 years ago

Total speculation here: Cielo changed their login process in some way that broke Nicholas’ “API”. I am hoping that it’s a small change to fix it and not a brick wall from cielo preventing future operation of the plug-in. Sent from ProtonMail Mobile On Sat, Jan 2, 2021 at 12:17 PM, sparky742 @.***> wrote: I'm seeing exactly this error and issue also. My MrCool device firmware version its 2.4.4, 2.4.4 I'd dig a little deeper but I don't really know how to debug a homebridge plugin currently. — You are receiving this because you commented. Reply to this email directly, [view it on GitHub](#8 (comment)), or unsubscribe.

I agree. I see they changed hosts from smartcielo.com to home.cielowigle.com, and the curl-examples.txt commands in /usr/local/lib/node_modules/homebridge-smartcielo/node_modules/node-smartcielo don't work with the new hostname, so it looks like a deeper API change at Cielo

nicholasrobinson commented 3 years ago

@sparky742

Total speculation here: Cielo changed their login process in some way that broke Nicholas’ “API”.

Reasonable speculation!

Looking at smartcielo.com, the API endpoint has indeed changed from smartcielo.com to home.cielowigle.com, as highlighted by @androolloyd here https://github.com/nicholasrobinson/node-smartcielo/pull/7

Closing this issue and tracking via: https://github.com/nicholasrobinson/node-smartcielo/issues/8