Skip to first unread message

Tony Fitzsimmons

unread,
Mar 7, 2019, 6:15:18 AM3/7/19
to SonoffUsers
Hi there, 

I'm reasonably new to the world of Tasmota but I absolutely love it, and I am in the process of installing it on everything that I can. 

I have a project I'm working on that I would like to use Tasmotta to fulfil which is to turn on and off my Mitsubishi Air conditioner based on certain conditions. I have seen in the Tasmota commands page https://github.com/arendst/Sonoff-Tasmota/wiki/Commands#irremote there is a reference to a command IRhvac, but no matter what I do I am unable to get it to work. I'm not sure if I need to set the tasmota SetOption to something specific and I can't find anything on the internet that helps me with this command. 

in terms of my hardware configuration, I am using an IR send LED connected via a limiting resistor between GPIO 14 and Gnd, I have seen that there is a small circuit that I can build using a transistor to help improve performance but for now I just want to get the basics working. 

To explain further what I have done so far in my testing, when I use the irsend command (for example irsend {"Protocol":"NEC","Bits":32,"Data":1}) in the command line, I see the IR LEd blink and I see the command response stat/tasmota/RESULT = {"IRSend":"Done"}  given the hardware blinks and the response I'm confident that my hardware is working, 

on the other hand, when I issues IRhvac (for example IRhvac {"Vendor":"Mitsubishi","Power":1,"Mode":”Cold”, "FanSpeed":”5”,"Temp":17}) then I get the response in the terminal stat/tasmota/RESULT = {"Command":"Unknown"} and the status LED blinks but not the IR LED, so something is not right

I'm using firmware version 6.4.1 which I believe is the latest version. 

any help working this out would be greatly appreciated. 

happy automating. :) 

Tony. 


Ron L

unread,
Mar 7, 2019, 6:56:04 AM3/7/19
to sonof...@googlegroups.com
I have not used IRhvac commands but have used the basic IRsend commands with very good success.  If you have the original IR remote for your Mitsubishi AC, then what I would suggest is to build or purchase an inexpensive IR Receiver module and hook it up to a Tasmota device configured as IRreceiver.   Then, as an example, press the POWER button on the IR Remote and see what the Tasmota device shows in the console.  You should be something like:

tele/sonoff16/RESULT = {"IrReceived":{"Protocol":"NEC","Bits":32,"Data":"FF38C7"}}

Therefore, to use this data in an IRsend command at the console, it would be:  IRSEND {"Protocol":"NEC","Bits":32,"Data":0xFF38C7}
Note that you have to take the "quotes" off of the Data component and add 0x to the front end of the data.

Also, I would highly recommend building the transistor circuit  for your IR transmitter.

Ron L

unread,
Mar 7, 2019, 7:00:04 AM3/7/19
to sonof...@googlegroups.com


On Thursday, March 7, 2019 at 5:56:04 AM UTC-6, Ron L wrote:
I have not used IRhvac commands but have used the basic IRsend commands with very good success.  If you have the original IR remote for your Mitsubishi AC, then what I would suggest is to build or purchase an inexpensive IR Receiver module and hook it up to a Tasmota device configured as IRreceiver.   Then, as an example, press the POWER button on the IR Remote and see what the Tasmota device shows in the console.  You should be something like:

tele/sonoff16/RESULT = {"IrReceived":{"Protocol":"NEC","Bits":32,"Data":"FF38C7"}}

Therefore, to use this data in an IRsend command at the console, it would be:  IRSEND = {"Protocol":"NEC","Bits":32,"Data":0xFF38C7}

Ron L

unread,
Mar 7, 2019, 7:13:12 AM3/7/19
to SonoffUsers
One correction is that the IRSEND command does NOT need the = sign after it, just IRSEND {"Protocol":"NEC","Bits":32,"Data":0xFF38C7}

Tony Fitzsimmons

unread,
Mar 8, 2019, 9:22:01 PM3/8/19
to SonoffUsers
thanks, Ron, I will give that a shot. 

Tony Fitzsimmons

unread,
Mar 8, 2019, 9:22:39 PM3/8/19
to SonoffUsers
thanks for this, I will give it a shot. 
Reply all
Reply to author
Forward
0 new messages