diff --git a/components/remote_receiver.rst b/components/remote_receiver.rst index c7bb7ff63..a994d8c51 100644 --- a/components/remote_receiver.rst +++ b/components/remote_receiver.rst @@ -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. + - **mirage**: Decode and dump Mirage infrared 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 `): 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_mirage** (*Optional*, :ref:`Automation `): An automation to perform when a + Mirage remote code has been decoded. A variable ``x`` of type :apistruct:`remote_base::MirageData` + is passed to the automation for use in lambdas. .. code-block:: yaml @@ -430,6 +434,11 @@ 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. +- **mirage**: Trigger on a Mirage remote code with the given code. + + - **code** (**Required**, 14-bytes list): The code to listen for, see :ref:`remote_transmitter-transmit_mirage` + for more info. Usually you only need to copy this directly from the dumper output. + .. note:: The **CanalSat** and **CanalSatLD** protocols use a higher carrier frequency (56khz) and are very similar. diff --git a/components/remote_transmitter.rst b/components/remote_transmitter.rst index 342d74539..092f6f115 100644 --- a/components/remote_transmitter.rst +++ b/components/remote_transmitter.rst @@ -886,6 +886,23 @@ Configuration variables: - All other options from :ref:`remote_transmitter-transmit_action`. +.. _remote_transmitter-transmit_mirage: + +``remote_transmitter.transmit_mirage`` Action +********************************************* + +This :ref:`action ` sends a 112-bit Mirage code to a remote transmitter. 8-bits of checksum added automatically. + +.. code-block:: yaml + + on_...: + - remote_transmitter.transmit_mirage: + code: [0x56, 0x77, 0x00, 0x00, 0x22, 0xC0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00] + +Configuration variables: + +- **code** (**Required**, list): The 14 byte Mirage code to send. +- All other options from :ref:`remote_transmitter-transmit_action`. Lambda calls ************