home-assistant / home-assistant/android

Don't limit brightness to 255 to support tablets with finer control

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

Description

**Home Assistant Android app version(s):**
2025.8.7-full

**Android version(s):**
15 (kernel 6.6.57)

**Device model(s):**
Lenovo T311FU Tablet

**Home Assistant version:**
2025.9.1

**Last working Home Assistant release (if known):**
N/A

**Description of problem, include YAML if issue is related to notifications:**
Notification commands - Screen Brightness Level
Valid values are between 0 and 255, but my brand new Lenovo Tablet has a max level of 3556.
Should not limit the value to 255 when multiple tablet manufacturers are providing finer control, even if the official spec is only up to 255.

**Screenshot or video of problem:**
Image showing results of setting screen brightness to 255 from app and setting it to 100% from the tablet. Tablet 100%=3556. App 100%=255, which is very dim.
Image

**Additional information:**
This would mean changing "255" in line 2127 of MessagingManager.kt to allow a max of 4096, for example, and updating the documentation to state that the standard is 0 to 255, but values above 255 are supported for devices that use them.

https://github.com/home-assistant/android/issues/3356
Was closed with "spec only lists up to 255 so we won't do anything."
That makes sense if values over 255 would crash regular tablets, but not otherwise.
Unfortunately this limitation prevents me from being able to automatically brighten/dim for use as a display at night. :-(

Thank you!

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.