Skip to content

Instantly share code, notes, and snippets.

@jhthorsen
Last active September 15, 2022 21:38
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save jhthorsen/52d12e79afc09249ac06a4f0d6160736 to your computer and use it in GitHub Desktop.
Save jhthorsen/52d12e79afc09249ac06a4f0d6160736 to your computer and use it in GitHub Desktop.
Tasmota Rule1 IrReceived to Homebridge Button Platform
https://www.amazon.co.jp/gp/product/B08LD13HVC/ref=ppx_yo_dt_b_asin_title_o03_s00?ie=UTF8&psc=1
Friendly name: ESP_3C69E4_IR
Template: {"NAME":"ESP8285 Infrared Transceiver","GPIO":[0,0,0,0,1056,0,0,0,0,0,1088,0,0,0],"FLAG":0,"BASE":20}
backlog ipaddress1 192.168.50.52; ipaddress2 192.168.50.1; ipaddress3 255.255.255.0; ipaddress4 1.1.1.1
# LG volume up/down
{"IrReceived":{"Protocol":"NEC","Bits":32,"Data":"0x20DF40BF","DataLSB":"0x4FB02FD","Repeat":0}}
{"IrReceived":{"Protocol":"NEC","Bits":32,"Data":"0x20DFC03F","DataLSB":"0x4FB03FC","Repeat":0}}
# Waves Air Mouse + Keyboard on/off
{"IrReceived":{"Protocol":"NEC","Bits":32,"Data":"0x20DF10EF","DataLSB":"0x4FB08F7","Repeat":0}}
Rule1
ON IrReceived#Data=0x77E140BE DO WebQuery http://192.168.50.1:8582/button-apple-remote-menu?event=click GET ENDON
ON IrReceived#Data=0x77E120BE DO WebQuery http://192.168.50.1:8582/button-apple-remote-play?event=click GET ENDON
ON IrReceived#Data=0x77E110BE DO WebQuery http://192.168.50.1:8582/button-apple-remote-prev?event=click GET ENDON
ON IrReceived#Data=0x77E1E0BE DO WebQuery http://192.168.50.1:8582/button-apple-remote-next?event=click GET ENDON
ON IrReceived#Data=0x77E1D0BE DO WebQuery http://192.168.50.1:8582/button-apple-remote-plus?event=click GET ENDON
ON IrReceived#Data=0x77E1B0BE DO WebQuery http://192.168.50.1:8582/button-apple-remote-minus?event=click GET ENDON
ON IrReceived#Data=0x20DF10EF DO WebQuery http://192.168.50.1:8582/button-waves-remote-power?event=click GET ENDON
Rule1 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment