Thomas55555 / husqvarna_automower

Custom component for Home Assistant to monitor and control your Husqvarna Automower
https://github.com/Thomas55555/husqvarna_automower
MIT License
105 stars 28 forks source link

reconfigure integration #499

Closed tomdevos2401 closed 10 months ago

tomdevos2401 commented 1 year ago

Prerequirements [ ] I have connected my mower(s) to the Automower Connect App [ ] I have connected my Husqvanra developers account to the Authentication API [ ] I have connected my Husqvarna developers account to the Automower Connect API

Describe the bug every day I receive a notification within home assistant to reconfigure the integration. I just have to provide my credentials of the husqvarna dev portal and link the account and all goes well again for max 24 hours.

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem.

Additional context Add any other context about the problem here.

tomdevos2401 commented 1 year ago

hi @Thomas55555 ,

i enabled loggers and now i receive this information in the log. i need to re-authenticate the integration every few days to make it work again.

2023-08-25 18:25:39.985 DEBUG (MainThread) [aioautomower.rest] Resp.status refresh token: {'error': 'invalid_grant', 'error_description': 'Failed to find token', 'error_code': 'token.not.found'} 2023-08-25 18:25:39.997 INFO (MainThread) [homeassistant.components.camera] Setting up camera.mqtt 2023-08-25 18:25:40.005 DEBUG (MainThread) [custom_components.husqvarna_automower] Exception in async_setup_entry: The token cannot be refreshed, respone from Husqvarna Automower API: {'error': 'invalid_grant', 'error_description': 'Failed to find token', 'error_code': 'token.not.found'} 2023-08-25 18:25:40.007 DEBUG (MainThread) [custom_components.husqvarna_automower] Finished fetching husqvarna_automower data in 1.162 seconds (success: False) 2023-08-25 18:25:40.007 WARNING (MainThread) [homeassistant.config_entries] Config entry 'husqvarna_automower' for husqvarna_automower integration could not authenticate 2023-08-25 18:25:40.018 INFO (MainThread) [homeassistant.components.sensor] Setting up sensor.mqtt 2023-08-25 18:25:40.152 DEBUG (MainThread) [custom_components.husqvarna_automower.config_flow] USER INPUT NONE

stale[bot] commented 10 months ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.