Can I use a json file meant for Broadlink with esphome (esp8266) IR transmitter?
I found that SmartIR has codes for my Mitsubishi heavy AC but I see the file mentioning Broadlink
is this integration, when using broadlink, simply using broadlink to learn and send commands? I need an alternative to broadlink integration for learning and sending commands, or a way to grab commands from the broadlink app.
I am having issues with making this integration work with my Air Conditioner. I have a JSON file with all the commands but the only one that works fine using the Thermostat card is the “off”. The rest only works if I use the “send command” throughout my broadlink remote. This is how I setup the things:
Again, if I manually send the same commands using the send command service under the developer tools it works perfectly fine. If I tried to execute the commands using the thermostat in HA, then it doesn’t (apart from the ‘off’ command).
I’ve used HACS to add SmartIR as a custom repository to my Home Assistant installation. I can see the code files in the custom_components directory, but not the other SmartIR directories (Codes, Docs, and other files/folders at the root level). Do I have to add those manually? If so, where in the file hierarchy? I’m using the File Editor add-on to view the contents of the HA directory if that matters.
I am also facing difficulties setting this to work. I have a few remotes I bought from ali express and I cannot find a matching device code for smarir.
Has anyone succeeded with such devices?
I have them added in tuya iot platform, but they are not showing in HA.
" SmartIR is not working for me with ESPHome + remote_transmitter"
I’d like to use esphome with smartir to control an air condition device but for some reason it does not work.
Background:
(1) I have managed to use smartir with broadlink RM pro, so I can control the AC without any problem.Here is my configuration.yaml file for that. This step is to make sure that I use the smartir the correct way and I use the correct device code
smartir:
check_updates: false
climate:
# AC type - FTXV35AV1B
- platform: smartir
name: Living AC
unique_id: living_ac
device_code: 1113
controller_data: remote.broadlink_rm_pro_1
(2) But I wanted to get rid of the broadlink device so then I bought an ESP8266 and an infra transmitter (https://www.aliexpress.com/item/1005004005620672.html) and - as a first step - I managed to control my Samsung TV device with this esp2.yaml config. This step is to make sure that my IR transmission is ok. The led on the IR transmitter device is blinking when I send the power command and my Samsung TV switches on.
(3) I tried to control my AC device with smartir and esphome but it doesn’t work, the LED on the IR transmitter is not blinking and the AC device doesn’t do anything when I send the command. I used the Example (using ESPHome) section from https://github.com/smartHomeHub/SmartIR/blob/master/docs/CLIMATE.md.
here is my configuration.yaml:
smartir:
check_updates: false
climate:
# AC type - FTXV35AV1B
- platform: smartir
name: Office AC
unique_id: office_ac
device_code: 1113
controller_data: esp2_send_raw_command
temperature_sensor: sensor.temperature
humidity_sensor: sensor.humidity
power_sensor: binary_sensor.ac_power
Device code you are using is in Broadlink format. It needs to be in RAW format. Only few codes are, for example take a look how code number 7062 looks. You should have similar code file for your AC.
Thanks for your answer! Here is an extract from my /homeassistant/custom_components/smartir/codes/climate/1113.json file. Do I have to create a new json file with the same name and replace this? How should that file look like, is there an example? Or should I use the IR Remote Climate — ESPHome instead? But if yes, then what is the point of the smartir-esphome integration? I’m lost…
You can use irgen to convert Broadlink codes to RAW. But you have to do that manually and edit a new code file with the ESPHome header changes (like in the example) and add your raw code lines. Maybe there is an easier way? I did do that for my Samsung AC and it works fine.
You can convert them with irgen, already posted link for it. You need Python to run it. I used this format to convert, replace BROADLINKCODE with the actual base64 code for your device. And do that for each line…