Page 1 of 1

MQTT control IRsend plugin ?

Posted: 25 Jan 2019, 19:02
by DaveS
I am running espeasy mega-20180822 and have it controlling my home theatre amp using HTTP but would like to use MQTT to send IR signals.

http://192.168.100.1/control?cmd=IRSEND,NEC,3CC302FD,32 turns my amp on or off.

What should the MQTT command look like if the unit name is BarIR and the device name is TeacAmp.

I am sure my payload syntax is not right,if someone could point me in the right direction.

/BarIR/TeacAmp should be the topic to subscribe to,what would be the payload to turn the amp on ?

Thanks

Re: MQTT control IRsend plugin ?

Posted: 25 Jan 2019, 20:05
by iron
https://espeasy.readthedocs.io/en/lates ... nds-listed

<MQTT subscribe template>/cmd with payload: <command>

So

/BarIR/TeacAmp/cmd

with payload

IRSEND,NEC,3CC302FD,32

This works for me when toggling GPIOs but never tested it with IR.

Please test it and post back.

-D

Re: MQTT control IRsend plugin ?

Posted: 28 Jan 2019, 19:04
by DaveS
Hi Iron,
It works perfectly.
Thanks for your help !

FYI - I had to use ESPeasy _V147_RC8 to get the amp to respond to IR commands.
The later version of ESPeasy I tried first,flashed the red LED I fitted across the IR LED (so I can see if anything is going on) but amp did not respond.
Looks like a valid IR code is not being sent ?