Skip to content

HomeAssistant integration for controlling the power & brightness of the official 7" RaspberryPi Touchscreen

License

Notifications You must be signed in to change notification settings

gannonprudhomme/ha-rpi-backlight

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RaspberryPi Backlight Integration

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.

Installation (via HACS)

  1. The project is added as a custom repository from HACS, so make sure you have that installed first.

  2. 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, enter https://github.com/gannonprudhomme/ha-rpi-backlight and for category enter Integration.

    d. The repository should appear as a New repository on the Integration 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 into config/custom_components

  3. Add it to Home Assistant as you would any other integration, and enter the desktop's URL during the config flow.

  4. You can can optionally change the scanning interval in the below Configuration step.

Configuration

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

Development

Due to Docker not allowing host networking on Windows, you must install Home Assistant manually (pip install wheel, pip install homeassistant, hass -c .).

About

HomeAssistant integration for controlling the power & brightness of the official 7" RaspberryPi Touchscreen

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages