MQTT control IRsend plugin ?

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
DaveS
Normal user
Posts: 25
Joined: 12 Feb 2018, 17:35

MQTT control IRsend plugin ?

#1 Post by DaveS » 25 Jan 2019, 19:02

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

User avatar
iron
Normal user
Posts: 221
Joined: 24 Sep 2016, 08:37
Location: Greece
Contact:

Re: MQTT control IRsend plugin ?

#2 Post by iron » 25 Jan 2019, 20:05

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
-D

DaveS
Normal user
Posts: 25
Joined: 12 Feb 2018, 17:35

Re: MQTT control IRsend plugin ?

#3 Post by DaveS » 28 Jan 2019, 19:04

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 ?

Post Reply

Who is online

Users browsing this forum: No registered users and 24 guests