Screen Brightness only 30%

Hi

I want to control the screen brightness from a tablet.
The following service is working, but only to about 30% of the maximum screen brightness.

service: notify.mobile_app_wkrr
data:
  message: command_screen_brightness_level
  data: 
    command: 255

Are there any restrictions, that I have to turn off, to reach maximum brightness?

Same result with Fully Kiosk
If I set the brightness on the mobile phone, I see 803% on the light entity

I couldnt find any workaround!

In Fully Kiosk Browser in “Device Management/Screen Brightness”, I can set value 2047 to get 100%.
How can I send this value via HA service - max value there is 255

Make sure you don’t have automatic brightness enabled.

I tried both automatic brightness enabled and disabled.
After changing the brightness to 255 via HA, the result is the same (~30% brightness on the device)

Hello, I have the same issue as you. Were you able to solve this problem?

I dont use Fully Kiosk anymore. I use a http_request node in NodeRed, to send Screen on/off and dim commands to Tasker.
Would be great to see this functionality in the Companion App too.

we have everything but screen off

also your device may have something liek adaptive brightness enabled that can also impact this number IIRC

I just tested with automatic brightness both enabled and disabled, and the result is that it’s not possible to set it above 255, which corresponds to 30% of the actual brightness.

automatic brightness is not the same thing as adaptive brightness. Double check which ones you set. Also you may need to use a notification command to turn off automatic brightness if the sensor state does not correspond to the UI. On a pixel device we have an adaptive brightness toggle but the automatic brightness command and sensor reflect different values.

https://companion.home-assistant.io/docs/core/sensors#screen-brightness-sensor

see the attribute mentioned

https://companion.home-assistant.io/docs/notifications/notification-commands#auto-screen-brightness

that should correspond to this command ,but not may not reflect the UI state. Both of these can cause weirdness to the value.

On a Redmi 9A there is no adaptive brightness but Sunlight-Mode which is probably the same.
automatic brightness and Sunlight-Mode is disabled
image

interesting your sensor state for screen brightness is 2016 ? the docs state it can only be 0 to 255

https://developer.android.com/reference/android/provider/Settings.System#SCREEN_BRIGHTNESS

The screen backlight brightness between 0 and 255.

that would explain why its off because we coerce the command to the max value the docs dictate but your device seems to be something undocumented :thinking:

feel free to file a bug in github and we can look into it

https://github.com/home-assistant/android/issues/new?assignees=&labels=bug&projects=&template=Bug_report.md&title=