Home Assistant custom integration for controlling the brightness and screen power of the official 7" RaspberryPi Touchscreen. Built to communicate with the RaspberryPi Backlight Server.
-
The project is added as a custom repository from HACS, so make sure you have that installed first.
-
Add it as a custom repository in HACS:
a. Go to HACS panel -> Integrations
b. In the dropdown on the top right, click
Custom repositories
c. In the
Add custom repository URL
field, enterhttps://github.com/gannonprudhomme/ha-rpi-backlight
and forcategory
enterIntegration
.d. The repository should appear as a
New repository
on theIntegration
screen. If it doesn't, go to+ Explore & Add Repositories
then search for it. You'll then need to restart HA.e. Then click
Install
to install it intoconfig/custom_components
-
Add it to Home Assistant as you would any other integration, and enter the desktop's URL during the config flow.
-
You can can optionally change the scanning interval in the below Configuration step.
You can add the integration through Home Assistant's UI.
Additional, you can add the following to your configuration.yaml
:
rpi_backlight:
scanning_interval: 5 # in seconds, defaults to 30
Due to Docker not allowing host networking on Windows, you must install Home Assistant manually
(pip install wheel
, pip install homeassistant
, hass -c .
).