Skip to content

bartekl1/monitor-control-mqtt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Monitor Control MQTT

Home Assistant compatible program to control PC monitors via MQTT.

Features

  • Control laptop built-in screen brightness (via Windows API, using screen-brightness-control library)
  • Control external monitors brightness, contrast and input source (via DDC/CI, using monitorcontrol library)
  • Multiple monitor support
  • Home Assistant compatible MQTT discovery

Requirements

Installation

  1. Clone the repository or download the source code.
git clone https://github.com/bartekl1/monitor-control-mqtt.git
cd monitor-control-mqtt
  1. Install PIP dependencies.
pip install -r requirements.txt
  1. Create configuration file config.yaml.

Minimal example:

mqtt:
  host: 192.168.1.123
  username: user
  password: pass

See config.template.yaml for all available options.

  1. Run the script.
python main.py
  1. (Optional) Configure script to run on startup. For example, you can use HKCU\Software\Microsoft\Windows\CurrentVersion\Run registry key or Task Scheduler.

About

Home Assistant compatible program to control PC monitors via MQTT.

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages