mdhiggins / ESP8266-HTTP-IR-Blaster

ESP8266 Compatible IR Blaster that accepts HTTP commands for use with services like Amazon Echo
MIT License
968 stars 217 forks source link

Is it possible to program sequences? #331

Closed Jeebus678 closed 2 years ago

Jeebus678 commented 2 years ago

First of all, thank you for this project. Very impressive.

My remote doesn't have a singular button that changes input- it requires me to press 'source', up/down arrow, then enter. I've been testing this program out a bit and while it is a beautiful piece of work, I am unsure if this feature is possible.

mdhiggins commented 2 years ago

You can look up and see if your TV has "discrete" codes which are essentially private codes that do additional functions (like change input, power off without powering on etc)

Other than that aside from programming a sequence of inputs (which the script supports) you might be stuck

mdhiggins commented 2 years ago

http://www.remotecentral.com/files/use-ir.htm

DragRedSim commented 2 years ago

I can confirm that it is possible to chain a set of inputs from one command. Here's an example:

http://example.com:port/json?simple=1&plain=[{'type':'nec','data':'FD0BF4','length':32},{'type':'delay','rdelay':6000},{'type':'nec','data':'FD04FB','length':32},{'type':'nec','data':'FD9867','length':32,'repeat':25},{'type':'nec','data':'FD18E7','length':32,'repeat':1},{'type':'nec','data':'FDA857','length':32}]

This is an exact command I use on my TV to change to the HDMI 2 input. It turns on the TV (if it isn't on already, since it uses a discrete on/off set), waits six seconds for it to come up, opens the main menu, holds left for 25 presses to scroll to a known good place, presses right once, then presses OK.