From 376621b5eb7018b5b7851f39fdcccc8b2939b60a Mon Sep 17 00:00:00 2001 From: Jonathan Swoboda <154711427+swoboda1337@users.noreply.github.com> Date: Tue, 24 Sep 2024 22:09:27 -0400 Subject: [PATCH] Add remote transmitter triggers to support auto tx on/off (#4275) Co-authored-by: Jonathan Swoboda --- components/remote_transmitter.rst | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/components/remote_transmitter.rst b/components/remote_transmitter.rst index 8f47bd223..a2241277a 100644 --- a/components/remote_transmitter.rst +++ b/components/remote_transmitter.rst @@ -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 `): 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 `): 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