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:
- "YjIwNTM0MDAyNDBkMjQwYzBkMjQwZDI0MjQwZDI1MGMwZDI0MGQyNDBkMjQwZDI0MGQyNDBkMjQyNDBkMjUwZDI1MGMyNTBjMGQyNDBkMjQyNTBjMGQyNDBkMjQwZDI1MGQyNDI1MGMwZDAwMDE3MjAwMDAwMDAw"