home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
72.53k stars 30.35k forks source link

Litter-Robot integration failing #98996

Closed russellmilliner closed 1 year ago

russellmilliner commented 1 year ago

The problem

Aa few days ago the Litter-Robot app and HA integration stopped working. I have found that there is a new app called Whiskers, so I assume that the API for the old app is no longer working or supported.

What version of Home Assistant Core has the issue?

2023.8.3

What was the last working version of Home Assistant Core?

2023.8.3

What type of installation are you running?

Home Assistant Container

Integration causing the issue

Litter-Robot

Link to integration documentation on our website

https://home-assistant.io/integrations/litterrobot/

Diagnostics information

home-assistant_litterrobot_2023-08-25T03-19-15.486Z.log

Example YAML snippet

No response

Anything in the logs that might be useful for us?

`2023-08-24 23:15:00.817 DEBUG (MainThread) [pylitterbot.session] Making POST request to https://42nk7qrhdg.execute-api.us-east-1.amazonaws.com/prod/login
2023-08-24 23:15:02.872 DEBUG (MainThread) [pylitterbot.session] Received 200 response: {'token': '**REDACTED**'}
2023-08-24 23:15:02.872 DEBUG (MainThread) [pylitterbot.session] Making POST request to https://www.googleapis.com/identitytoolkit/v3/relyingparty/verifyCustomToken
2023-08-24 23:15:02.997 DEBUG (MainThread) [pylitterbot.session] Received 200 response: {'kind': 'identitytoolkit#VerifyCustomTokenResponse', 'idToken': '**REDACTED**', 'refreshToken': '**REDACTED**', 'expiresIn': '3600', 'isNewUser': False}
2023-08-24 23:15:02.998 DEBUG (MainThread) [pylitterbot.session] Making GET request to https://v2.api.whisker.iothings.site/users
2023-08-24 23:15:03.212 WARNING (MainThread) [homeassistant.config_entries] Config entry 'milliner@pobox.com' for litterrobot integration not ready yet: Unable to connect to Litter-Robot API; Retrying in background
2023-08-24 23:15:08.289 DEBUG (MainThread) [pylitterbot.session] Making POST request to https://42nk7qrhdg.execute-api.us-east-1.amazonaws.com/prod/login
2023-08-24 23:18:39.264 WARNING (MainThread) [homeassistant.config_entries] Config entry 'milliner@pobox.com' for litterrobot integration not ready yet: Unable to connect to Litter-Robot API; Retrying in background
2023-08-24 23:19:09.816 DEBUG (MainThread) [pylitterbot.session] Making POST request to https://42nk7qrhdg.execute-api.us-east-1.amazonaws.com/prod/login
2023-08-24 23:19:11.982 DEBUG (MainThread) [pylitterbot.session] Received 200 response: {'token': '**REDACTED**'}
2023-08-24 23:19:11.982 DEBUG (MainThread) [pylitterbot.session] Making POST request to https://www.googleapis.com/identitytoolkit/v3/relyingparty/verifyCustomToken
2023-08-24 23:19:12.026 DEBUG (MainThread) [pylitterbot.session] Received 200 response: {'kind': 'identitytoolkit#VerifyCustomTokenResponse', 'idToken': '**REDACTED**', 'refreshToken': '**REDACTED**', 'expiresIn': '3600', 'isNewUser': False}
2023-08-24 23:19:12.026 DEBUG (MainThread) [pylitterbot.session] Making GET request to https://v2.api.whisker.iothings.site/users
2023-08-24 23:19:12.177 WARNING (MainThread) [homeassistant.config_entries] Config entry 'milliner@pobox.com' for litterrobot integration not ready yet: Unable to connect to Litter-Robot API; Retrying in background
`

Additional information

I have tried removing the "hub" and readding with no success.

T0ytoy commented 1 year ago

Same issue that started a few hours ago: the hass integration doesn't work anymore, the official whisker app works as intended.

home-assistant[bot] commented 1 year ago

Hey there @natekspencer, @tkdrob, mind taking a look at this issue as it has been labeled with an integration (litterrobot) you are listed as a code owner for? Thanks!

Code owner commands Code owners of `litterrobot` can trigger bot actions by commenting: - `@home-assistant close` Closes the issue. - `@home-assistant rename Awesome new title` Renames the issue. - `@home-assistant reopen` Reopen the issue. - `@home-assistant unassign litterrobot` Removes the current integration label and assignees on the issue, add the integration domain after the command.

(message by CodeOwnersMention)


litterrobot documentation litterrobot source (message by IssueLinks)

tkdrob commented 1 year ago

Update to the latest HA. Also check for any issues even closed ones to see if your issue was answered before opening a new one.

skyw33 commented 1 year ago

I'm seeing the same error.

russellmilliner commented 1 year ago

The integration does appear to be working in 2023.8.4. My environment only checks for upgrades every 24 hours and it hadn't been that long since that release yet.

russellmilliner commented 1 year ago

Update to the latest HA. Also check for any issues even closed ones to see if your issue was answered before opening a new one.

I did look for existing issues and did not find one, which is why I created this one.

PhantomPhoton commented 1 year ago

I've updated to 2023.8.4 and I'm still getting the same error. I've run curl on the endpoints specified and curl has been completely successful, however, even after removing and re-installing, the integration is failing.

russellmilliner commented 1 year ago

I've updated to 2023.8.4 and I'm still getting the same error. I've run curl on the endpoints specified and curl has been completely successful, however, even after removing and re-installing, the integration is failing.

Maybe try deleting the hub and re-add it. I had deleted mine as part of the problem diag process, and after updating to 8.4 it just worked. I guess also make sure that you've logged into the whiskers app at least once.

T0ytoy commented 1 year ago

After I updated to 2023.0.4 this afternoon it was fixed, but it has been broken again for a few hours now, which is weird :/

natekspencer commented 1 year ago

Please see https://github.com/home-assistant/core/issues/99060