Farfar / homeassistant-seatconnect

Seat Connect - A home assistant plugin to add integration with your car
Apache License 2.0
61 stars 14 forks source link

Login failed, hassio and App #45

Closed bartj12 closed 10 months ago

bartj12 commented 10 months ago

Goodmorning,

Since 1 week the connection fails randomly for both seat connect in HA as with the seat app.

The integration gives the error "failed to setup, will retry". After a couple of hours, without changing anything, it works again.

My HA issuelog is full with these errors:

2023-11-04 09:09:09.273 WARNING (MainThread) [seatconnect.connection] Unable to fetch authorization endpoint 2023-11-04 09:09:09.274 ERROR (MainThread) [seatconnect.connection] An API error was encountered during login, try again later 2023-11-04 09:10:40.908 WARNING (MainThread) [seatconnect.connection] Invalid credentials or invalid configuration. Make sure you have entered the correct credentials

Again, it looks like to resolve itself in time and reappears in time.

Any advice?

jressel01 commented 10 months ago

VWGroup set a limit of 1000 Requests per day. Change Configuration and set the poll to 120(the field was seconds not minutes) and alls is fine. Then it ask every 2 minutes. i Make a Pull request for it.

bartj12 commented 10 months ago

Thanks, changed to 120 and will monitor the coming days

jressel01 commented 10 months ago

you must wait until tomorow 1:00 in the morning you get data

bartj12 commented 10 months ago

Works again, will monitor for the rest of the day and close the issue.

Thanks!

jressel01 commented 10 months ago

i test it the last days. the minimum Value 90 works also because i get 960 requests per day. but with 120 i have more requests for other thinks.

bartj12 commented 10 months ago

120 did the trick!