I built this ESP8266-HTTP-IR-Blaster to control my window AC unit in my garage as well as a few other devices and was wondering if anyone knows how I can integrate it into HA?
It can receive commands via HTTP with the IR code JSON formatted… http://xxx.xxx.xxx.xxx:port/json?pass=yourpass&plain=[{“type”:“nec”,“data”:“FF827D”,“length”:32,“repeat”:3,“rdelay”:800}]
replacing with your ip, port, and yourpass of course.
If anyone could help me integrate this into Home Assistant that would be amazing. I am a HA noob and love it so far. Thanks!
Hi Chad, I actually put together a post about this where I’m doing almost the exact same thing: Andrew's Ramblings: ESP8266 Based Universal Remote. The Arduino code I used had the benefit of not needing credentials. If you continue to use this code you can probably post data to the page with an HA shell script such as:
@aneisch Thanks a lot for the advice. I did try this and although it didn’t work it was enough to push me in the right direction to solve it with a REST command…
I had started working on this a while back but got frustrated when the code wouldn’t turn on my panasonic plasma tv. I broke this back out this week and have it working on my Z906 speaker system with Pi Musicbox hooked to it.
Turns out there is problem in the database for panasonic, but I started over at square 1 using TV-B-Gone code which I found to work on my panasonic. I eventually narrowed the codes on TV-B-Gone to isolate the single panasonic code and plugged it into a MQTT switch, which was a decent workaround. I want to have multiple IR LEDs positioned around the gear so they will all get turned on with a script that gets triggered through home assistant.
I was able to get rest_command and shell_command both working. Your blog writeup is a good reference.
Thanks for taking the time to lay out your solution.