File | Date | Author | Commit |
---|---|---|---|
.gitattributes | 2021-10-19 | Doug Wyman | [4c5b15] Initial commit |
MqttScr.py | 2021-10-30 | Doug Wyman | [ba68ad] First Commit |
README.md | 2021-10-30 | Doug Wyman | [ba68ad] First Commit |
RpiMqtt.conf | 2021-10-30 | Doug Wyman | [ba68ad] First Commit |
lights.yaml | 2021-10-30 | Doug Wyman | [ba68ad] First Commit |
mqttscrD | 2021-10-30 | Doug Wyman | [ba68ad] First Commit |
<!DOCTYPE html>
<meta charset="utf-8"> <title>RPi remote Backlight</title>Remote Control for Touch screen backlight on Raspberry Pi for control by Home Assistant
1) On the Raspberry Pi copy the MqttScr.py and RpiMqtt.conf files to a convenient folder.
The folder used in testing was /var/www/html.
If this location is changed, that change needs to be reflected in the mqttscrD file.
2) For the start and restart to work properly python3 needs to be linked to pyscr.
Enter the command "sudo ln /usr/bin/python3 /usr/bin/pyscr"
This allows the program to be stopped and started without affecting other python3 programs.
3) To enable startup at boot and restart of the app, copy mqttscrD to the /etc/init.d folder.
Then activate it by typing in "sudo update-rc.d mqttscrD defaults"
This installs mqttscrD as a service.
The backlight control will look like a light to Homeassistant
It can be added to the lights.yaml file with the entry in lights.yaml.
It can also be added to configuration.yaml as a light.
Suggestions branches or anything to improve this is welcome.