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

morning all. So I undertook this weekend to learn all commands needed for climate control but when I transfer all 300 commands to the JSON it does not seem to want to work. the codes works independently if I use the IR send command so the commands “learned” correctly. Is there a correct way to get these codes into a JSON? once finalised and working I want to submit it to smarit to add to their list of supported devices as its a Panasonic thats not yet on their list

Anyone knows why on HomeKit it show the climate with a current temperature of 21° C even if I don’t have any temperature sensor configured ?

This is my smartir config:

  - platform: smartir
    name: Attic AC
    unique_id: atic_ac
    device_code: 1380
    controller_data: remote.attic_remote_remote

And this is how it shows on HomeKit:

I have two climates and the behavior is the same. Shows 21° on both of them

Hi Dave

Can supported modules be any name in the JSON?

Good afternoon.
Does anyone have the floureon and smartir integration at the same time?..I can’t get the beok 311 thermostat and the smartir integration to work at the same time

Does anyone know how to help me set up my air conditioner?
I have a Moes UFO-R11 Zigbee IR blaster.
Through this I learned the codes of the air conditioner remote control.
How do I set this to the smartir configuration?
Do I need to generate my own JSON file? If so how do I do it? What settings do I need to write?

1 Like

I’m not sure what that parameter actually does within the Integration, probably just for the user to understand which model(s) the code should work with.

Yes. See my post above.

Thanks.

I followed your guide but it still doesn’t work for me.
As I wrote, I have a Zigbee device connected via zigbee2mqtt to Home Assistant and yours is Broadlink. The question is how do I define this device in the JSON file? Maybe I set it wrong and that’s why nothing happens.
This is what I wrote for a test:

{
  "manufacturer": "Gree",
  "supportedModels": [
    "Unknown"
  ],
  "supportedController": "MQTT",
  "commandsEncoding": "Raw",
  "minTemperature": 25.0,
  "maxTemperature": 25.0,
  "precision": 1.0,
  "operationModes": [
    "heat",
    "cool"
  ],
  "fanModes": [
    "low"
  ],
  "commands": {
    "off": "C9ciaRGbAlgGmwIkAuABA+ATD+AHG+ADN+ADC+ATJ8AbwAdAN8ALAztOmwJAD+BrAwdYBpsCJAKbAg==",
    "heat": {
      "low": {
        "25": "B4sjWBGwAgkCgAMBXQbgAQPAE0AHQBdAB0AD4AMLQA/gDwNAJ0AD4AsfwBfAB0AjwAsDRU6wAkAP4GMDQHsLXQawAl0GsAJdBrAC"
      }
    },
    "cool": {
      "low": {
        "25": "E4UjWRGzAmcGYwJjArMCCgKzAmcGgANAC8ADQBMHCgJjAgoCswKACwGzAuALAwNjArMCwBdAJ0ADwA/gAweAFwVjAmcGYwLAAQNnBrMCQBMBcE5AB+AJAwBjYAEBswLgDxvgCxcCCgJjYAEBCgJAC4ADAGMgAcALgAfADwljAmcGswJnBmMC"
      }
    }
  }
}

In the config file of Home Assistant I tried all kinds of options but nothing worked:

- platform: smartir
  name: Office AC
  unique_id: e04d18de-6a4b-460c-906c-201a877e6c29
  device_code: 2019
  controller_data: zigbee2mqtt/Office_RC/set
  temperature_sensor: sensor.office_environment_temperature
  humidity_sensor: sensor.office_environment_humidity
  power_sensor: binary_sensor.office_ac_status

- platform: smartir
  name: Office AC v2
  unique_id: 50a0a386-66a2-40bf-8502-cfb918b9c9ab
  device_code: 2019
  controller_data: zigbee2mqtt/Office RC/set
  temperature_sensor: sensor.office_environment_temperature
  humidity_sensor: sensor.office_environment_humidity
  power_sensor: binary_sensor.office_ac_status

- platform: smartir
  name: Office AC v3
  unique_id: 2cdc5ce3-c8db-4de8-867c-11bc09027d68
  device_code: 2019
  controller_data: zigbee2mqtt/Office RC
  temperature_sensor: sensor.office_environment_temperature
  humidity_sensor: sensor.office_environment_humidity
  power_sensor: binary_sensor.office_ac_status

- platform: smartir
  name: Office AC v4
  unique_id: 49d2cb51-3f31-4c64-9613-8bf08eee8c31
  device_code: 2019
  controller_data: zigbee2mqtt/Office-RC/set
  temperature_sensor: sensor.office_environment_temperature
  humidity_sensor: sensor.office_environment_humidity
  power_sensor: binary_sensor.office_ac_status

- platform: smartir
  name: Office AC v5
  unique_id: 3c169560-8c8c-4f83-b26f-196ade531dd8
  device_code: 2019
  controller_data: zigbee2mqtt/Office-RC
  temperature_sensor: sensor.office_environment_temperature
  humidity_sensor: sensor.office_environment_humidity
  power_sensor: binary_sensor.office_ac_status

- platform: smartir
  name: Office AC v6
  unique_id: 35fc40cd-fc75-4b78-941c-27a481f0f93b
  device_code: 2019
  controller_data: zigbee2mqtt/Office_RC
  temperature_sensor: sensor.office_environment_temperature
  humidity_sensor: sensor.office_environment_humidity
  power_sensor: binary_sensor.office_ac_status

- platform: smartir
  name: Office AC v7
  unique_id: 2d99632e-5f0e-4d02-b799-5d5aa31ab69b
  device_code: 2019
  controller_data: zigbee2mqtt/Office-RC/command
  temperature_sensor: sensor.office_environment_temperature
  humidity_sensor: sensor.office_environment_humidity
  power_sensor: binary_sensor.office_ac_status

- platform: smartir
  name: Office AC v8
  unique_id: 61dedd94-76b4-41fe-a32f-75a29b246601
  device_code: 2019
  controller_data: zigbee2mqtt/Office RC/command
  temperature_sensor: sensor.office_environment_temperature
  humidity_sensor: sensor.office_environment_humidity
  power_sensor: binary_sensor.office_ac_status

- platform: smartir
  name: Office AC v9
  unique_id: ab47bf07-65b9-4d9d-9ef7-46af79899131
  device_code: 2019
  controller_data: zigbee2mqtt/Office_RC/command
  temperature_sensor: sensor.office_environment_temperature
  humidity_sensor: sensor.office_environment_humidity
  power_sensor: binary_sensor.office_ac_status

What am I doing wrong?

1 Like

Only certain IR devices are supported.

Ok. Mine works through MQTT, so maybe it works with the MQTT Publish service. Am I right?

Yeah I suppose. It’s not something I’m familiar with in regards to this Integration.

Got it.
Even though it seems like it should go away, I still can’t get my head around it and find a solution.
Thanks anyway for trying to help! :slight_smile:

try adding quotes around your mqtt topic … also in 1 spot you have a space and in another an _ so make sure thats correct,

I would recommend trying to get it working via mosquitto_pub (ie command line) to make sure you get the payload and the topic correct. The page for your specific device on the z2m site should be able to help you out.

Apologies if this has been mentioned before but I couldnt find it.
Short of an input boolean and an automation to set it, is there a better/easier way to have a fan remember state across HA reboots ?

Climate works, but fan does not.

Can anyone help me with this issue?

I can restart my HA :frowning:

I didn’t understand what you meant, could you please explain?

Was this you first time installing SmartIR? or was this after the recent HA core update?

Isolate the problem and address them one at a time.

Make sure your MQTT commands work first, before trying to get them to work with SmartIR.

You can do this via command line, using the command mosquitto_pub, or using the services tab on Development Tools using the mqtt.publish service

Hi, I have a General brand with model: ASH18LSBCW and it’s not support by SmartIR: SmartIR/CLIMATE.md at ba0b46b140796a86f85a601326cb90bbaa1b84d8 · smartHomeHub/SmartIR · GitHub

Someone know how can I add support for my AC? Someone know about some videotutorial about create json file with the codes? Because I am a beginner and I do not understand if the codes are obtained by turning the AC off and on each time or by turning it on once and then changing the temperature and speed options. Thank you :slight_smile:

Now I understand you.
So yes, it works great through mqtt.publish service. In SmartIR it is not.