Broadlink IR Climate Component

But what are the keys needed for AC unit?

This looks pretty awesome. Just wondering how to help with the codes file for LG aircons.

Also, can we use the RF fan component for IR fans? EDIT: Yes, we can. Maybe you can rename it to IR/RF since it works for both. I see support for oscillation might be coming soon too :+1:

The media player component works great too. Using it to control my AV receiver.

Thanks for releasing this for everyone to try out! Can you please explain what the timeout parameter does? Can it be used as a delay between turn_on and select_source?

What I donā€™t get is how to generate temp+fanmode codes. My AC has fan modes separate from temperature setting.

EDIT: Iā€™ve made some headway. So the e-control dump script doesnā€™t do AC codes apparently ( https://github.com/NightRang3r/Broadlink-e-control-db-dump/issues/7 ), but someone has managed to hack together a script to do it ( https://github.com/mjg59/python-broadlink/issues/74#issuecomment-323848204 ).

Iā€™m not exactly sure how to run it, but Iā€™ve got my ac codes from the broadlink server. @Vassilis can you help a brother out? :slight_smile: PS. Maybe update thread title with fan and media_player too?

http://cloud.broadlink.com.cn/irda_code/600.gz

Counts:
Temp Range: 13 (18-30 C)
Modes: 5 (Auto, Cool, Dry, Fan and Heat)
Fan Speed: 4 (Auto*, Low, Medium, High)

EDIT 2: Manually taught the codes for COOL operation (39 codes in total) of my LG AC. Took me around 10 minutes. Uploaded to the git

1 Like

Hi
any body let me know where to put custom component file
i am getting error
[homeassistant.loader] Unable to find component media_player.broadlink

please let me know

Hi,
Please make a folder with name ā€œcustom_componentsā€ into your .homeassistant folder.
Make another folder with name ā€œclimateā€ into custom_components folder.
Put broadlink.py inside ā€œclimateā€ folder and restart Home Assistant.

1 Like

In order to make my INI files, I was set up a broadlink switch and I used the learn service. Took me long time too.

Yes. idle and off is the same command. Home kit sends idle instead of off command

Hi
thanks for reply
but my problem solved by putting files
/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/
according to their fold if folder not exist make new one.
i just used just for samsung tv
problem if it always start with off state.

Thanks. I donā€™t use homekit so I guess it doesnā€™t matter if I use idle or stop command.

Hi, does this work with using HASSIO instead? How would I be able to add your addon as a third party repository in HASSIO?

Hi, this is not a third party addon. Please add it as a custom component.
https://home-assistant.io/developers/component_loading/
Thank you

1 Like

Thanks! Got it working! And it is very impressive! Many thanks

Theyā€™ve fixed this in latest homebridge-homeassistant bridge.

Would it be possible to have those component for xiaomi it booster? I exchanged braodlink

Brilliant, just what Iā€™ve been looking for. Even the Daikin ini file is compatible with my model of AC as far as I can tell. Thank you!

Thanks for your input, I too have a LG AC and Iā€™ll be trying out your codes. So youā€™ve only done the cooling so far, any plans to do the heating? :slight_smile:

Hi,
Thanks for trying this component.
Actually, those LG codes are a merge from another user.
Iā€™m afraid you must build your INI file.

Thanks Vassilis, I will start building my own INI.

So I have loaded the custom component, is there a manual control I can add to my front page?

Hi Vassilis,

Iā€™ve now created a full LG INI here:

https://pastebin.com/9671R3mK

climate:

  • platform: broadlink
    name: LG
    host: 192.168.x.x
    mac: ā€˜BB:BB:BB:BB:BB:BBā€™
    ircodes_ini: ā€˜broadlink_climate_codes/lg_all.iniā€™
    min_temp: 18
    max_temp: 30
    target_temp: 26
    temp_sensor: sensor.living_room_temperature
    default_operation: idle
    default_fan_mode: low
    customize:
    operations:
    - idle
    - cool
    - heat
    - auto
    fan_modes:
    - low
    - mid
    - high
    - auto
1 Like

Hello,
Can I upload your INI file in github repo?
What is your LG model?
Thank you