SmartIR - Control your Climate, TV and Fan devices via IR/RF controllers

five operational modes, multiplied by 4 fan modes, multiplied by 15 different temperatures ?
is this the easy way ? :smile:

Good morning, first post here, donā€™t know if this is the right section; i donā€™t even know if what Iā€™m about to say has been addressed before, my English is not good enough to search the community!

And Iā€™m by no means a programmer, what Iā€™m about to write could be completly bullsh*t.

However, since the ir blaster can send and recognize ir signal, wouldnā€™t it be possible to use the same controller Device to keep an AC status update?

In my case, i have a broadlink rm3 mini in each room just for controlling the AC.
The problem is, if someone uses the remote to change AC settings Iā€™m no longer able to know the ac status.
Theoretically (but Iā€™m not that good at coding), it would be possible to automate the controller so that each time i send a mesaage through HA, the broadlink goes in, duh, ā€œlearning modeā€, listening to what the remote says, updating the settings into HA?

Of course i should place the ir in a good place to receive remote signal.

Does it make any sense?

1 Like

Your idea makes sense but I donā€™t believe that will work using the Broadlink device. I donā€™t know any way to keep the Broadlink IR blasters in a mode where they can receive ir signals. The learning mode times out and there is no good way to interpret what signals it received. You might be able to configure a different device to do what you want. Sadly I think it would involve soldering and flashing a device. A simpler way is to put an energy monitor on your AC if it plugs in to the wall. Then you know itā€™s onm because of the power use goes up. Maybe set the threshold to over 5 watts means it is on.

I think a DIY device similar to this but using Tasmota could do what you want. Sadly it takes a certain amount of DIY skills.

Yes but Iā€™d like to know temperature, mode, and so onā€¦

Could this be done with an esp in your opinion?

Edit: sorry, for some reason my brain didnā€™t Read the last line!

Well that is not a problemā€¦ Iā€™ll think about it, thanks!

1 Like

Definitely possible with an ESP and a few other parts. That video gives you a good idea of the hardware you need. You would do the same thing he does but the ESP would repeat the signal it sees and it could also replace the IR blaster.

Hi. I have Fujitsu split AC and it working with device_code: 1281 even remote model not matching
(I have remote AR-REA2E).
Iā€™m wondering are I miss something? Should I use other code with this remote?

If I understand your problem this should help.

1281 is like the label for a set of codes in a database. Some remotes may use a different number to represent that set of IR codes but Home Assistant doesnā€™t even have a database of IR codes. You would need to teach the codes to Home Assistant using the learn function. You would also need an IR blaster of some sort.

So it is working correctly?

All my Fujitsu A/Cs work with 1281, some of them are 2 years old, some 7 years old.

It will be fine.

Hi, did you solve the problem? If your device has the option to schedule a ā€œturn on/offā€ at a certain hour, is it possible that the remote sends a signal including date/time/mode/speed, and so on? I mean: the IR code could maybe send extra info for scheduling purposes, did you check this option?
Maybe a way to check it could be resetting your remote (removing batteries and not updating time/date).

Hi Tim. In my situation (I have to record the IR as my device is not mapped in github), I am evaluating a simpler scenario. My AC range is 18 to 30, with several operation modes, fan speed, and so on. Probably for the majority of users a simplified .json could equally be useful with a 2 degrees step, or just with a subset of the range. Itā€™s not the cleanest way to setup the whole solutionā€¦ buy itā€™s very pragmatic. I mean: 99% of the time, in heating mode I use my Mitsubishi at 22 degrees. 99% when I am cooling I set it at 26 degrees. Probably a simplified solution (not clean) could also be valid for a user that doesnā€™t want to set up a 5modes x 7oscillations x 6speeds x 12degrees range :wink:

Hi, Now that you mention it, yes the remote has timer functions built into it. Itā€™s a turn-off timer.
So how do I resolve this now?

Not sureā€¦ I will have to deal with a similar problem, so this is just a suggestion as I still didnā€™t test it. Try to remove the battery from the remote and get the IR signal for the commands from the remote: doing so would probably create a ā€œcleanā€ base64 code (no time, no programmed activationsā€¦).
Actually, this seems a nice idea to me, let me know if it works. :crossed_fingers:

Hi there.

In case anyone is interested Iā€™ve wrote a simple python script to automate learning IR codes for AC units using a Broadlink RM. Here is the script: GitHub - sargue/learn-broadlink: Broadlink RM IR remote learning script for smartir Home Assistant integration

I did it to learn all the codes for my Mitsubishi Electric MSZ-HR35VF which I already contributed to the smartir repository. PR here: add climate support for Mitsubishi Electric MSZ-HR35VF by sargue Ā· Pull Request #981 Ā· smartHomeHub/SmartIR Ā· GitHub

I hope it might be useful for somebody else.

6 Likes

nevermind fixed

Hey guys, I have a cheap LED light strip that uses IR. Does anyone know of a fork or alternative that supports the light platform?

Something minor but triggers my OCDā€¦how to fix this non capitalized ā€œmidā€ fan mode?

Hello everyone,

Iā€™m looking to create a json for a heater in my home it has 3 modes of heating, swing and the temperature only goes up. Is there a way to use smart ir for this use case? If so can someone support me with the how?

Thank you!

No problem. I canā€™t upload the file here but Iā€™ve copied the code below. You will need to create a .json file with something similar to suit your heater. For example my file is simply 99999.json where I made up the file name as something that wasnā€™t already used by SmartIR.

As long as you have already got your Broadlink IR device working with HA, you just need to retrieve all the codes from your heater remote. To do that you go to Developer Tools and select ā€˜remote:learn_commandā€™ and select your Broadlink entity, then click ā€˜Call Serviceā€™.

Now press a button on your gas heater remote while aiming at the Broadlink. HA will provide a persistent notification containing the IR code. You will need to replace the codes in my example with the ones you learn.

99999.json

{
    "manufacturer": "Paloma",
    "supportedModels": [
      "Generic"
    ],
    "supportedController": "Broadlink",
    "commandsEncoding": "Base64",
    "minTemperature": 18.0,
    "maxTemperature": 30.0,
    "precision": 1.0,
    "operationModes": [
      "heat"
    ],
    "fanModes": [
      "high"
    ],
    "commands": {
      "off": "JgBYAAABJpITNxM2FBETEhMSEhMSExM2ExITEhMSEzcSNxM3EjgTNhM3EhMTNhQ2FBETEhMTEhMSEhI3ExITEhM3EzYTNxI4EwAFFgABJEgVAAxIAAElShMADQU=",
      "heat": {
        "high": {
          "18": "JgBYAAABJZMSNxM3EhMUERITEhITEhI4EhMSExMSEzYSOBM3EzYTNxMSExITNhM3EhMTEhITExITNhI4EhMSFBE3EjgSOBI3EwAFFgABJUkTAAxJAAEkShMADQU=",
          "19": "JgBYAAABJZMSNxM3EhMUERITEhITEhI4EhMSExMSEzYSOBM3EzYTNxMSExITNhM3EhMTEhITExITNhI4EhMSFBE3EjgSOBI3EwAFFgABJUkTAAxJAAEkShMADQU=",
          "20": "JgBYAAABJZMSNxM3EhMUERITEhITEhI4EhMSExMSEzYSOBM3EzYTNxMSExITNhM3EhMTEhITExITNhI4EhMSFBE3EjgSOBI3EwAFFgABJUkTAAxJAAEkShMADQU=",
          "21": "JgBYAAABJZMSNxM3EhMUERITEhITEhI4EhMSExMSEzYSOBM3EzYTNxMSExITNhM3EhMTEhITExITNhI4EhMSFBE3EjgSOBI3EwAFFgABJUkTAAxJAAEkShMADQU=",
          "22": "JgBYAAABJZMSNxM3EhMUERITEhITEhI4EhMSExMSEzYSOBM3EzYTNxMSExITNhM3EhMTEhITExITNhI4EhMSFBE3EjgSOBI3EwAFFgABJUkTAAxJAAEkShMADQU=",
          "23": "JgBYAAABJZMSNxM3EhMUERITEhITEhI4EhMSExMSEzYSOBM3EzYTNxMSExITNhM3EhMTEhITExITNhI4EhMSFBE3EjgSOBI3EwAFFgABJUkTAAxJAAEkShMADQU=",
          "24": "JgBYAAABJZMSNxM3EhMUERITEhITEhI4EhMSExMSEzYSOBM3EzYTNxMSExITNhM3EhMTEhITExITNhI4EhMSFBE3EjgSOBI3EwAFFgABJUkTAAxJAAEkShMADQU=",
          "25": "JgBYAAABJZMSNxM3EhMUERITEhITEhI4EhMSExMSEzYSOBM3EzYTNxMSExITNhM3EhMTEhITExITNhI4EhMSFBE3EjgSOBI3EwAFFgABJUkTAAxJAAEkShMADQU=",
          "26": "JgBYAAABJZMSNxM3EhMUERITEhITEhI4EhMSExMSEzYSOBM3EzYTNxMSExITNhM3EhMTEhITExITNhI4EhMSFBE3EjgSOBI3EwAFFgABJUkTAAxJAAEkShMADQU=",
          "27": "JgBYAAABJZMSNxM3EhMUERITEhITEhI4EhMSExMSEzYSOBM3EzYTNxMSExITNhM3EhMTEhITExITNhI4EhMSFBE3EjgSOBI3EwAFFgABJUkTAAxJAAEkShMADQU=",
          "28": "JgBYAAABJZMSNxM3EhMUERITEhITEhI4EhMSExMSEzYSOBM3EzYTNxMSExITNhM3EhMTEhITExITNhI4EhMSFBE3EjgSOBI3EwAFFgABJUkTAAxJAAEkShMADQU=",
          "29": "JgBYAAABJZMSNxM3EhMUERITEhITEhI4EhMSExMSEzYSOBM3EzYTNxMSExITNhM3EhMTEhITExITNhI4EhMSFBE3EjgSOBI3EwAFFgABJUkTAAxJAAEkShMADQU=",
          "30": "JgBYAAABJZMSNxM3EhMUERITEhITEhI4EhMSExMSEzYSOBM3EzYTNxMSExITNhM3EhMTEhITExITNhI4EhMSFBE3EjgSOBI3EwAFFgABJUkTAAxJAAEkShMADQU="
        }
      }
    }
  }

I hope this helps. Let me know if you need more info.

Cheers,

Dave

Thank you so much Dave for all your help and detail!

I really really appreciate it :slight_smile:

Config for Kaisai Eco air conditioner (KED-09KTA without WiFi)

https://www.dropbox.com/s/phsbh09zkljgdxi/9999.json?dl=0