projects:internetofthings:broadlink

broadlink

wget https://raw.githubusercontent.com/mjg59/python-broadlink/master/cli/broadlink_cli
wget https://raw.githubusercontent.com/mjg59/python-broadlink/master/cli/broadlink_discovery
chmod +x broadlink_cli broadlink_discovery

./broadlink_discovery
echo "0x2787 192.168.2.28 a126f434ea34" > broadlink

IR

./broadlink_cli --device @broadlink --learn

RF

./broadlink_cli --device @broadlink --rfscanlearn

 # convert result code from hex to base64
echo "..." | xxd -r -p | base64

scripts.yaml

parcheggio:
  sequence:
    - service: broadlink.send
      data:
        host: 192.168.2.28
        packet:
          - "sgU0ACQNJAwNJA0kJA0lDA0kDSQNJA0kDSQNJCQNJQ0lDCUMDSQNJCUMDSQNJA0lDSQlDA0AAXIAAAAA"

to reload deviced in haaska deactivate skill and enable.

  • projects/internetofthings/broadlink.txt
  • Last modified: 2019/07/13 14:26
  • by scipio