Feature request: Google Sign-In / OAuth token refresh support #241
Device model namePETLIBRO Dockstream 2 Smart Cordless Fountain Device model numberPLWF116 Device typeFountain What is the issue?Feature request: Google Sign-In / OAuth token refresh supportHello, I would like to request proper Google Sign-In support with automatic token renewal for the PETLIBRO Home Assistant integration. My setup
What I testedI modified the integration locally so that it could temporarily accept a PETLIBRO API bearer token. With a fresh token from the Google account:
However, after approximately 30–40 minutes, Home Assistant begins receiving HTTP 401 responses and displays:
Examples of endpoints returning 401 include:
Keeping the Google account logged into the PETLIBRO app on a separate Android tablet does not solve the problem. The official app appears to refresh its own session token, but Home Assistant continues using the old token. I also added a reauthentication flow locally. This allows me to paste a new token without deleting the integration or losing the devices and entities, but it is still a manual and temporary solution. Requested featureCould the integration add support for one or more of the following?
The most important part would be automatic token renewal for a secondary Google account that has received shared access to the PETLIBRO device. I can provide sanitized Home Assistant logs and help test changes. I will not post bearer tokens, cookies, authorization codes, or other private credentials publicly. Thank you for maintaining this integration. TroubleshootingNo response Home Assistant LogsNo response |
Moved to - #265