Hacked together UI for Broadlink devices like the Broadlink RM4 Pro
- https://github.com/mjg59/python-broadlink
- https://github.com/topics/tkinter-python
- https://github.com/TkinterEP/ttkthemes
- https://github.com/mjg59/python-broadlink/tree/master/cli
git clone https://github.com/zDEFz/broadlink-ui
cd ~/broadlink-ui
python3 -m venv venv
source venv/bin/activate
pip3 install -r requirements.txt
yay python-broadlink
Please follow https://github.com/mjg59/python-broadlink/tree/master/cli
# nano BEDROOM.device
# 0x5213 192.168.178.98 ec0baed88fcb
<yourdeviceidentifier> <IP> <deviceID>
# nano broadlink_ui.py
# adjust as needed
device_path = "/home/blu/broadlink/BEDROOM.device"
file_path = "/home/blu/broadlink/broadlink-devices.json"
Currently we just use broadlink_cli and broadlink_discovery binaries. Therefore, we need to run from the binaries. Admittedly, this is not the best solution.
function broadlink_ui() {
cd ~/broadlink-ui
source venv/bin/activate
python3 broadlink_ui.py
}
You left click a button to send the comman.d
You right click a button to copy the open a menu to copy the command line.
Would get you for instance broadlink_cli --device @/home/blu/broadlink/BEDROOM.device --send @/home/blu/broadlink/RME/ADI2-DAC-FS/1-ana