estruyf / homebridge-solis-sensors

Solis sensors
MIT License
1 stars 0 forks source link

API error #3

Open snoopydooper opened 1 year ago

snoopydooper commented 1 year ago

Seem to have some API error:

Error Unauthorized [12/6/2022, 12:24:13 PM] [@estruyf/homebridge-solis-sensors] No battery data found Error Unauthorized

I have followed the following process to get a new key.

https://solis-service.solisinverters.com/support/solutions/articles/44002212561-api-access-soliscloud

Key and secret provided is actually same as I was using before. API URL might be different now - https://www.soliscloud.com:13333/

Result is the same.

estruyf commented 1 year ago

APIs did not change, but it seems you now have to request access via a support ticket.

In order to get access please submit a ticket for API access Submit a ticket : Service Centre (solisinverters.com).

Will try to submit a ticket as well, as I just noticed my app stopped as well. Wasn't home last week, so didn't check it.

estruyf commented 1 year ago

At least, it seems that it is so in my case.

image

I tried to activate it myself, but that doesn't work anymore.

image

Once I get access, I can test it out again.

estruyf commented 1 year ago

@snoopydooper got API access again and switched to the 13333 port for the API, and it should be working. I released a new patch version, 0.1.1 with the port switch. Can you verify if it is also working on your end?

helangen commented 1 year ago

I am running v0.0.1-beta.2820195 and still get the same error

Error Unauthorized
[12/8/2022, 9:28:44 AM] [SolisSensors] No battery data found

I have the following config:

            "keyId": "*redacted*",
            "keySecret": "*redacted*",
            "stationId": "*redacted*",
            "platform": "SolisSensors",
            "batterySensor": false,
            "solarSensor": true,
            "netSensor": true,
            "loadSensor": true

I requested and got my API yesterday. Where do you get the stationID btw? Just to make sure I have the correct one.

estruyf commented 1 year ago

Latest beta version is: 0.1.1-beta.3637309225

helangen commented 1 year ago

Latest beta version is: 0.1.1-beta.3637309225

Sorry, just saw that. Misread. I will try to update and let you know.

helangen commented 1 year ago

I now get this error on startup and HB just shuts down.

[12/8/2022, 10:04:41 AM] TypeError: Cannot read properties of null (reading 'power')
    at SolisBatteryAccessory.pollBatteryStatus (/var/lib/homebridge/node_modules/@estruyf/homebridge-solis-sensors/src/accesory/SolisBatteryAccessory.ts:115:64)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
[12/8/2022, 10:04:42 AM] Got SIGTERM, shutting down Homebridge...

I have disabled the battery sensor (config above). Is this related to the new version?

snoopydooper commented 1 year ago

Working fine for me now. Thank you!!

estruyf commented 1 year ago

@helangen please check if you got the settings updated, as they did since 0.1.0 - example on the readme.

helangen commented 1 year ago

They should be as I posted above and I copied them from your README.md. What devices are supported? The error might be on my side assuming the wrong solar sensor are supporte.d

Tangheta commented 1 year ago

Same error for me 3/27/2023, 1:47:02 PM Solis Sensors Bridge SolisSensors ERROR No battery data found