mirror of
https://github.com/esphome/esphome-docs.git
synced 2024-12-25 17:17:54 +01:00
Update remote_receiver.rst (#2735)
This commit is contained in:
parent
243ec7deaf
commit
9d58ebf3b9
@ -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 <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
|
||||
|
Loading…
Reference in New Issue
Block a user