home-assistant / home-assistant/android

Sensor "Keyguard: Device locked" not updating on device lock or periodically

Open
#6,958 7 comments 0 reactions 0 assignees View on GitHub
bug sensor-tracking
Dominant language
Kotlin
Stars
3.9k
Forks
1.1k
Avg merge
1d 12h
Merged PRs (30d)
81

Description

**Home Assistant Android app version(s):**
2026.4.4

**Android version(s):**
13 & 16

**Device model(s):**
Samsung SM-T530 & Fairphone 6

**Home Assistant version:**
2026.6.0b1

**Last working Home Assistant release (if known):**
It's my first attempt.

**Description of problem, include YAML if issue is related to notifications:**
The "Keyguard: Device locked"-sensor is not set to `on` when the device is locked (or within the set period). It only gets set to `on` when the screen is turned on after locking the device.

**Companion App Logs:**
_The app is warning me that there is personal information in the logs and the logs are huge. That's a bit of a problem. Let me know if you need them but afaict it should be easy to reproduce, because I tried 2 completely different devices and they both behave in the exact same way._

**Screenshot or video of problem:**

https://github.com/user-attachments/assets/cefb6ffc-77f8-46d6-8e13-900a26d23070

**Additional information:**
The behavior contradicts the claim in the app that the sensor is only updated periodically. because it registers the locked state only after turning the screen on (not periodically) but registers the unlocked state only periodically.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.