Skip to content

Instantly share code, notes, and snippets.

@jovimon
Last active September 16, 2022 12:50
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jovimon/1c236815b0382152e17b4742347dabf7 to your computer and use it in GitHub Desktop.
Save jovimon/1c236815b0382152e17b4742347dabf7 to your computer and use it in GitHub Desktop.
Python Broadlink Howto using python3
@daserra23
Copy link

This page was a lifesaver for me. Many thanks.

@marcelv73
Copy link

Hi, finally able to control my Mini 3 remotely. Great work !

Asking for help I am not an expert ; but while the script work on the commandline on my raspberry; I can't get it to work in Domoticz running it as a script on a virtual switch. It results in error ;

On the command line this works:

python3 ~/python-broadlink/cli/./broadlink_cli --host 192.168.1.165 --mac 24dfa7dece41 --type 0x5f36 --send @futjiton.txt > /dev/null 2>&1

**This script

#!/usr/bin/env python3
python3 ~/python-broadlink/cli/./broadlink_cli --host 192.168.1.165 --mac 24dfa7dece41 --type 0x5f36 --send @futjiton.txt > /dev/null 2>&1
exit 0

Saved as aircoon.sh does not work, nor on the command line nor in Domoticz ; it gives a syntax error on command prompt and in Domoticz; "Error: Error executing script command (/home/pi/domoticz/scripts/aircoon.sh). returned: 256"

Any idea what I am doing wrong ? Thks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment