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

Dear Community, I need your support on the following: For my Cooper & Hunter CH-S09LHR2 I used device code 1180 for Gree GWH12-KF-K3DNA5G-I which worked excluding swings.
I made JSON climate file for my AC using SmartIR/1401.json at ba291bc749d1850a92e59818e9b7a6b691809d53 · smartHomeHub/SmartIR · GitHub as a basis and named it 9999 as such number is vacant in repo (this climate file include swings also).
The ir b64 codes included in the file are 100% working as intended as i checked most of them using scripts in HA. Logs doesn`t state any error for this integration on boot, so in my understanding it accepts the file. In Developers Tools - States it gives a proper device code, AC name, even the modes (and swings, fanspeed) are present. However in thermostat card only OFF button works, for other codes (modes, fanspeed, swings there is no reaction from AC).
Can you please advice me what am I missing here? If needed I can provide created file (not sure if I can attach files here and the JSON code is 741 strings, so a bit big to post it here).

After update to 2021.6 , my smartIR is gone . Anyone have issues ?

1 Like

Custom integrations now require a version listed in the manifest file otherwise it won’t load. Have you checked the integration doesn’t have a update to fix or failing that let Dev know or failing that add a version manually till it’s updated

No problems with 2021.6 and SmartIR here.

As Adrian already pointed it out: Update SmartIR to the latest 1.16.1 and it will work flawlessy again.

Thanks , just update SmartIR and it works well

Hi, how to add Ceiling Fan in lovelace ui?
I know with AC, it’s added as thermostat (with controls for cool, temperature sliders)
But how does it work with ceiling fan (with adjustable speed, low, mid, high)

1 Like

Can’t find smartir update option in service (update_branch: rc)
How can I update ?

Hi guys, I’m getting this error for fan component
How do I fix this?

Logger: custom_components.smartir.fan
Source: custom_components/smartir/fan.py:75
Integration: SmartIR ([documentation](https://github.com/smartHomeHub/SmartIR))
First occurred: 1:51:28 PM (1 occurrences)
Last logged: 1:51:28 PM

The device JSON file is invalid

Looks like you need to fix your JSON file. Paste it on this website to test it for errors, fix, test again.

Hi there,

My AC has a “Swing” mode, which I was able to achieve by adding in 4 fan modes like so:

  "operationModes": [
    "heat",
    "cool",
    "fan"
  ],  
"fanModes": [
    "auto",
    "low",
    "mid",
    "high",
    "swing_auto",
    "swing_low",
    "swing_mid",
    "swing_high"
  ],

however I was wondering if its possible to add a 3rd input for swing = on/off instead?
I couldn’t see any examples in the library of json codes and I tried the following which didn’t seem to work:

  "operationModes": [
    "heat",
    "cool",
    "fan"
  ],
  "swing": [
    "true",
    "false"
  ],
  "fanModes": [
    "auto",
    "low",
    "mid",
    "high"
  ],

Any help would be greatly appreciated!

Good Evening,
Where i have to put this code ? In which SmartIR Conf file ?
because i have the Float Problem.

Thanks in advance
Z.

Hi,
These template sensors are placed in either sensor.yaml file - if you have a split config file, or directly in the configuration.yaml file and then restart HA.
They will create 2 sensors - liv_temp and liv_humid - that you can then use in your setup. Once HA is rebooted - then you can view them and the output in the DeveloperTools tab.
Hope it helps

1 Like

Thanks a lot for your help !
Now my configuration is OK !

Regards !
Z.

Yes there is support for swing, it’s just no present on all the code files because a relatively new feature. If you own a BroadLink ir remote you can use the tool I developed to easily add swing support to a codes json file.

If you don’t own q BroadLink device you can still edit the file manually:

Hi
lately I am getting the following error. I don’t know what it means, but I think the integration is working fine. Any help how to eliminate it?

Logger: homeassistant
Source: custom_components/smartir/climate.py:404
Integration: SmartIR (documentation)
First occurred: 10:55:07 (3 occurrences)
Last logged: 10:55:07

Error doing job: Task exception was never retrieved
Traceback (most recent call last):
  File "/config/custom_components/smartir/climate.py", line 404, in _async_power_sensor_changed
    if new_state.state == old_state.state:
AttributeError: 'NoneType' object has no attribute 'state'

Hi there, I used your tool to generate a simple codes file (cool, dry; low, med, high speed; 18-30 degrees).

Everything seemingly worked great - the file generated successfully, it integrated into SmartIR as expected, all operation and fan modes recognized.

The problem is none of the codes work except ‘off’. Is there a troubleshooting method to check if the codes were learned properly? Thanks!

Edit: Figured it out. User error!

Hi, everyone!

Could you please help me.
Can SmartIR publish MQTT commands to my broker without any entity?

I just want SmartIR to publish IR command code to MQTT topic.
I setup the integration and thermostat:

- platform: smartir
  name: MQTT AC
  unique_id: mqtt_ac
  device_code: ****
  controller_data: homeassistant/mqtt-ac/command

But controls of the thermostat does nothing: SmartIR doesn’t publish commands to the topic.
And I have an error in system logs:
not a valid value for dictionary value @ data['entity_id']

At the same time SmartIR integration with Xiaomi controller works correctly for years.

Hello everyone!

Can someone please help me? How can I convert base64 command to raw (array of ints).

I’ve made ESPHome controller, but commands for my remote are only for Broadlink. So I need to convert them to raw for my controller.

Thanks!

I solved this.
I should have specified in device_code my own manually configured file with following parameters in it:

"supportedController": "MQTT"
"commandsEncoding": "Raw"

Maybe it will help someone.

SmartIR + broadlink mini (four of them) has been extremely unreliable as of lately?! WiFi connectivity is rock solid, no timeouts whatsoever, yet sometimes 5,6,7 commands issued in a row won’t be registered by the AC unit at all (four different ones too). Nothing suspicious in the logs, and I’m logging the following:

homeassistant.components.broadlink: debug
homeassistant.custom_components.smartir: debug
homeassistant.components.climate: debug

How do I even begin troubleshooting this?!