From 655283911aba100088292c02d427c41dc44658d6 Mon Sep 17 00:00:00 2001 From: Pavlo Dudnytskyi Date: Sun, 8 Oct 2023 22:49:58 +0200 Subject: [PATCH] Documentation for Haier IR protocol added (#3233) --- components/remote_receiver.rst | 9 +++++++++ components/remote_transmitter.rst | 18 ++++++++++++++++++ 2 files changed, 27 insertions(+) diff --git a/components/remote_receiver.rst b/components/remote_receiver.rst index 8e042af9f..6e8a8cb2b 100644 --- a/components/remote_receiver.rst +++ b/components/remote_receiver.rst @@ -37,6 +37,7 @@ Configuration variables: - **dish**: Decode and dump Dish infrared codes. - **drayton**: Decode and dump Drayton Digistat RF codes. - **jvc**: Decode and dump JVC infrared codes. + - **haier**: Decode and dump Haier infrared codes. - **lg**: Decode and dump LG infrared codes. - **magiquest**: Decode and dump MagiQuest wand infrared codes. - **midea**: Decode and dump Midea infrared codes. @@ -98,6 +99,9 @@ Automations: - **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. +- **on_haier** (*Optional*, :ref:`Automation `): An automation to perform when a + Haier remote code has been decoded. A variable ``x`` of type :apiclass:`remote_base::HaierData` + is passed to the automation for use in lambdas. - **on_lg** (*Optional*, :ref:`Automation `): An automation to perform when a LG remote code has been decoded. A variable ``x`` of type :apistruct:`remote_base::LGData` is passed to the automation for use in lambdas. @@ -236,6 +240,11 @@ Remote code selection (exactly one of these has to be included): - **data** (**Required**, int): The JVC code to trigger on, see dumper output for more info. +- **haier**: Trigger on a Haier remote code with the given code. + + - **code** (**Required**, 13-bytes list): The code to listen for, see :ref:`remote_transmitter-transmit_haier` + for more info. Usually you only need to copy this directly from the dumper output. + - **lg**: Trigger on a decoded LG remote code with the given data. - **data** (**Required**, int): The LG code to trigger on, see dumper output for more info. diff --git a/components/remote_transmitter.rst b/components/remote_transmitter.rst index 7a8144ccc..cb6875da8 100644 --- a/components/remote_transmitter.rst +++ b/components/remote_transmitter.rst @@ -233,6 +233,24 @@ Configuration variables: - **data** (**Required**, int): The JVC code to send, see dumper output for more info. +.. _remote_transmitter-transmit_haier: + +``remote_transmitter.transmit_haier`` Action +******************************************** + +This :ref:`action ` sends a 104-bit Haier code to a remote transmitter. 8-bits of checksum added automatically. + +.. code-block:: yaml + + on_...: + - remote_transmitter.transmit_haier: + code: [0xA6, 0xDA, 0x00, 0x00, 0x40, 0x40, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x05] + +Configuration variables: + +- **code** (**Required**, list): The 13 byte Haier code to send. +- All other options from :ref:`remote_transmitter-transmit_action`. + .. _remote_transmitter-transmit_lg: ``remote_transmitter.transmit_lg`` Action