-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Integration needs to be reloaded to get current state of mower #215
Comments
It should update right away after a state change of the mower. Normally it's around 1 second delay. I have seen some cases where it takes a bit longer (but still < 10s); but in these cases the state update event was delayed on the Bosch cloud side. Do you have any errors in the logs? Otherwise there not much we can check. |
I've similar issues. I also lost updates. |
I just removed my integration again. Updated core to version 2024.5.4 install/downloaded the Bosch Indego integration again (release: 5.6.1) rebooted the home-assistant and added my indego again. `Logger: custom_components.indego Mower state update failed, reason: 502, message='Bad Gateway', url=URL('https://api.indego-cloud.iot.bosch-si.com/api/v1/alms/903603793/state?longpoll=true&timeout=300&last=258')` `Logger: homeassistant Error doing job: Future exception was never retrieved `Logger: py.warnings /usr/local/lib/python3.12/asyncio/base_events.py:1989: RuntimeWarning: coroutine 'IndegoHub.refresh_state' was never awaited handle = None # Needed to break cycles when an exception occurs.` |
If I open the Bosch Indego app on my phone, I lost update in Home-assistant. But I could still start and pause the unit from home assistant. And the updated came back on again. |
That might actually also be the same in my case. I use the Indego app a lot. Regarding the Bad Gateway issue, it could be because, Bosch had a general issue at that time. |
Oups, hit the wrong button. Weren't supposed to close this issue. |
Just checked the logs. Got 4 different errors logs from indego. All returned error 500. indego Start/Stop Mowing: Error executing script. Unexpected error for choose at pos 1: 500, message='', url=URL('https://api.indego-cloud.iot.bosch-si.com/api/v1/alms/903603793/state') Logger: homeassistant.components.script.indego_return_to_dock Indego return to dock: Error executing script. Unexpected error for call_service at pos 1: 500, message='', url=URL('https://api.indego-cloud.iot.bosch-si.com/api/v1/alms/903603793/state') |
I have same issue |
A few tests seem to confirm this: |
Even im not using bosch app I can start mover but the status is not Updating that mover is running |
Based on your input I get the feeling the state longpoll (the way to monitor the realtime state changes) only work for one client. Maybe they have changes this behavior at the cloud side. Doesn't it starts working again when you kill/quit the official app and wait 5 minutes (a longpoll has a timeout of 300s)? And are using the latest release of develop version of this integration? |
I have the exact same problem. Since 3 weeks the state is not updated anymore. I'm on the latest Home Assistant Version and have no idea what caused the problem. |
I am on version 5.5.0 according to HA. To me, it can go for days without updating. So it seems, it simply stops updating, once the official app has connected to the mower. Wonder if it's a Bosch side change or the new version of HA. |
I had the same issue that the integration stopped updating states randomly. After a reload of the integration it was working fine for hours an then stopped again. After updating to developer version 5.6.2 it is working fine now for two days. |
I have not been able to reproduce the issue yet. I'm currently testing on HA 2024.4.3 ; it might be related to a newer version. Some people did post logs with 5XX (like 500 or 502) errors. These errors are not related to this integration. I have seen these in several cases, a few examples:
|
I did some tests over the past few days. I can't reproduce the issue. I have tested with multiple apps and HA instances at the same time and also with the latest release (2024.5.4) of HA. I have still some idea's about why it might not working in your case. But I will need some debug logs using the latest develop version in order to continue investigating. Also report the exact time when it stops updating ; so I know where to look in the logs. Make sure you enable full logging of this component and it's library by adding this the your HA config:
|
I finally see a state update error in one of my setups similar to this issue ;-) It seems that the Bosch API has to fail several times, then the wait feature kicks in (to prevent overloading the API) but it never returns from the wait. I will look into that. |
Fix is on the develop branch. |
Hi @sander1988 I just tried update my version to 5.7.0, but I got failuer connecting: [CCD234] Request to 'https://api.indego-cloud.iot.bosch-si.com/api/v1/alms' failed with HTTP status code: 403 |
I changed the user agent to: Mozilla/5.0 (iPhone; CPU iPhone OS 17_5_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.4.1 Mobile/15E148 Safari/604.1 |
Similar issue here. Unable to load integration on 5.7.0b. |
Why is this issue closed? There seems to be a problem with 5.7.0b |
The issue seen in de logs posted here is resolved. I was able to reproduce and test the fix afterwards. If you still have a similar problem, then it's probably something else. In that case please create a new issue providing the new details. I have created an issue template to guide you providing the right information (you will see it when opening a new issue). |
The integration work, and if I use the service, for example to send the mower to the docking station or to start mowing, it works.
But the shown current state is not updated, until I reload the integration.
The text was updated successfully, but these errors were encountered: