esphome-docs/components/binary_sensor/remote_receiver.rst

73 lines
2.2 KiB
ReStructuredText
Raw Normal View History

2018-06-13 22:38:49 +02:00
Remote Receiver Binary Sensor
=============================
2018-11-14 22:12:27 +01:00
.. seo::
:description: Instructions for setting up remote receiver binary sensors for infrared and RF codes.
:image: remote.png
2018-11-14 22:12:27 +01:00
2018-06-13 22:38:49 +02:00
The ``remote_receiver`` binary sensor lets you track when a button on a remote control is pressed.
Each time the pre-defined signal is received, the binary sensor will briefly go ON and
then immediately OFF.
.. code-block:: yaml
2018-06-13 22:38:49 +02:00
# Example configuration entry
remote_receiver:
pin: GPIO32
dump: all
binary_sensor:
- platform: remote_receiver
name: "Panasonic Remote Input"
2018-06-13 22:38:49 +02:00
panasonic:
address: 0x4004
command: 0x100BCBD
Configuration variables:
2018-08-24 22:44:01 +02:00
------------------------
2018-06-13 22:38:49 +02:00
- **name** (**Required**, string): The name for the binary sensor.
- The remote code, see :ref:`remote_transmitter-codes`. Only one
of them can be specified per binary sensor.
- **remote_receiver_id** (*Optional*, :ref:`config-id`): The id of the :doc:`/components/remote_receiver`.
2018-06-13 22:38:49 +02:00
Defaults to the first hub in your configuration.
- **id** (*Optional*, :ref:`config-id`): Manually specify the ID used for code generation.
- All other options from :ref:`Binary Sensor <config-binary_sensor>`
and :ref:`MQTT Component <config-mqtt-component>`.
.. note::
See :ref:`finding_remote_codes` for a guide for setting this up.
2018-08-24 22:44:01 +02:00
.. note::
For the Sonoff RF Bridge you can use `this hack <https://github.com/xoseperez/espurna/wiki/Hardware-Itead-Sonoff-RF-Bridge---Direct-Hack>`__
created by the Github user wildwiz. Then use this configuration for the remote receiver/transmitter hubs:
.. code-block:: yaml
2018-08-24 22:44:01 +02:00
remote_receiver:
pin: 4
dump: all
remote_transmitter:
pin: 5
carrier_duty_percent: 100%
2019-02-16 23:25:23 +01:00
Supporting the RF Bridge chip directly is currently only a long-term goal for ESPHome.
2018-08-24 22:44:01 +02:00
2018-06-13 22:38:49 +02:00
See Also
--------
- :doc:`index`
- :doc:`/components/remote_receiver`
- :doc:`/components/remote_transmitter`
2018-08-24 22:44:01 +02:00
- `RCSwitch <https://github.com/sui77/rc-switch>`__ by `Suat Özgür <https://github.com/sui77>`__
- `IRRemoteESP8266 <https://github.com/markszabo/IRremoteESP8266/>`__ by `Mark Szabo-Simon <https://github.com/markszabo>`__
- :apiref:`remote/remote_receiver.h`
- :ghedit:`Edit`
2018-10-12 16:33:22 +02:00
.. disqus::