Open nadler1ny opened 2 weeks ago
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.
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