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

hi guys,
Is it able to get new media_player or climate entities based on smartir without restarting Home Assistant?
It seems HA support the feature to allow a custom component to reload new generated entities without restarting HA.
Thank you.

Not sure about this one. You could just turn it on and set it how you want, it will probably remember the last state. Automations or scripts are an option.

I just got a heatpump but the integration for my model isnā€™t working. My model is MSZ-GL15NA. I tried all the Mitsubishi one from the list but none of them had all button working. I tried to manually learn the IR code but the remote has buttons with multiple (4) functions.
What are my solutions?

Can you tell us more about one button having multiple functions? What functions? You may have to capture them separately and enter them as separate commands.

One of the button swap mode between cooling, heating, dehumidify. Another one is for the fan speed. Auto, Quitet, Super Low, Low, Medium and Fast.Same with vane position. Auto, oscillating and four disctint position. How am I supposed to capture all those different settings?

Remote control in action: Mitsubishi Ductless Remote - Simple Remote, Basic Functions - YouTube

Push the button, capture the setting. Because remotes typically send the full state (mode, temperature, etc) you need to capture all the combinations you require to send from HA. Itā€™s fairly tedious but thereā€™s no other option.

For example, for my air conditioner I had to record quite a bit:

  • heat mode, auto fan, 18 - 24 degrees
  • heat mode, medium fan, 18 - 24 degrees
  • cool mode, auto fan, 18 - 24 degrees
  • cool mode, medium fan, 18 - 24 degrees

etc for dry mode, fan mode, etc. It can take hours to capture them and put them into the config file, which is why I limited what I captured to only the modes / settings I actually use.

2 Likes

Alright I just did a few manual recording. Heat to 23C, Cool to 23C and Off. I see the ir code in the ā€œ/config/.storageā€ file.

Do I have to keep the ā€œclimateā€ entry in the configuration.yaml file?

Since I have only 3 button, what I can use to control my heat pump?

Have a look at the post I made #1190. Basically you need to take an existing template, give it a new number, and insert the codes in the right place. Once you have the codes the buttons are irrelevant, you control them using a thermostat control in HA.

That is going to take a while lol. Thanks!

Good afternoon, I donā€™t know why, when I make a change in temperature or any other option, the broadlink makes 2 equal shipments, that is, I send the signal 2 times. It only happens to me with smartir. Do you know why it can be?
Cheers

Hi, I am just trying to figure this one out.

adding my Mitsubishi AC was pretty easy, its the fan that is giving me a pain to setup. I am using a company that you probably have never heard of ā€˜Crompton Greevesā€™ the model is Engerion

I created a custom code, by using the Remote: Learn Command for my BroadLink RM Mini 4 and pasted it over to a new .json file in /config/custom_components/smartir/codes/fan/1075.json
Added the appropriate entry for SmartIR and the fan controls in configuration.yaml file and added the fan to my dashboard
configuration.yaml

smartir:
fan:
  - platform: smartir
    name: Office Fan
    unique_id: office_fan
    device_code: 1075 
    controller_data: remote.office_remote_remote
    power_sensor: binary_sensor.fan_power

Dashboard - LoveLace UI

type: entities
entities:
  - entity: fan.office_fan
title: Office
state_color: true

The problem is, that the fan does not turn on when I turn on the fan in the dashboard, It only turns on when I toggle the switch from the ā€˜Offā€™ position to ā€˜Onā€™ and back to the ā€˜Offā€™ position, and the same for turning it off.
I donā€™t know how to resolve this, can someone help?

@aasimenator I guess thereā€™s something unusual about the IR codes. Is the remote a one button on / off that toggles state, or are there two buttons? In your place Iā€™d try recording the on / off codes a half dozen time and see if theyā€™re all the same or if thereā€™s a pattern - half the same for example.

Thank you for responding, there is only one on/off button but when I learn the command in HA it is different for each button press

"Fan Test": {

      "On": "JgBQAAABI5ITEhITEzcSNxMSExITEhM3EjgSOBMSEhMSNxM3EzcTEhMSEhMTEhISFBETExISExITNxI4EzcTNhM3EjgSOBI4EgAFCgABJUkTAA0F",

      "Off": "JgBQAAABIpMTEhISEzcTNxMSExITEhI4EzYUNhMTERMSOBI4EjcUERMSExITEhITExISExMSEhMSNxM3EzcTNxI4EjgSNxQ2EwAFCgABJEoTAA0F",

      "On 1": "JgBQAAABI5ITEhMSEzcTNhQRFBEUERM3EzcSOBMSExITNhM3EzcSExMSExISExMRFBEUERQRExITNxM3EzcTNhQ2EzcSOBM3EwAFCQABJUkTAA0F",

      "Off 1": "JgBQAAABI5ITEhMSEzcTNxMRFBEUERQ2EzcTNxITEhMTNxM2FDYTEhMSExITEhMSExITEhMSExITNhQ2EzcTNxM3EzcSNxQ2EwAFCgABJUkTAA0F",

      "On 2": "JgBQAAABIpIUERMSFDYTNxMSExISExM3EzYUNhMSExITNxM3EzYUERQRExITEhMSExITEhITExITNhQ2EzcTNxM3EzYUNhQ2EwAFCgABJUkTAA0F",

      "Off 2": "JgBMABMSEhMTNxI4ExITERQRFDYTNxM3ExITEhM2FDYTNxMSExITEhMSExITERQRFBEUERM3EzcTNxM3EzYUNhM3EzcTAAUKAAElSBQADQU=",

      "On 3": "JgBQAAABJJETEhMSEzcTNxMSExEUERQ2EzcTNxMSExISNxQ1FTYTEhMSExITEhMSExITERMSFBETNxM3EzcTNxM2FDYTNxM3EwAFCgABJUkTAA0F",

      "Off 3": "JgBQAAABI5ITEhMSEjcUNhQRExITEhM3EzcTNxMRFBETNxM3EzcSExMSEhMTERQRExITEhMSExISOBI4EjcUNhQ2EzcTNxM3EwAFCgABJUgTAA0F",

      "On 4": "JgBQAAABI5ISEhQRFDYUNhMSExITEhM3EzcTNhQRExITNxM3EjgTEhMRFBEUERQRExITEhMSExITNxM3EzYUNhQ2EzcTNxM3EwAFCgABJEoTAA0F",

      "Off 4": "JgBUAAABI5EUERMSEzcTNxMSExITERQ2FDYTNxMSExITNxM2FDYTEhMSExITEhMSExITEhMSExITNhQ2EzcTNxM1FTcTNhQ2EwAFCgABJUkTAAUiBwANBQ==",

      "On 5": "JgBQAAABJZEUERMSEzcTNxMSExITEhM2EzcTNxMSEhMTNxM3EzYUERMSExISExMSExITEhITExITNhQ2EzcTNxM3EjcUNhQ2EwAFCgABJUkTAA0F",

      "Off 5": "JgBQAAABIpMSExMSEzYUNhMSExISExM3EzYTNxQRExITNxI4EzcTERMSFBETEhMSEhMTEhMSEhMSNxQ2FDYTNxM3EzcTNhQ3EgAFCgABJEoTAA0F",

      "On 6": "JgBMABQRFBETNxM3ExITEhMSEjcUNhQ2ExITEhM3EzcTNhQRExITEhMSEhMSExMSEhMTEhM2EzcUNhM3EzcTNxM2FDYUAAUKAAElSBQADQU=",

      "Off 6": "JgBIAAABI5EUERQREzcTNxMSEhMTEhM3EzYUNhMSExITNxM0FjcTERQRFBETEhMSExITEhMSExISOBM3EzYUNhM3EzcTNxM2FAANBQ=="

    }
1 Like

Hey!

Just created an account to thank you very much for this GREAT component.

Iā€™ve been using it to control my 5 Fujitsu AC units with great success since june.

Thanks again!

Interestingā€¦ theyā€™re mostly fairly similar, and it doesnā€™t look like on and off have their own codes, I suspect itā€™s a toggle. I wonder if thatā€™s just because of errors in the IR transmission and the protocol has a lot of error correction. Not really sure where to go from here though sorry.

Can I control 4 air conditioners ??? if so how can I do the configuration ??? because Iā€™m trying and the configuration file gives me an error.

i tried this setup but it gives me invalid error

smartir:

  remote:

  - platform: broadlink
    name: AC Cameretta
    host: 192.168.1.10
    mac: 'cameretta'

  - platform: broadlink
    name: AC Cucina
    host: 192.168.1.6
    mac: 'cucina'
    
  - platform: broadlink
    name: AC Salotto
    host: 192.168.1.8
    mac: 'salotto'

  climate:

  - platform: smartir
    name: AC Cameretta
    device_code: 1023
    controller_data: 192.168.1.10
    temperature_sensor: sensor.temperature
    humidity_sensor: sensor.humidity
    power_sensor: binary_sensor.stato_accensione

  - platform: smartir
    name: AC Cucina
    device_code: 1023
    controller_data: 192.168.1.6
    temperature_sensor: sensor.temperature
    humidity_sensor: sensor.humidity
    power_sensor: binary_sensor.stato_accensione

  - platform: smartir
    name: AC Salotto
    device_code: 1023
    controller_data: 192.168.1.8
    temperature_sensor: sensor.temperature
    humidity_sensor: sensor.humidity
    power_sensor: binary_sensor.stato_accensione

With ā€œmac:ā€ you should provide the MAC-Address but not the location of the device.

Anyway, Broadlink device(s) are added through config flow of the Broadlink Integration but not through configuration.yaml anymore! Thus delete the following block and add the Broadlink devices directly through the integration:

remote:

- platform: broadlink
name: AC Cameretta
host: 192.168.1.10
mac: ā€˜camerettaā€™

- platform: broadlink
name: AC Cucina
host: 192.168.1.6
mac: ā€˜cucinaā€™

- platform: broadlink
name: AC Salotto
host: 192.168.1.8
mac: ā€˜salottoā€™

As for climate/smartir here comes an example on how this is getting configured through configuration.yaml:

  smartir:

  climate:
    - platform: smartir
      name: Office AC
      unique_id: office_ac
#   Model: FTC35NV14
      device_code: 1110
      delay: 0.5
      controller_data: remote.broadlink_rm4c_6_buro_ac_remote
      temperature_sensor: sensor.sonoff_snzb_02_temperature_sensor_home_office_temperature
      humidity_sensor: sensor.sonoff_snzb_02_temperature_sensor_home_office_humidity
      power_sensor: climate.office_ac

@SerpikoIT try removing indentation / spaces for everything from line 3 and below. Hereā€™s my config as an example

smartir:

climate:
  - platform: smartir
    name: KitchenDaikin
    unique_id: daikin_kitchen
    device_code: 1118

ok the mac was just to give an example, instead the configuration you posted to me is the one I have for a single air conditioner I want to add 3 how can I do ??? if I repeat the configuration it tells me that it already exists and is duplicated while modifying the settings