Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to update chargepointState #50

Open
nadler1ny opened this issue Nov 16, 2024 · 2 comments
Open

Failed to update chargepointState #50

nadler1ny opened this issue Nov 16, 2024 · 2 comments

Comments

@nadler1ny
Copy link

This error originated from a custom integration.

Logger: custom_components.chargepoint
Source: custom_components/chargepoint/init.py:176
integration: ChargePoint (documentation, issues)
First occurred: 2:50:48 PM (12 occurrences)
Last logged: 3:01:26 PM

Failed to update ChargePoint State

@b3nj1
Copy link

b3nj1 commented Nov 27, 2024

I'm seeing this too.

It seems to happen after we plug our car into our home charger. That's unfortunate since I have automations that manage the charge time & duration, so they have stopped being effective.

I added some additional info to the log to see what the data and err looked like. In the case below, the car had been plugged in a few minutes before, and the charging_session and home_chargers are not populated. So, this seems like it's a glitch upstream. It eventually resolves itself, but in this case, 30 minutes have gone by and it is still returning the same info.

2024-11-27 05:56:53.886 ERROR (MainThread) [custom_components.chargepoint] Failed to update ChargePoint State: data={'account_information': ChargePointAccount(user=ChargePointUser(email='***', evatar_url='https://mc.chargepoint.com/images/evatar/1.png', family_name='***', full_name='***', given_name='***', phone='***', phone_country_id=40, user_id=***, username='***'), account_balance=AccountBalance(account_number='***', account_state='FULL', amount='***', currency='USD')), 'charging_status': UserChargingStatus(session_id=***, start_time=datetime.datetime(2024, 11, 27, 13, 54, 17, tzinfo=datetime.timezone.utc), state='unknown', stations=[ChargePointStation(id=***, name='***', latitude=***, longitude=***)]), 'charging_session': None, 'home_chargers': {}}, err=Failed to get charging session data.
2024-11-27 05:56:53.886 ERROR (MainThread) [custom_components.chargepoint] Error fetching chargepoint data: 

The ChargePoint app sees the charge status for the home charger.

@starsoccer
Copy link

Having the same issue, seems to occur randomly for me. Seems perhaps to be related to the session token expiring?

2025-01-28 07:27:43.398 WARNING (SyncWorker_6) [chargepoint] Provided session token is expired, will attempt to re-login
2025-01-28 07:27:45.095 ERROR (SyncWorker_2) [chargepoint] Failed to get account information! status_code=500 err={"errorId":5000,"errorCategory":"PROFILE","errorMessage":"System error"}
2025-01-28 07:27:45.098 ERROR (MainThread) [custom_components.chargepoint] Failed to update ChargePoint State

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants