ryanfroese / homebridge-smartcielo

A Homebridge plugin for controlling Cielo Mini Split thermostats using node-cielo
Apache License 2.0
4 stars 4 forks source link

Cielo plugin doesn't appear to properly start up #3

Open fractically opened 1 year ago

fractically commented 1 year ago

Describe Your Problem:

I used a different plugin successfully in the past with the same AC unit and WiFi dongle. However, since rebuilding my Homebridge system/setup (which is based on Hoobs, running on a Raspberry Pi) and installing this plugin, my Mr. Cool device - which is connected to and functional on my home network and controllable via the app - is not showing up in Homebridge, nor does it appear in Apple Homekit. I've entered my environmental values as instructed by the documentation to no avail, and most notably there are numerous errors (text in red) and a warning (text in orange) in the console when the plugin initializes.

FWIW, I've been perplexed by the 'Accessory Port Pool' start and end port fields - I don't see any mention of them in the instructions, but should these be set to something?

And in case it's helpful, here are other system component versions: npm: '8.19.4' node: '16.20.1' v8: '9.4.146.26-node.26' uv: '1.43.0' zlib: '1.2.11' brotli: '1.0.9' ares: '1.19.1' modules: '93' nghttp2: '1.47.0' napi: '8' llhttp: '6.0.11' openssl: '1.1.1u+quic' cldr: '41.0' icu: '71.1' tz: '2022f' unicode: '14.0' ngtcp2: '0.8.1' nghttp3: '0.7.0'

Thanks for any help you can provide!

Logs:

7/14/2023, 6:41:00 PMCielo Bridge-MrCool starting
7/14/2023, 6:41:14 PMCielo Bridge-MrCoolLoaded plugin 'homebridge-cielo'
7/14/2023, 6:41:14 PMCielo Bridge-MrCoolLoading 1 platforms...
7/14/2023, 6:41:14 PMCielo Bridge-MrCoolBridge is running on port 51856.
7/14/2023, 6:41:14 PMCielo Bridge-MrCoolERRORTypeError: Cannot read properties of undefined (reading 'user')
7/14/2023, 6:41:14 PMCielo Bridge-MrCoolERRORat /var/lib/hoobs/cielobridge-mrcool/node_modules/node-smartcielo-ws/Cielo.js:264:52
7/14/2023, 6:41:14 PMCielo Bridge-MrCoolERRORat processTicksAndRejections (node:internal/process/task_queues:96:5)
7/14/2023, 6:41:14 PMCielo Bridge-MrCoolERRORat CieloAPIConnection.#getAccessTokenAndSessionId (/var/lib/hoobs/cielobridge-mrcool/node_modules/node-smartcielo-ws/Cielo.js:260:23)
7/14/2023, 6:41:14 PMCielo Bridge-MrCoolERRORat CieloAPIConnection.establishConnection (/var/lib/hoobs/cielobridge-mrcool/node_modules/node-smartcielo-ws/Cielo.js:119:5)
7/14/2023, 6:41:14 PMCielo Bridge-MrCoolERRORat HomebridgeAPI.<anonymous> (/var/lib/hoobs/cielobridge-mrcool/node_modules/homebridge-cielo/src/platform.ts:73:7)
7/14/2023, 6:41:14 PMCielo Bridge-MrCoolWARNINGunhandled rejection: TypeError: Cannot read properties of undefined (reading 'sessionId')

Plugin Config:

{
    "platform": "Smartcielo",
    "username": "xxxxx@provider.tld",
    "password": "xxxxx",
    "ip": "xx.xx.181.120",
    "macAddresses": [
        "500291e4d507"
    ]
}

Screenshots:

pluginconfig

Environment:

jardilio commented 1 year ago

Any update? I see the same error, but it was working previously. I'm also running as a child bridge and it keeps restarting over and over.

BMWAdriano commented 1 year ago

Any update? I see the same error, but it was working previously. I'm also running as a child bridge and it keeps restarting over and over.

I am having the exact same issue. I tried using the plugin as a child bridge and it continuously restarts. Without using as a child bridge, it crashes the Homebridge completely. Help?

fractically commented 7 months ago

bump

At this point I'd be happy with "leave me alone, I have no idea what's going wrong", "I don't have time to continue working on this", or even a simple "NO", and I'll give up and move onto another solution. I get it, no one is making money off of whether this works for end users, but it would be great if the person who built this project would say something... Many of us are having the exact same issue, so it's not just a single, crazy-weird environmental issue...

SkyJetty commented 3 months ago

Tried to get this working and it just crashes and forces home bridge to reboot over and over just like all the other versions I have tried.

rdjfraser commented 2 weeks ago

@fractically looks like a lot more discussion here on issues caused by frequent changes to API causing breaks. I don't see anyone actively working on it :( https://github.com/isaac-webb/homebridge-mrcool/issues/3