Merge 07f7516cec
into 696a828156
This commit is contained in:
commit
c3ec17e4e3
|
@ -59,6 +59,7 @@ Configuration variables:
|
|||
- **samsung36**: Decode and dump Samsung36 infrared codes.
|
||||
- **sony**: Decode and dump Sony infrared codes.
|
||||
- **toshiba_ac**: Decode and dump Toshiba AC infrared codes.
|
||||
- **virtualwire**: Decode and dump VirtualWire / RadioHead RH_ASK codes.
|
||||
|
||||
- **tolerance** (*Optional*, int, :ref:`config-time` or mapping): The percentage or time that the remote signal lengths can
|
||||
deviate in the decoding process. Defaults to ``25%``.
|
||||
|
@ -189,6 +190,9 @@ Automations:
|
|||
- **on_toshiba_ac** (*Optional*, :ref:`Automation <automation>`): An automation to perform when a
|
||||
Toshiba AC remote code has been decoded. A variable ``x`` of type :apistruct:`remote_base::ToshibaAcData`
|
||||
is passed to the automation for use in lambdas.
|
||||
- **on_virtualwire** (*Optional*, :ref:`Automation <automation>`): An automation to perform when a
|
||||
VirtualWire / RadioHead RH_ASK code has been decoded. A variable ``x`` of
|
||||
type :apistruct:`remote_base::VirtualWireData` is passed to the automation for use in lambdas.
|
||||
|
||||
.. code-block:: yaml
|
||||
|
||||
|
@ -430,6 +434,12 @@ Remote code selection (exactly one of these has to be included):
|
|||
- **rc_code_1** (**Required**, int): The remote control code to trigger on, see dumper output for more details.
|
||||
- **rc_code_2** (*Optional*, int): The second part of the remote control code to trigger on, see dumper output for more details.
|
||||
|
||||
- **virtualwire**: Trigger on a decoded VirtualWire / RadioHead RH_ASK remote code with the given data.
|
||||
|
||||
- **data** (**Required**, list): The data to trigger on, see :ref:`remote_transmitter-transmit_virtualwire` for more info.
|
||||
- **speed** (*Optional*, int): The transmission speed in bits per second. Set to ``0`` for automatic speed detection.
|
||||
Defaults to ``0``.
|
||||
|
||||
.. note::
|
||||
|
||||
The **CanalSat** and **CanalSatLD** protocols use a higher carrier frequency (56khz) and are very similar.
|
||||
|
|
|
@ -886,6 +886,29 @@ Configuration variables:
|
|||
|
||||
- All other options from :ref:`remote_transmitter-transmit_action`.
|
||||
|
||||
.. _remote_transmitter-transmit_virtualwire:
|
||||
|
||||
``remote_transmitter.transmit_virtualwire`` Action
|
||||
**************************************************
|
||||
|
||||
This :ref:`action <config-action>` sends a VirtualWire / RadioHead RH_ASK message to a remote transmitter.
|
||||
It can be used to transmit messages between ESPHome and Arduino devices and is compatible with the
|
||||
VirtualWire and RadioHead Arduino libraries
|
||||
|
||||
.. code-block:: yaml
|
||||
|
||||
on_...:
|
||||
- remote_transmitter.transmit_virtualwire:
|
||||
data: [0x00, 0x01]
|
||||
speed: 2000
|
||||
|
||||
Configuration variables:
|
||||
|
||||
- **data** (**Required**, list): The content of the message, see dumper output for more details.
|
||||
- **speed** (*Optional*, int): The transmission speed in bits per second. Defaults to ``2000``.
|
||||
|
||||
- All other options from :ref:`remote_transmitter-transmit_action`.
|
||||
|
||||
|
||||
Lambda calls
|
||||
************
|
||||
|
|
Loading…
Reference in New Issue