MortJC / homebridge-platform-isolarcloud

MIT License
9 stars 3 forks source link

iSolarCloud crashing HomeBridge #8

Closed x5nder closed 8 months ago

x5nder commented 12 months ago

Since yesterday, the iSolarCloud plugin is crashing my HomeBridge installation with this error log:

[11/30/2023, 11:19:44 PM] TypeError: Cannot read properties of null (reading 'pageList') at ISolarCloudAPI. (/usr/lib/node_modules/homebridge-platform-isolarcloud/src/isolarcloudapi.ts:77:37) at step (/usr/lib/node_modules/homebridge-platform-isolarcloud/dist/isolarcloudapi.js:33:23) at Object.next (/usr/lib/node_modules/homebridge-platform-isolarcloud/dist/isolarcloudapi.js:14:53) at fulfilled (/usr/lib/node_modules/homebridge-platform-isolarcloud/dist/isolarcloudapi.js:5:58) at processTicksAndRejections (node:internal/process/task_queues:95:5)

Any idea what's going on? Did iSolarCloud change anything on their end to break the plugin?

Nach0-Stallion commented 12 months ago

EDIT Looks like other people on Homeassistant having issues with API errors, so i think sungrow/isolarcloud have changed or disabled their API's


I just updated my Unraid server and noticed that the isolar plugin was removed from homebridge, when i re-added it i noted it read the accessory info for my plant, but had since just kept bombing out. suspecting homebridge has updated something that the plugin doesnt like?

Love the plugin, hope its something that can be resolved! Cheers This is my error log: Seems a lot of it is identical [12/3/2023, 4:00:55 AM] [ISolarCloud] TypeError: Cannot read properties of null (reading 'token') at ISolarCloudAPI.<anonymous> (/usr/lib/node_modules/homebridge-platform-isolarcloud/src/isolarcloudapi.ts:50:46) at step (/usr/lib/node_modules/homebridge-platform-isolarcloud/dist/isolarcloudapi.js:33:23) at Object.next (/usr/lib/node_modules/homebridge-platform-isolarcloud/dist/isolarcloudapi.js:14:53) at fulfilled (/usr/lib/node_modules/homebridge-platform-isolarcloud/dist/isolarcloudapi.js:5:58) at processTicksAndRejections (node:internal/process/task_queues:95:5) [12/3/2023, 4:00:55 AM] [ISolarCloud] TypeError: Cannot read properties of null (reading 'pageList') at ISolarCloudAPI.<anonymous> (/usr/lib/node_modules/homebridge-platform-isolarcloud/src/isolarcloudapi.ts:77:37) at step (/usr/lib/node_modules/homebridge-platform-isolarcloud/dist/isolarcloudapi.js:33:23) at Object.next (/usr/lib/node_modules/homebridge-platform-isolarcloud/dist/isolarcloudapi.js:14:53) at fulfilled (/usr/lib/node_modules/homebridge-platform-isolarcloud/dist/isolarcloudapi.js:5:58) at processTicksAndRejections (node:internal/process/task_queues:95:5) [12/3/2023, 4:00:55 AM] TypeError: Cannot read properties of null (reading 'pageList') at ISolarCloudAPI.<anonymous> (/usr/lib/node_modules/homebridge-platform-isolarcloud/src/isolarcloudapi.ts:77:37) at step (/usr/lib/node_modules/homebridge-platform-isolarcloud/dist/isolarcloudapi.js:33:23) at Object.next (/usr/lib/node_modules/homebridge-platform-isolarcloud/dist/isolarcloudapi.js:14:53) at fulfilled (/usr/lib/node_modules/homebridge-platform-isolarcloud/dist/isolarcloudapi.js:5:58) at processTicksAndRejections (node:internal/process/task_queues:95:5) [12/3/2023, 4:00:55 AM] Got SIGTERM, shutting down Homebridge...

MortJC commented 12 months ago

Looks like they have changed the API. Although I can find the new appkey, they are now encrpting the request payloads.

Sorry, but it's going to take a while to work this out...

Nach0-Stallion commented 12 months ago

Thank you for looking into it, appreciate your efforts!

Churro-blaze commented 11 months ago

Thanks for looking into it. Love the plugin. It's used in a few automations

x5nder commented 11 months ago

Yeah, thanks in advance... same here, used in automations!

poppin-fresh commented 11 months ago

Same issue here. Many thanks @MortJC for the plugin and for looking into it!

Nach0-Stallion commented 11 months ago

Hello @MortJC I was looking around for updates and someone posted this about sungrow: link

Not sure if this is related or helps you at all but thought I'd mention it, happy new year!

KedsSparrsh04 commented 10 months ago

Is it working now?

richardmarr commented 8 months ago

Are you thinking you will update this @MortJC ? thanks!

MortJC commented 8 months ago

New v1.3.0 release which handles the new encryption

Churro-blaze commented 8 months ago

Thank you very much.

MortJC commented 8 months ago

No problem.

I'm interested to know if you are using it for any automation?

On Tue, Mar 5, 2024 at 5:34 PM Churro-blaze @.***> wrote:

Thank you very much.

— Reply to this email directly, view it on GitHub https://github.com/MortJC/homebridge-platform-isolarcloud/issues/8#issuecomment-1978056189, or unsubscribe https://github.com/notifications/unsubscribe-auth/AN5E4TSUJO6CRBZC36JER3TYWVRQDAVCNFSM6AAAAABAB5JUECVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNZYGA2TMMJYHE . You are receiving this because you modified the open/close state.Message ID: @.*** com>

Churro-blaze commented 8 months ago

Yeah I do. For two things. Using Homebridge. When the solar gets above 3000w it turns on the spa and sets a rule to stay on until midnight so on a cloudy day the spa doesn’t get heated but that’s ok, saves a lot of power. And secondly 2 hours before sunset if the lux drops below a level it turns on the garden lights, early for overcast evenings. would love to know who else using it and for why.

richardmarr commented 8 months ago

I will let you know… yet to install it…. But I like the idea of turning on my pool heater based upon power generated etc