michelnet / mqtt-screen-power

MQTT Client for turning HDMI screen power on and off

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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'

About

MQTT Client for turning HDMI screen power on and off

License:MIT License


Languages

Language:Python 100.0%