mirror of
https://github.com/esphome/esphome-docs.git
synced 2025-02-13 01:11:24 +01:00
Add remote transmitter triggers to support auto tx on/off (#4275)
Co-authored-by: Jonathan Swoboda <jonathan.swoboda>
This commit is contained in:
parent
d59fc0ea3c
commit
376621b5eb
@ -48,6 +48,26 @@ Configuration variables:
|
||||
- **id** (*Optional*, :ref:`config-id`): Manually specify
|
||||
the ID used for code generation. Use this if you have multiple remote transmitters.
|
||||
|
||||
Automations:
|
||||
------------
|
||||
|
||||
- **on_transmit** (*Optional*, :ref:`Automation <automation>`): An automation to perform before
|
||||
data is sent. Useful if the radio / IR hardware needs to change state or power on.
|
||||
- **on_complete** (*Optional*, :ref:`Automation <automation>`): An automation to perform after
|
||||
data has been sent. Useful if the radio / IR hardware needs to change state or power off.
|
||||
|
||||
.. code-block:: yaml
|
||||
|
||||
# Example automation
|
||||
remote_transmitter:
|
||||
...
|
||||
on_transmit:
|
||||
then:
|
||||
- switch.turn_on: tx_enable
|
||||
on_complete:
|
||||
then:
|
||||
- switch.turn_off: tx_enable
|
||||
|
||||
.. _remote_transmitter-transmit_action:
|
||||
|
||||
Remote Transmitter Actions
|
||||
|
Loading…
Reference in New Issue
Block a user