diff --git a/atom.xml b/atom.xml index 3b5d85e25d..b2bbda3758 100644 --- a/atom.xml +++ b/atom.xml @@ -4,7 +4,7 @@
To allow Home Assistant to talk to your IR receiver, you need to first make sure you have the correct dependencies installed:
$ sudo apt-get install lirc +$ sudo apt-get install lirc python3-lirc
Check the version of python3-lirc
:
$ apt-cache show python3-lirc +Package: python3-lirc +Source: python-lirc +Version: 1.2.1-2 +
If you do not have this version or you are running in a virtual environment, then your system will completely freeze with this component active. You will need to build python3-lirc
from source. The version of this library in the Python package index is also broken, so the typical dependency system cannot fix this. Build it from source like this:
As regular user:
+ +sudo apt-get install liblircclient-dev +
As the user that runs hass:
+ +(hass) $ git clone https://github.com/tompreston/python-lirc.git +(hass) $ cd python-lirc +(hass) $ make py3 +(hass) $ python3 setup.py build +(hass) $ python3 setup.py install +
If you are not using a virtual environment setup, then you’ll need a sudo
before the install line above.
If you are configuring on a Raspberry Pi, there are excellent instructions with GPIO schematics and driver configurations here. Consider following these.
@@ -139,12 +174,12 @@ endTest your LIRC installation before proceeding by running:
-If you are on a Debian based system (like Raspberry Pi) and are having issues loading the component due to it being unable to install python-lirc, install it manually using apt-get install python3-lirc
.
-
The LIRC component fires ir_command_received
events on the bus. You can capture the events and respond to them in automation scripts like this: