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

Hi guys,

I need your amazing help here :slight_smile:

I’ve been using broadlink for a while with HA by using SmartIR to control my air conditioner and TV. However, I recently moved homes, and the new home has a Giatsu Air Conditioner and I’m not being able to learn the codes from its remote control.

I always used Keite Trần’s web-based app but it seems not being wrking anymore.

I’ve also tried to check the files in the ./storage folder but I’m getting the following error:

ulisses@MacBook-Pro:~$ /Volumes/config/.storage/broadlink_remote_24dfa77b125c_codes ; exit;
/Volumes/config/.storage/broadlink_remote_24dfa77b125c_codes: line 2: version:: command not found
/Volumes/config/.storage/broadlink_remote_24dfa77b125c_codes: line 3: key:: command not found
/Volumes/config/.storage/broadlink_remote_24dfa77b125c_codes: line 4: data:: command not found
/Volumes/config/.storage/broadlink_remote_24dfa77b125c_codes: line 5: remote.broadlink_escritorio_remote:: command not found
/Volumes/config/.storage/broadlink_remote_24dfa77b125c_codes: line 6: off:: command not found
/Volumes/config/.storage/broadlink_remote_24dfa77b125c_codes: line 7: },: command not found
/Volumes/config/.storage/broadlink_remote_24dfa77b125c_codes: line 8:  remote.broadlink_da_sala_remote:: command not found
/Volumes/config/.storage/broadlink_remote_24dfa77b125c_codes: line 9: on:: command not found
/Volumes/config/.storage/broadlink_remote_24dfa77b125c_codes: line 10: },: command not found
/Volumes/config/.storage/broadlink_remote_24dfa77b125c_codes: line 11: remote.broadlink_da_sala_remote:: command not found
/Volumes/config/.storage/broadlink_remote_24dfa77b125c_codes: line 12: off:: command not found
/Volumes/config/.storage/broadlink_remote_24dfa77b125c_codes: line 14: syntax error near unexpected token `}'
/Volumes/config/.storage/broadlink_remote_24dfa77b125c_codes: line 14: `    }'
logout
Saving session...
...copying shared history...
...saving history...truncating history files...
...completed.

[Process completed]

Any idea?

Thanks!

What I’ve done was create a new temporary HA version 0.114.1 you will also need to add your broadlink device in your switch.yaml file and then use the [NEW TOOL URL HERE | BroadlinkIRTools](https://web-based app).

switch.yaml:

  - platform: broadlink
    host: 192.168.XXX.XXX
    mac: 'XX:XX:XX:XX:XX:XX'

docker compose file:

version: '3.3'
services:
    raspberrypi4-homeassistant3:
        container_name: homeassistant3
        restart: always
        network_mode: 'host'
        volumes:
            - '/docker/homeassistant3:/config'
            - '/etc/localtime:/etc/localtime:ro'
            - '/var/run/docker.sock:/var/run/docker.sock'
            - '/home/dockeradmin/.ssh:/root/.ssh'
        image: 'homeassistant/raspberrypi4-homeassistant:0.114.1'

Please help a day 1 beginner.

I have created the custom_components folder. Included all the smartir dir. But under my configuration.yaml, smartir: yields an error in starting my HA. Where did I go wrong?

Ok after spending so many hours. I finally figured out my noob mistake. I was suppose to upload the files, check the config, restart. THEN only i add the smartir: into my configuration.yaml.

Any noobies out there? Read this

Hi guys,

I just submit a PR adding presets functionality to climate.

This is what it looks like.

1 Like

If I have a Broadcom, what’s the advantage to this custom component over using scripts/Booleans?

For me it was the ‘ease’ of configuring my A/C.
(unfortunately my A/C wasn’t listed, but nevertheless, after recording my 120 IR commands it worked in one go )

Using this custom component you end up with an entity for your AC / Media Player / Fan (ie: the correct Domain) rather than just a bunch of automations / scripts. This allows proper control of said entity using the standard service calls like service: media_player.next_track rather than having to call a script to do the task.

Long story short, it’s much cleaner

1 Like

I concur :+1:t4:

Hi! Codes for AC Inverter P09EP2

Hi @ariexman I’m trying your tool but getting an error “No device found”. The device is an RM 3 mini which is online, pingable, and working for controlling other IR devices nearby. Do you have any idea what might be the cause?

The system is an HA supervised install on Ubuntu Server 20.04. The only thing atypical about my setup is the server’s default network is 192.168.1.0/24 but all my IoT devices are on 192.168.2.0/24 which is on a separate port.

Hi @kylehase, my tool uses a library to communicate with broadlink devices, so I dont actually know all the details about the acutal connection part I just created the logic to generate the json file. Im also not a big expert on networks but I could try to guess a few possibities of whats happening. If I recall correctly the library is not expecting slash notation you should just type 192.168.2.X . Also im not sure the library works with devices on different subnets, maybe temporarily connecting the pc on which you are using the tool to 192.168.2.0 is worth a try.
I wish I could be of more help , if I think of anything else I`ll let you know. If you figure it out please let me know so I can help people who might have this issue in the future.

You’re message is not 100% clear on wether or not the broadlink integration has been added to HA…
And wether or not you can control IR devices from HA… :thinking:

The fact on which network the broadlink device is, is a bit irrelevant in this case😉

Hi @ariexman Thanks for the response. Noted that the networking part lies with an included lib. To clarify, I did enter the device’s actual IP address (192.168.2.50) in the tool, I was just using /24 notation to describe the networks in the post. Also, the HA server running the tool is sitting on both networks via dual-nic, so the tool should be able to reach the broadlink directly without having to traverse networks.

In any case, I’ll keep trying and let you know how it goes. Cheers.

the previous tool that was available used to communicate with ha instead of directly with the device, which is probrably a better solution given the context and I might look into it in the future but I`m currently really busy with university.

Hi all,

I came here from SmartIR github. I am not sure where to submit a code. The Code # would need to be updated. I used 1400 as the basis and updated with the relevant codes for my aircon.

Please advise where I can submit my file. I would like my work included to assist if anyone else has the same aircon as me.

Thanks for the great work.

You can fork the repository from github, and then create a pull request
That is how it normally works :wink:

btw…i used ID 2021 but @Vassilis gave it a new ID 2760 before merging it into his

2 Likes

Thanks a lot. I’ve done exactly this.

Can someone check out my JSON? This is my first time trying to make one and ofc it’s not working. 5903.json

[operation_mode][fan_mode][swing_mode][target_temperature] Explains everything lol