Alarm locked mode: Disconnection investigation

Probably a sleep mode, auto-reload or power-saving issue, yes. Had it again this morning. I’ll look into it, thanks :slight_smile:
Fully Kiosk loses connection to HA after going to sleep on Android tablet. : r/homeassistant (reddit.com)

Ah, I don’t have those messages, just the normal login screen

@spenceur this looks like another issue in my opinion !

Do you get this error at the moment when you try to enter the code ?

It’s cool, at least we have the error !

From what I find in the code, a 400 "Bad Parameters" when you try to enter the code means that the front end doesn’t have access to the refresh_token… :thinking:

Reading the code, I have a small idea of what might be happening !

I made a small PR :

I need to test all of that

Thanks for your feedback @spenceur

Note: I’m not entirely sure, it’s possible that the refresh_token is destroyed at some point if Gladys thinks it’s disconnected

When I enter the code and confirm it, yes

1 Like

I pushed the fix made above into Gladys 4.38.3.

I’m curious to see if that fixes the issue (not sure).

I’m not yet at the « Security » section in the training so for now I’m not using the feature, but as soon as I’ve gone through the alarm part I should encounter the bug (if it hasn’t been fixed) and be able to help even better :smiley: