Hi All,
I managed to get my home theatre amp to respond to IR commands using ESPeasy irsend command with an IR led on a GPIO using a transistor to drive the LED a bit harder.
So far the amp power can be controlled via OpenHAB ,see configs below, I want to control volume as well and have the up and down buttons showing in the web interface.
can someone help me with what must go in the items file, I need an http irsend command to be repeatedly sent while the up button is pressed and a different http irsend command to be sent repeatedly while the down button is pressed.
I can determine the IR code to send,I just need some help in getting openHAB to repeatedly send the http command when the up or down buttons are pressed.
Thanks
Dave
sitemap
Frame label=“Home Theatre Amp” {
Switch item=teac1
Slider item=teac2 icon="app-icon"
}
items
Switch teac1 “Power Control” { http=">[ON:GET:http://192.168.100.228/control?cmd=IRSEND,NEC,81CEE01F,32] >[OFF:GET:http://192.168.100.228/control?cmd=IRSEND,NEC,81CEE01F,32]" }
Slider teac2 “Gain Control” { What goes here ? }