diff --git a/components/remote_receiver.rst b/components/remote_receiver.rst index 1333615fe..9c866f45f 100644 --- a/components/remote_receiver.rst +++ b/components/remote_receiver.rst @@ -35,6 +35,7 @@ Configuration variables: - **canalsatld**: Decode and dump CanalSatLD infrared codes. - **coolix**: Decode and dump Coolix infrared codes. - **dish**: Decode and dump Dish infrared codes. + - **drayton**: Decode and dump Drayton Digistat RF codes. - **jvc**: Decode and dump JVC infrared codes. - **lg**: Decode and dump LG infrared codes. - **magiquest**: Decode and dump MagiQuest wand infrared codes. @@ -91,6 +92,9 @@ Automations: dish network remote code has been decoded. A variable ``x`` of type :apistruct:`remote_base::DishData` is passed to the automation for use in lambdas. Beware that Dish remotes use a different carrier frequency (57.6kHz) that many receiver hardware don't decode. +- **on_drayton** (*Optional*, :ref:`Automation `): An automation to perform when a + Drayton Digistat RF code has been decoded. A variable ``x`` of type :apistruct:`remote_base::DraytonData` + is passed to the automation for use in lambdas. - **on_jvc** (*Optional*, :ref:`Automation `): An automation to perform when a JVC remote code has been decoded. A variable ``x`` of type :apistruct:`remote_base::JVCData` is passed to the automation for use in lambdas. @@ -219,6 +223,12 @@ Remote code selection (exactly one of these has to be included): - **address** (*Optional*, int): The number of the receiver to target, between 1 and 16 inclusive. Defaults to ``1``. - **command** (**Required**, int): The Dish command to listen for, between 0 and 63 inclusive. +- **drayton**: Trigger on a decoded Drayton Digistat RF remote code with the given data. + + - **address** (**Required**, int): The 16-bit ID code to trigger on, see dumper output for more info. + - **channel** (**Required**, int): The 7-bit switch/channel to listen for. + - **command** (**Required**, int): The 5-bit command to listen for. + - **jvc**: Trigger on a decoded JVC remote code with the given data. - **data** (**Required**, int): The JVC code to trigger on, see dumper output for more info. diff --git a/components/remote_transmitter.rst b/components/remote_transmitter.rst index 15bf0efe8..43c7ff85d 100644 --- a/components/remote_transmitter.rst +++ b/components/remote_transmitter.rst @@ -192,6 +192,28 @@ Configuration variables: You can find a list of commands in the `LIRC project `__. +.. _remote_transmitter-transmit_drayton: + +``remote_transmitter.transmit_drayton`` Action +********************************************** + +This :ref:`action ` sends a Draton Digistat RF remote code to a remote transmitter. + +.. code-block:: yaml + + on_...: + - remote_transmitter.transmit_drayton: + address: '0x6180' + channel: '0x12' + command: '0x02' + +Configuration variables: + +- **address** (**Required**, int): The 16-bit ID to send, see dumper output for more info. +- **channel** (**Required**, int): The switch/channel to send, between 0 and 127 inclusive. +- **command** (**Required**, int): The command to send, between 0 and 63 inclusive. +- All other options from :ref:`remote_transmitter-transmit_action`. + .. _remote_transmitter-transmit_jvc: ``remote_transmitter.transmit_jvc`` Action