add coolix receiver (#288)

* add coolix receiver

* add example
This commit is contained in:
Guillermo Ruffino 2019-09-09 13:01:50 -03:00 committed by GitHub
parent c5ee042d56
commit 92975768af
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 31 additions and 3 deletions

View File

@ -13,6 +13,9 @@ This component requires that you have setup a :doc:`/components/remote_transmitt
Due to the unidirectional nature of IR remote controllers, this component cannot determine the Due to the unidirectional nature of IR remote controllers, this component cannot determine the
actual state of the device, and will assume the state of the device is the latest state requested. actual state of the device, and will assume the state of the device is the latest state requested.
Optionally you can add a :doc:`/components/remote_receiver` component so the climate state will be
tracked when it is operated with the original remote controller unit.
.. figure:: images/climate-ui.png .. figure:: images/climate-ui.png
:align: center :align: center
:width: 60.0% :width: 60.0%
@ -33,9 +36,10 @@ Configuration variables:
- **name** (**Required**, string): The name for the climate. - **name** (**Required**, string): The name for the climate.
- **supports_cool** (*Optional*, boolean): Enables setting cool mode for this climate device. Defaults to ``True``. - **supports_cool** (*Optional*, boolean): Enables setting cool mode for this climate device. Defaults to ``True``.
- **supports_heat** (*Optional*, boolean): Enables setting cool heat for this climate device. Defaults to ``True``. - **supports_heat** (*Optional*, boolean): Enables setting heat mode for this climate device. Defaults to ``True``.
- **sensor** (*Optional*, :ref:`config-id`): The sensor that is used to measure the ambient - **sensor** (*Optional*, :ref:`config-id`): The sensor that is used to measure the ambient
temperature. This is only for reporting the current temperature in the frontend. temperature. This is only for reporting the current temperature in the frontend.
- **receiver_id** (*Optional*, :ref:`config-id`): The remote_receiver id, see: :ref:`coolix-receiver_id`.
- All other options from :ref:`Climate <config-climate>`. - All other options from :ref:`Climate <config-climate>`.
Advanced options: Advanced options:
@ -43,6 +47,30 @@ Advanced options:
- **id** (*Optional*, :ref:`config-id`): Manually specify the ID used for code generation. - **id** (*Optional*, :ref:`config-id`): Manually specify the ID used for code generation.
- **transmitter_id** (*Optional*, :ref:`config-id`): Manually specify the ID of the remote transmitter. - **transmitter_id** (*Optional*, :ref:`config-id`): Manually specify the ID of the remote transmitter.
.. _coolix-receiver_id:
Using a receiver
----------------
When using a receiver it is recommended to put the IR receiver as close as possible to the equipment's
IR receiver.
.. code-block:: yaml
# Example configuration entry
remote_receiver:
id: rcvr
pin:
number: GPIO14
inverted: True
mode: INPUT_PULLUP
tolerance: 55 # high tolerance required for some remote control units
climate:
- platform: coolix
name: "Living Room AC"
receiver_id: rcvr
See Also See Also
-------- --------

View File

@ -33,7 +33,7 @@ Configuration variables:
- **name** (**Required**, string): The name for the climate. - **name** (**Required**, string): The name for the climate.
- **supports_cool** (*Optional*, boolean): Enables setting cool mode for this climate device. Defaults to ``True``. - **supports_cool** (*Optional*, boolean): Enables setting cool mode for this climate device. Defaults to ``True``.
- **supports_heat** (*Optional*, boolean): Enables setting cool heat for this climate device. Defaults to ``True``. - **supports_heat** (*Optional*, boolean): Enables setting heat mode for this climate device. Defaults to ``True``.
- **sensor** (*Optional*, :ref:`config-id`): The sensor that is used to measure the ambient - **sensor** (*Optional*, :ref:`config-id`): The sensor that is used to measure the ambient
temperature. This is only for reporting the current temperature in the frontend. temperature. This is only for reporting the current temperature in the frontend.
- All other options from :ref:`Climate <config-climate>`. - All other options from :ref:`Climate <config-climate>`.

View File

@ -33,7 +33,7 @@ Configuration variables:
- **name** (**Required**, string): The name for the climate. - **name** (**Required**, string): The name for the climate.
- **supports_cool** (*Optional*, boolean): Enables setting cool mode for this climate device. Defaults to ``True``. - **supports_cool** (*Optional*, boolean): Enables setting cool mode for this climate device. Defaults to ``True``.
- **supports_heat** (*Optional*, boolean): Enables setting cool heat for this climate device. Defaults to ``True``. - **supports_heat** (*Optional*, boolean): Enables setting heat mode for this climate device. Defaults to ``True``.
- **sensor** (*Optional*, :ref:`config-id`): The sensor that is used to measure the ambient - **sensor** (*Optional*, :ref:`config-id`): The sensor that is used to measure the ambient
temperature. This is only for reporting the current temperature in the frontend. temperature. This is only for reporting the current temperature in the frontend.
- All other options from :ref:`Climate <config-climate>`. - All other options from :ref:`Climate <config-climate>`.