mirror of
https://github.com/esphome/esphome-docs.git
synced 2024-10-18 07:35:40 +02:00
50 lines
1.8 KiB
ReStructuredText
50 lines
1.8 KiB
ReStructuredText
|
Remote Transmitter Component
|
||
|
============================
|
||
|
|
||
|
The ``remote_transmitter`` component lets you send infrared messages to control
|
||
|
devices in your home. First, you need to setup a global hub that specifies which pin your remote
|
||
|
sender is connected to. Afterwards you can create :doc:`individual
|
||
|
switches </esphomeyaml/components/switch/remote_transmitter>` that each send a pre-defined remote signal to a device.
|
||
|
|
||
|
Use-cases are for example infrared remotes or 433MHz signals.
|
||
|
|
||
|
.. note::
|
||
|
|
||
|
This component is *much* more accurate on the ESP32, since that chipset has a dedicated
|
||
|
peripheral for sending exact signal sequences.
|
||
|
|
||
|
.. code:: yaml
|
||
|
|
||
|
# Example configuration entry
|
||
|
remote_transmitter:
|
||
|
pin: GPIO32
|
||
|
carrier_duty_percent: 50%
|
||
|
|
||
|
# Individual switches
|
||
|
switch:
|
||
|
- platform: remote_transmitter
|
||
|
name: "Panasonic TV Off"
|
||
|
panasonic:
|
||
|
address: 0x4004
|
||
|
command: 0x100BCBD
|
||
|
|
||
|
Configuration variables:
|
||
|
------------------------
|
||
|
|
||
|
- **pin** (**Required**, :ref:`config-pin`): The pin to transmit the remote signal on.
|
||
|
- **carrier_duty_percent** (*Optional*, int): How much of the time the remote is on. For example, infrared
|
||
|
protocols modulate the signal using a carrier signal. Set this is ``50%`` if you're working with IR leds and to
|
||
|
``100%`` if working with a other things like 433MHz transmitters.
|
||
|
- **id** (*Optional*, :ref:`config-id`): Manually specify
|
||
|
the ID used for code generation. Use this if you have multiple remote transmitters.
|
||
|
|
||
|
.. note::
|
||
|
|
||
|
See :ref:`finding_remote_codes` for a guide for setting this up.
|
||
|
|
||
|
See Also
|
||
|
--------
|
||
|
|
||
|
- :doc:`API Reference </api/switch/remote_transmitter>`
|
||
|
- `Edit this page on GitHub <https://github.com/OttoWinter/esphomedocs/blob/current/esphomeyaml/components/remote_transmitter.rst>`__
|