sander1988 / Indego

Home Assistant Custom Component for Bosch Indego Lawn Mower
Apache License 2.0
96 stars 29 forks source link

No connection or connection lost? #119

Closed apelders closed 3 years ago

apelders commented 3 years ago

It looks like I cannot get my data from Bosch. No clue what I have done wrong.

2020-11-17 19:40:43 DEBUG (MainThread) [pyIndego.indego_async_client] Sending POST to https://api.indego.iot.bosch-si.com/api/v1/authenticate 2020-11-17 19:40:45 DEBUG (MainThread) [pyIndego.indego_async_client] status: 200 2020-11-17 19:40:45 DEBUG (MainThread) [pyIndego.indego_async_client] Response: {'contextId': '81349792-6add-4578-a901-26267f8d4cc2', 'userId': 'af610a80-d25f-11ea-9996-0050569b2664', 'alm_sn': '021601318'} 2020-11-17 19:40:45 DEBUG (MainThread) [pyIndego.indego_async_client] Logged in 2020-11-17 19:41:05 DEBUG (MainThread) [custom_components.indego] Starting initial update. 2020-11-17 19:41:05 DEBUG (MainThread) [custom_components.indego] Refreshing state. 2020-11-17 19:41:05 DEBUG (MainThread) [pyIndego.indego_async_client] Sending GET to https://api.indego.iot.bosch-si.com/api/v1/alms/5571145/state?longpoll=true&timeout=300&last=0 2020-11-17 19:41:05 DEBUG (MainThread) [custom_components.indego] Refreshing 10m. 2020-11-17 19:41:05 DEBUG (MainThread) [custom_components.indego] Refreshing 24h. 2020-11-17 19:41:05 DEBUG (MainThread) [pyIndego.indego_async_client] Sending GET to https://api.indego.iot.bosch-si.com/api/v1/alms/5571145 2020-11-17 19:41:05 DEBUG (MainThread) [pyIndego.indego_async_client] Sending GET to https://api.indego.iot.bosch-si.com/api/v1/alerts 2020-11-17 19:41:05 DEBUG (MainThread) [pyIndego.indego_async_client] Sending GET to https://api.indego.iot.bosch-si.com/api/v1/alms/5571145/predictive/lastcutting 2020-11-17 19:41:05 DEBUG (MainThread) [pyIndego.indego_async_client] Sending GET to https://api.indego.iot.bosch-si.com/api/v1/alms/5571145/predictive/nextcutting 2020-11-17 19:41:05 DEBUG (MainThread) [pyIndego.indego_async_client] status: 404 2020-11-17 19:41:05 ERROR (MainThread) [pyIndego.indego_async_client] 404, message='', url=URL('https://api.indego.iot.bosch-si.com/api/v1/alms/5571145/predictive/nextcutting'): Failed GET to Indego, won't retry 2020-11-17 19:41:05 DEBUG (MainThread) [pyIndego.indego_async_client] status: 404 2020-11-17 19:41:05 ERROR (MainThread) [pyIndego.indego_async_client] 404, message='', url=URL('https://api.indego.iot.bosch-si.com/api/v1/alms/5571145/predictive/lastcutting'): Failed GET to Indego, won't retry 2020-11-17 19:41:08 DEBUG (MainThread) [pyIndego.indego_async_client] status: 429 2020-11-17 19:41:08 ERROR (MainThread) [pyIndego.indego_async_client] 429, message='', url=URL('https://api.indego.iot.bosch-si.com/api/v1/alerts'): Failed GET to Indego, won't retry 2020-11-17 19:41:08 DEBUG (MainThread) [pyIndego.indego_async_client] status: 429 2020-11-17 19:41:08 ERROR (MainThread) [pyIndego.indego_async_client] 429, message='', url=URL('https://api.indego.iot.bosch-si.com/api/v1/alms/5571145/state?longpoll=true&timeout=300&last=0'): Failed GET to Indego, won't retry 2020-11-17 19:41:08 DEBUG (MainThread) [custom_components.indego] Refreshing state. 2020-11-17 19:41:08 DEBUG (MainThread) [pyIndego.indego_async_client] Sending GET to https://api.indego.iot.bosch-si.com/api/v1/alms/5571145/state?longpoll=true&timeout=300&last=0 2020-11-17 19:41:08 DEBUG (MainThread) [pyIndego.indego_async_client] status: 429 2020-11-17 19:41:08 ERROR (MainThread) [pyIndego.indego_async_client] 429, message='', url=URL('https://api.indego.iot.bosch-si.com/api/v1/alms/5571145'): Failed GET to Indego, won't retry 2020-11-17 19:41:08 DEBUG (MainThread) [custom_components.indego] Refreshing initial operating data. 2020-11-17 19:41:08 DEBUG (MainThread) [pyIndego.indego_async_client] Sending GET to https://api.indego.iot.bosch-si.com/api/v1/alms/5571145/operatingData 2020-11-17 19:41:12 DEBUG (MainThread) [pyIndego.indego_async_client] status: 429 2020-11-17 19:41:12 ERROR (MainThread) [pyIndego.indego_async_client] 429, message='', url=URL('https://api.indego.iot.bosch-si.com/api/v1/alms/5571145/state?longpoll=true&timeout=300&last=0'): Failed GET to Indego, won't retry 2020-11-17 19:41:12 DEBUG (MainThread) [pyIndego.indego_async_client] status: 429 2020-11-17 19:41:12 ERROR (MainThread) [pyIndego.indego_async_client] 429, message='', url=URL('https://api.indego.iot.bosch-si.com/api/v1/alms/5571145/operatingData'): Failed GET to Indego, won't retry 2020-11-17 19:41:12 INFO (MainThread) [custom_components.indego] Updating operating data 2020-11-17 19:41:12 DEBUG (MainThread) [custom_components.indego] Refreshing state. 2020-11-17 19:41:12 DEBUG (MainThread) [pyIndego.indego_async_client] Sending GET to https://api.indego.iot.bosch-si.com/api/v1/alms/5571145/state?longpoll=true&timeout=300&last=0 2020-11-17 19:41:15 DEBUG (MainThread) [pyIndego.indego_async_client] status: 429 2020-11-17 19:41:15 ERROR (MainThread) [pyIndego.indego_async_client] 429, message='', url=URL('https://api.indego.iot.bosch-si.com/api/v1/alms/5571145/state?longpoll=true&timeout=300&last=0'): Failed GET to Indego, won't retry 2020-11-17 19:41:15 DEBUG (MainThread) [custom_components.indego] Refreshing state. 2020-11-17 19:41:15 DEBUG (MainThread) [pyIndego.indego_async_client] Sending GET to https://api.indego.iot.bosch-si.com/api/v1/alms/5571145/state? etc...

This is my configuration.yaml indego: name: Indego username: !secret indego_username password: !secret indego_password id: !secret indego_id

logger: default: critical logs: custom_components.indego: debug pyIndego: debug

Shamshala commented 3 years ago

There is code 404 which means the server is unavailable and then 429 means too many requests, so you have to wait for god knows how long and try it later.

Probably maintenance? Try HA restart and if the issue will persist, try it again later.

apelders commented 3 years ago

I solved the issue. I used my User ID iso the serial number for indego_id: The data is now visible. Thanks for your help @Shamshala

Shamshala commented 3 years ago

I was actually just editing my reply asking whether you used a serial number of your mower :laughing: