Skip to content
This repository has been archived by the owner on Apr 15, 2023. It is now read-only.
/ mqtt-screen-power Public archive

MQTT Client for turning HDMI screen power on and off

License

Notifications You must be signed in to change notification settings

timmo001/mqtt-screen-power

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MQTT Screen Power

MQTT Client written in Python for turning HDMI screen power on and off. Made for the Rapsberry Pi 3B+ which is using a third-party touch screen which does not completely switch off the screen with screensaver / power saving

Usage

  • Copy config.template.py to config.py and change the properties to your MQTT setup/preferences

  • Install paho-mqtt

    pip install paho-mqtt
  • Run

    python paho-mqtt

Example use in Home Assistant

switch:
  - platform: mqtt
    name: "Touch Panel"
    icon: mdi:tablet
    command_topic: "screen/rpi"
    payload_on: 'on'
    payload_off: 'off'