Basically my idea would be that the access_token (valid 24h) expired at the moment you enter your code, so I force a refresh of this token at the moment the code is entered.
It’s entirely possible — in fact the issue happens every day around 6 PM or so.
You should know that every time I open the door, I refresh the tablet display to get the latest info on it; sometimes, for reasons I can’t explain, the info isn’t updated (on tablet, computer, phone or Gladys+).
Basically,
Door opened then,
I refresh the page
I turn on the screen then
I wait a minute then afterwards
I turn off the screen
And fairly regularly, when I deactivate the alarm, I get an error, I don’t really remember which one (but it’s a generic message). I refresh the page via the button, open the home page and then it asks me to log in again.
Unable to access the browser console.
Next time I’ll run docker logs to see if I get an explicit message.
I was thinking to help you debug, couldn’t you be more verbose in the case where a user enters a code and it hits a catch? Just long enough to find the needle, you know ^^
@spenceur I’ve posted this first PR in Gladys Assistant 4.33. It will give us clearer logs in the interface in case of issues + potentially a fix that could resolve the problem, but with no guarantee since I wasn’t able to fix the bug
Let me know here if the bug persists, with a screenshot of the error
It also happened to me 3 times that I had to reconnect, so you’re not alone. From memory it’s when I click on « Arm ». « Disarm » stays green, « Arm » turns blue at the same time, I refresh because having both at the same time shouldn’t be possible and I end up on the login screen. The link therefore seems to be broken before I click on « Arm », and the display bug is related to it failing to reach the instance.
No error message, but the absence of a message may be related to my database-locked problems at times. To be confirmed over time — I haven’t had any disconnections for 3 days.
Here we go again, my tablet keeps disconnecting. Up to twice a day. To be able to use « tablet mode » it is connected locally to Gladys’ IP.
No problem on smartphones connected to Gladys Plus which (I’m including my wife’s) have never experienced any disconnection.
I can’t find anything in the logs that could explain this…
Can anyone tell me where to look?
The symptom is that I find my tablet on Gladys’s login screen.
Exemple this morning. 8:30, I activate the alarm from the tablet which correctly displays the numeric keypad. My wife comes home at 11:00 and the tablet is displaying the login screen. She had to turn off the alarm from her smartphone.
I use Fully Kiosk Browser in the free version with almost all settings at their defaults.
This happens more or less at random but we mostly notice it when we come home and want to deactivate the alarm.
The tablet is not brand new. It’s a Sony running Android 6 which I reset to factory settings before dedicating it to Gladys.
When I reconnect
It’s clearly my tablet that’s the problem. I’m going to look I don’t have the issue on a regular PC even after restarting it, the reconnection is automatic.
Now to find the checkbox. It’s always a checkbox
Since you use Fully Kiosk Browser, you need to set a URL.
I assume the URL is that of your Gladys dashboard?
In alarm mode, maybe Fully Kiosk after a while refreshes the page to return to the desired URL, and that would trigger a redirect to the login since the tablet is actually « locked »?