From 09a8728cfcca178d4854a17ed264e93adfc17763 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adri=C3=A1n=20Panella?= Date: Mon, 9 Aug 2021 20:26:44 -0500 Subject: [PATCH] Add dish protocol to remote transmitter/receiver (#1362) Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com> --- components/remote_receiver.rst | 10 ++++++++++ components/remote_transmitter.rst | 21 +++++++++++++++++++++ 2 files changed, 31 insertions(+) diff --git a/components/remote_receiver.rst b/components/remote_receiver.rst index 666c0c05c..e4ba48748 100644 --- a/components/remote_receiver.rst +++ b/components/remote_receiver.rst @@ -90,6 +90,10 @@ Automations: - **on_pioneer** (*Optional*, :ref:`Automation `): An automation to perform when a pioneer remote code has been decoded. A variable ``x`` of type :apiclass:`remote_base::PioneerData` is passed to the automation for use in lambdas. + - **on_dish** (*Optional*, :ref:`Automation `): An automation to perform when a + dish network remote code has been decoded. A variable ``x`` of type :apiclass:`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. .. _remote-receiver-binary-sensor: @@ -172,6 +176,12 @@ Remote code selection (exactly one of these has to be included): - **rc_code_1** (**Required**, int): The remote control code trigger on, see dumper output for more details. +- **dish**: Trigger on a decoded Dish Network remote code with the given data. + Beware that Dish remotes use a different carrier frequency (57.6kHz) that many receiver hardware don't decode. + + - **address** (*Optional*, int, 1-16): The number of the receiver to target. Defaults to ``1``. + - **command** (**Required**, int, 0-63): The Dish command to listen for. + - **rc_switch_raw**: Trigger on a decoded RC Switch raw remote code with the given data. - **code** (**Required**, string): The remote code to listen for, copy this from the dumper output. To ignore a bit diff --git a/components/remote_transmitter.rst b/components/remote_transmitter.rst index f0ac5224b..9cfa11936 100644 --- a/components/remote_transmitter.rst +++ b/components/remote_transmitter.rst @@ -252,6 +252,27 @@ Configuration variables: - **command** (**Required**, int): The command to send. - All other options from :ref:`remote_transmitter-transmit_action`. +``remote_transmitter.transmit_dish`` Action +************************************************ + +This :ref:`action ` sends a Dish Network infrared remote code to a remote transmitter. + +.. code-block:: yaml + + on_...: + - remote_transmitter.transmit_dish: + address: 1 + command: 16 + +Configuration variables: + +- **address** (*Optional*, int, 1-16): The number of the receiver to target. Defaults to ``1``. +- **command** (**Required**, int, 0-63): The command to send. +- All other options from :ref:`remote_transmitter-transmit_action`. + +You can find a list of commands in the `LIRC project `__. + + ``remote_transmitter.transmit_pioneer`` Action **********************************************