From 9d58ebf3b98688375a87966f872bb3324ef4e31f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=2E=20=C3=81rkosi=20R=C3=B3bert?= Date: Fri, 10 Mar 2023 10:34:54 +0100 Subject: [PATCH] Update remote_receiver.rst (#2735) --- components/remote_receiver.rst | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/components/remote_receiver.rst b/components/remote_receiver.rst index 25954d009..ad1361822 100644 --- a/components/remote_receiver.rst +++ b/components/remote_receiver.rst @@ -66,7 +66,9 @@ Configuration variables: - **id** (*Optional*, :ref:`config-id`): Manually specify the ID used for code generation. Use this if you have multiple remote receivers. + Automations: +------------ - **on_aeha** (*Optional*, :ref:`Automation `): An automation to perform when a AEHA remote code has been decoded. A variable ``x`` of type :apiclass:`remote_base::AEHAData` @@ -143,6 +145,21 @@ Automations: 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. +.. code-block:: yaml + + # Example automation for decoded signals + remote_receiver: + ... + on_samsung: + then: + - if: + condition: + or: + - lambda: 'return (x.data == 0xE0E0E01F);' # VOL+ newer type + - lambda: 'return (x.data == 0xE0E0E01F0);' # VOL+ older type + then: + - ... + .. _remote-receiver-binary-sensor: Binary Sensor