Page 1 of 1

Enphase : Invalid data received! (no session_id)

Posted: Thursday 30 May 2024 8:56
by fefed22
Hello,

Some days ago, i've update Domoticz to the last version 2024.3.15869
This version won't work on my Raspberry, i've installed the compiled version from : https://iot.sajatfelhom.eu/domoticz/

After that, the connection with envoy was lost.
So i've create a new token from https://entrez.enphaseenergy.com/ and paste it on my local page.
After submit this token and update the hardware on domoticz, all work fine !

BUT, after 2 days the connection lost and the error Invalid data received! (no session_id) appear !!

i will generate a new token and update hardware every 2 days !

When i try to connect to this page : https://entrez.enphaseenergy.com/
i've an error : "message": "Too many active sessions.."

can you help me?

Best regards

Re: Enphase : Invalid data received! (no session_id)

Posted: Thursday 30 May 2024 8:58
by fefed22
The Envoy version is : software: D7.6.358

Re: Enphase : Invalid data received! (no session_id)

Posted: Thursday 30 May 2024 10:45
by gizmocuz
It looks you are generating a token for 2 days. You can check this if you paste the JWT token here https://jwt.io/

Is there another application polling the Enphase? For example your energy provider or another Domoticz instance?
Also make sure the poll interval is set to 30 seconds or slower (60 seconds)

If you google for 'Enpahse too many active sessions' you will see more users with this problem

Also make sure you entered your correct SiteID

Re: Enphase : Invalid data received! (no session_id)

Posted: Thursday 30 May 2024 13:01
by fefed22
Hello,

Thanks for your reply.

When i'm decode the last token, i have :
"exp": 1748588215,
=> So exp 30/05/2025, for one year.

I've just the domoticz connected to the Envoy.

I haven't got any site ID, i'm not an installer.

Best regards

Re: Enphase : Invalid data received! (no session_id)

Posted: Saturday 01 June 2024 18:46
by fefed22
Another deconnection today.
I've put the same token on my Envoy form and update my hardware...
I've try to change poll interval to 60.
I'll check in 2 days...

is it possible to put the enphase hardware in debug mode ?

Re: Enphase : Invalid data received! (no session_id)

Posted: Tuesday 04 June 2024 21:41
by fefed22
Hello,

i continue to check in my side and i use Postman to make some tests.
The problem come from https://enlighten.enphaseenergy.com/log ... rd]=MYPASS
The result of this page is : {"message":"Too many active sessions.."} and after that no session ID is return...
i've asking support from Enphase and i come back to you.

Best regards

Re: Enphase : Invalid data received! (no session_id)

Posted: Thursday 20 June 2024 11:53
by Barry
Since about a week I have a similar issue with my Domoticz connection with the Enphase controller. After some time Domoticz will not update values anymore and throw the error 'Invalid data received! (no session_id)'.
When I disable the Enphase hardware in Domoticz and start it again it will work for some time but after a while it will stop again with the same error.

Domoticz version: 2024.4
Enphase Envoy S Gateway Firmware : D7.6.358

Where you able to find any solution already?

Re: Enphase : Invalid data received! (no session_id)

Posted: Friday 21 June 2024 7:47
by gizmocuz
Domoticz is the only one talking to the Enphase?

This error is displayed when it wants to retrieve the normal owner token (EnphaseAPI::GetOwnerToken) (not the installer token)

Since I am using Enphase myself without any issues, I wonder what goes wrong.

You have left the Poll Interval to 30 seconds in the hardware setup?

Re: Enphase : Invalid data received! (no session_id)

Posted: Friday 21 June 2024 8:16
by Barry
Hi Gizmocuz,

thank you for your reply. Domoticz is the only system talking to Enphase. But the polling interval has been set to 10 seconds.
Let me try to set it back to 30 seconds and see if that makes a difference.

For me the communication worked since I got my solar panels last year, but after a wifi drop I am facing this issue. I am not sure if it coincidence or if the firmware of my Enphase has been updated at the same time. I noticed that fefed22 and I have the same firmware on our Enphase Envoy box.

Are you running the same firmware on your system ?

Regards,

Barry

Re: Enphase : Invalid data received! (no session_id)

Posted: Friday 21 June 2024 8:17
by Barry
I just noticed when I re-start the Enphase hardware in Domoticz it throws also an error 'Error getting http data! (power)'. But it does this only the first time when it collects data.

Re: Enphase : Invalid data received! (no session_id)

Posted: Sunday 23 June 2024 9:17
by Barry
With changing the Poll Interval from 10 seconds to 30 seconds, the connection is still working after aprox. 48 hours

Re: Enphase : Invalid data received! (no session_id)

Posted: Sunday 23 June 2024 10:32
by gizmocuz
I'm running 7.6.358

Great it seems to be working again,

Could be a wireless issue, I try to connect as much as possible with cables.

I have noticed bad communication issues when you poll to fast or if other applications try to access the envoy at the same time.

For this reason I home in a feature firmware update this is solved, specially if energy companies would like to have some control over the system.

Re: Enphase : Invalid data received! (no session_id)

Posted: Monday 24 June 2024 21:55
by fefed22
Hello,

my issue is fixed after calling to enphase. 8-)
i've explain the problem and a ticket was opened.
So it's a security issue, when we use a third party to make remote call.
After Enphase ticket, they made a small change on my account to allow infinite call.

Domotictz still working since two days !! :D

Best regards

Re: Enphase : Invalid data received! (no session_id)

Posted: Tuesday 25 June 2024 7:56
by gizmocuz
@fefed22, and what is your poll interval set to? Probably also lower then 30 seconds?

For those who wants real-time data (~per second), it might be an idea to look at a 'Shelly EM', but do note that you have to power the device from the same phase as that you are placing the CT Clamp on!!
This means if you have a 3 phase Enphase system, you need 3 of those !

If you do not need real-time data, keep it at 30

Re: Enphase : Invalid data received! (no session_id)

Posted: Tuesday 25 June 2024 17:36
by fefed22
Hello,

Thanks for your reply.
I've set interval to 30 sec.
Thanks for the suggest of product : Shelly EM, no need to have a real time for the moment but i keep this information.

Best regards