Broadlink IR Climate Component

hey there

this custom component is working fine with Homebridge but it create only one thermostat to select mode and temperature. Can I have 2 icons : 1 for thermostat (mode & temperature) and 1 for speed fan in Homebridge like the home assistant interface ?

Thanks for your help

HI Everyone,

First of all - thank you Vassilis :slight_smile:
Have 2 questions:
Is there a way to use the build in temperature sensor ?
Does anyone found the repository that includes Samsung AC IR codes ?

do you mean the built in temperature sensor of the RM Pro?

If so, in your sensors section put (for example):

- platform: broadlink
  update_interval: 60
  host: 192.168.1.XXX
  mac: '.....'
  name: Broadlink Temperature
  icon: mdi:temperature-celsius
  monitored_conditions:
    - temperature

Not exactly - wanted to use the sensor built in the AC split, but after I psoted the question I realised that the communication is a one-way. From the RM to split, so i cant get it to work. Your solution is even better, because the temperature from RM is more reliable than form the split (split is near the ceiling) - thank you :slight_smile:

Update your homebridge for home-assistant. It has just added the ability to have another button to control fan speed. I updated this, restarted homebridge and had the fan option. No other config needed.

Hi guys,
my climate control is sending codes that are not in my ini file except for the [idle] code that works, I captured the non working code and checked it against my aircon sanyo.ini file and it is not listed. Any ideas?

Thanks

thanks a lot. for my previous Homebridge installation, I’ve used Hassio Homebridge add-on.

So to install nfarina and home assistant plugin, I need to use npm install. But how I can use npm install ? when I go to ssh hassio, it don’t run install :

root@hassio:~# sudo npm install -g --unsafe-perm homebridge
-sh: sudo: command not found

thanks for your help

ah, I’m not sure about Hass.io as I don’t use that setup of Home-Assistant. If homebridge is a plugin that you activate/install, you might need to wait for it to be updated. Maybe have a chat to who ever looks after it or the repository you got it from.

Sorry I can’t be of any further help. Maybe someone else who uses Hass.io might be able to help.

Updating your custom_component for HA 0.64 support. Works fine now. ^^

Thank you very much.

If you use hassio, and you want to use homebridge. The way to install is here.

got the latest broadlink.py for climate / fan and media player… Running 0.64.3

Getting the error

2018-03-04 07:24:43 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File “/usr/local/lib/python3.6/asyncio/tasks.py”, line 180, in _step
result = coro.send(None)
File “/usr/src/app/homeassistant/helpers/discovery.py”, line 164, in async_load_platform
hass, component, hass_config)
File “/usr/src/app/homeassistant/setup.py”, line 46, in async_setup_component
return (yield from setup_tasks[domain])
File “/usr/local/lib/python3.6/asyncio/futures.py”, line 329, in iter
return self.result() # May raise too.
File “/usr/local/lib/python3.6/asyncio/futures.py”, line 243, in result
raise self._exception
File “/usr/local/lib/python3.6/asyncio/tasks.py”, line 182, in _step
result = coro.throw(exc)
File “/usr/src/app/homeassistant/setup.py”, line 57, in async_setup_component
return (yield from task)
File “/usr/local/lib/python3.6/asyncio/futures.py”, line 327, in iter
yield self # This tells Task to wait for completion.
File “/usr/local/lib/python3.6/asyncio/tasks.py”, line 250, in _wakeup
future.result()
File “/usr/local/lib/python3.6/asyncio/futures.py”, line 243, in result
raise self._exception
File “/usr/local/lib/python3.6/asyncio/tasks.py”, line 180, in _step
result = coro.send(None)
File “/usr/src/app/homeassistant/setup.py”, line 119, in _async_setup_component
conf_util.async_process_component_config(hass, config, domain)
File “/usr/src/app/homeassistant/config.py”, line 624, in async_process_component_config
platform = get_platform(domain, p_name)
File “/usr/src/app/homeassistant/loader.py”, line 104, in get_platform
return get_component(PLATFORM_FORMAT.format(domain, platform))
File “/usr/src/app/homeassistant/loader.py”, line 142, in get_component
module = importlib.import_module(path)
File “/usr/local/lib/python3.6/importlib/init.py”, line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File “”, line 994, in _gcd_import
File “”, line 971, in _find_and_load
File “”, line 955, in _find_and_load_unlocked
File “”, line 665, in _load_unlocked
File “”, line 674, in exec_module
File “”, line 781, in get_code
File “”, line 741, in source_to_code
File “”, line 219, in _call_with_frames_removed
File “/config/custom_components/climate/broadlink.py”, line 7

^
SyntaxError: invalid syntax
2018-03-04 07:24:44 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File “/usr/local/lib/python3.6/asyncio/tasks.py”, line 180, in _step
result = coro.send(None)
File “/usr/src/app/homeassistant/helpers/discovery.py”, line 164, in async_load_platform
hass, component, hass_config)
File “/usr/src/app/homeassistant/setup.py”, line 46, in async_setup_component
return (yield from setup_tasks[domain])
File “/usr/local/lib/python3.6/asyncio/futures.py”, line 329, in iter
return self.result() # May raise too.
File “/usr/local/lib/python3.6/asyncio/futures.py”, line 243, in result
raise self._exception
File “/usr/local/lib/python3.6/asyncio/tasks.py”, line 182, in _step
result = coro.throw(exc)
File “/usr/src/app/homeassistant/setup.py”, line 57, in async_setup_component
return (yield from task)
File “/usr/local/lib/python3.6/asyncio/futures.py”, line 327, in iter
yield self # This tells Task to wait for completion.
File “/usr/local/lib/python3.6/asyncio/tasks.py”, line 250, in _wakeup
future.result()
File “/usr/local/lib/python3.6/asyncio/futures.py”, line 243, in result
raise self._exception
File “/usr/local/lib/python3.6/asyncio/tasks.py”, line 180, in _step
result = coro.send(None)
File “/usr/src/app/homeassistant/setup.py”, line 119, in _async_setup_component
conf_util.async_process_component_config(hass, config, domain)
File “/usr/src/app/homeassistant/config.py”, line 624, in async_process_component_config
platform = get_platform(domain, p_name)
File “/usr/src/app/homeassistant/loader.py”, line 104, in get_platform
return get_component(PLATFORM_FORMAT.format(domain, platform))
File “/usr/src/app/homeassistant/loader.py”, line 142, in get_component
module = importlib.import_module(path)
File “/usr/local/lib/python3.6/importlib/init.py”, line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File “”, line 994, in _gcd_import
File “”, line 971, in _find_and_load
File “”, line 955, in _find_and_load_unlocked
File “”, line 665, in _load_unlocked
File “”, line 674, in exec_module
File “”, line 781, in get_code
File “”, line 741, in source_to_code
File “”, line 219, in _call_with_frames_removed
File “/config/custom_components/climate/broadlink.py”, line 7

^
SyntaxError: invalid syntax

Suggestions??

Seems like a copy-paste problem. Please use raw in GitHub

thanks… noted… did figure it out when i did wget and saw it pulled html :stuck_out_tongue:

Is anyone having this working in 64.+? I’ve been having no luck. Added the latest broadlink.py to no avail!

What are your logs saying?

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/asyncio/tasks.py", line 182, in _step
    result = coro.throw(exc)
  File "/usr/src/app/homeassistant/setup.py", line 57, in async_setup_component
    return (yield from task)
  File "/usr/local/lib/python3.6/asyncio/futures.py", line 327, in __iter__
    yield self  # This tells Task to wait for completion.
  File "/usr/local/lib/python3.6/asyncio/tasks.py", line 250, in _wakeup
    future.result()
  File "/usr/local/lib/python3.6/asyncio/futures.py", line 243, in result
    raise self._exception
  File "/usr/local/lib/python3.6/asyncio/tasks.py", line 180, in _step
    result = coro.send(None)
  File "/usr/src/app/homeassistant/setup.py", line 119, in _async_setup_component
    conf_util.async_process_component_config(hass, config, domain)
  File "/usr/src/app/homeassistant/config.py", line 624, in async_process_component_config
    platform = get_platform(domain, p_name)
  File "/usr/src/app/homeassistant/loader.py", line 104, in get_platform
    return get_component(PLATFORM_FORMAT.format(domain, platform))
  File "/usr/src/app/homeassistant/loader.py", line 142, in get_component
    module = importlib.import_module(path)
  File "/usr/local/lib/python3.6/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 994, in _gcd_import
  File "<frozen importlib._bootstrap>", line 971, in _find_and_load
  File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 665, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 674, in exec_module
  File "<frozen importlib._bootstrap_external>", line 781, in get_code
  File "<frozen importlib._bootstrap_external>", line 741, in source_to_code
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/config/custom_components/media_player/broadlink.py", line 7
    <!DOCTYPE html>
    ^
SyntaxError: invalid syntax```

To fix this, please check the post before yours.

Aha, I feel like an idiot. Note to self: save the raw version!
Thanks @Vassilis works well, really enjoying your components…

HI Vassilis, is it possible to use the climate component to run only a fan. i.e. i have an automation that sets the fan speed to high, medium or low depending on room temperature.
this is what I tried, but all it does is set low med high when I select auto in operation
https://hastebin.com/amefajexic.makefile

Hi,
Did you try the Broadlink RF Fan component?
https://github.com/vpnmaster/homeassistant-custom-components/blob/master/custom_components/fan/broadlink.py