I’m using a Raspberry Pi 3 with the official 7" touchscreen to run my Home Assistant and have it set up as an always on screen for a wall mounted control. I have it in my living room and would like to be able to dim the screen at night when watching our tv with the lights dim. I can set up the automation no problem but I cant get the command_line switch to work.
This command works through putty to adjust the brightness where n is the brightness level:
sudo echo n > /sys/class/backlight/rpi_backlight/brightness
Sounds like what you need here is the Input slider component of HA, from there the automation example pretty much shows you how it works and how you could apply it to your scenario
I read through the input slider component and I don’t see how it could help. Having a slider isn’t really the issue. My issue is with getting the command line to work. Once I get the command line working I might be able to use the input slider though.