faanskit / ha-esolar

Custom Integration of SAJ eSOLAR
https://github.com/faanskit/ha-checkwatt
GNU General Public License v3.0
6 stars 4 forks source link

Authentication broken for SAJ API #10

Open connornz opened 6 months ago

connornz commented 6 months ago

Hi, trying to add my B2-HV system to HA but getting invalid credentials when trying to add the intergration. Is there a problem with the integration with the new API or is it me?

Screenshot 2024-01-01 at 4 08 28 pm
davidjbwatson commented 6 months ago

I am having same issue for a week now.

faanskit commented 6 months ago

I no longer have a SAJ inverter, but it looks like SAJ eSolar has changed login. The login link the integration use responds with 302. image

It looks like they have moved the login and in the portal they seem to add CAPTCH for some market.

Likely this integration will no longer work due to this.

The other SAJ integration seems to have same/similar issue: https://github.com/djansen1987/SAJeSolar/issues/72

Please try it instead.

Since I don't have a SAJ inverter it is unlikely I will spend time on this...

Feel free to nominate someone to continue this work...

davidjbwatson commented 6 months ago

That was my assumption as I noticed login page was different. I tried other saj integration (which I had before yours) . As you replied no go shame . Thanks for your reply .

[image: Mailtrack] https://mailtrack.io?utm_source=gmail&utm_medium=signature&utm_campaign=signaturevirality11& Sender notified by Mailtrack https://mailtrack.io?utm_source=gmail&utm_medium=signature&utm_campaign=signaturevirality11& 01/03/24, 07:10:38 PM

On Tue, 2 Jan 2024 at 17:56, faanskit @.***> wrote:

I no longer have a SAJ inverter, but it looks like SAJ eSolar has changed login. The login link the integration use responds with 302. image.png (view on web) https://github.com/faanskit/ha-esolar/assets/10439868/1509ad7f-46fa-4782-81d2-784696f82969

It looks like they have moved the login and in the portal they seem to add CAPTCH for some market.

Likely this integration will no longer work due to this.

The other SAJ integration seems to have same/similar issue: djansen1987/SAJeSolar#72 https://github.com/djansen1987/SAJeSolar/issues/72

Please try it instead.

Since I don't have a SAJ inverter it is unlikely I will spend time on this...

Feel free to nominate someone to continue this work...

— Reply to this email directly, view it on GitHub https://github.com/faanskit/ha-esolar/issues/10#issuecomment-1873706896, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASEBYSD4QTDXGQETLODX3E3YMO4S3AVCNFSM6AAAAABBIXY6K6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNZTG4YDMOBZGY . You are receiving this because you commented.Message ID: @.***>

-- Regards from David Watson 0416505953

davidjbwatson commented 6 months ago

How do I find someone who could fix this issue?

faanskit commented 6 months ago

There are some forks made, check with the owners of the forks if they have a solution. We use undocumented reverse engineered API's towards Saj in this integration, and Saj can change at any time (like they now did).

I noticed that they also started with CAPTCHA for some regions now, so likely soon it will completely break.

You can always ask Saj to publish API's...the more who asks, maybe one day they will support it. SolaX did it after community push.

RobbieDemaegdt commented 6 months ago

As SAJ is (partial) a chinese company, I think we can forget about a public API. My integration is currently still working, fingers crossed that it stays like this. If mine ever breaks I might check to fix it but I'm not an expert in this program language.

walkjivefly commented 6 months ago

@robshot do you have a link for your integration?

faanskit commented 6 months ago

@robshot do you have a link for your integration?

It's in the first sentence of the README to this integration :-D

Here: https://github.com/djansen1987/SAJeSolar

RobbieDemaegdt commented 6 months ago

I mean the integration in my HA, I'm using this intergration in my HA as I helped faanskit with debugging some things.

walkjivefly commented 6 months ago

ha ha, yeah, bit of a misunderstanding here. I thought @robshot was saying he had a separate HA integration (fork or whatever) that was still able to connect to the SAJ API.