diff --git a/components/remote_receiver.rst b/components/remote_receiver.rst index ef0ad8a79..5f45ba9b7 100644 --- a/components/remote_receiver.rst +++ b/components/remote_receiver.rst @@ -71,6 +71,13 @@ Automations: - **on_nec** (*Optional*, :ref:`Automation `): An automation to perform when a NEC remote code has been decoded. A variable ``x`` of type :apistruct:`remote_base::NECData` is passed to the automation for use in lambdas. + + .. note:: + + In version 2021.12, the order of transferring bits was corrected from MSB to LSB in accordance with the NEC standard. + Therefore, if the the configuration file has come from an earlier version of ESPhome, it is necessary to reverse the order of the address and command bits when moving to 2021.12 or above. + For example, address: 0x84ED, command: 0x13EC becomes 0xB721 and 0x37C8 respectively. + - **on_sony** (*Optional*, :ref:`Automation `): An automation to perform when a Sony remote code has been decoded. A variable ``x`` of type :apistruct:`remote_base::SonyData` is passed to the automation for use in lambdas. @@ -152,6 +159,12 @@ Remote code selection (exactly one of these has to be included): - **nec**: Trigger on a decoded NEC remote code with the given data. + .. note:: + + In version 2021.12, the order of transferring bits was corrected from MSB to LSB in accordance with the NEC standard. + Therefore, if the the configuration file has come from an earlier version of ESPhome, it is necessary to reverse the order of the address and command bits when moving to 2021.12 or above. + For example, address: 0x84ED, command: 0x13EC becomes 0xB721 and 0x37C8 respectively. + - **address** (**Required**, int): The address to trigger on, see dumper output for more info. - **command** (**Required**, int): The NEC command to listen for. diff --git a/components/remote_transmitter.rst b/components/remote_transmitter.rst index 8461c3a45..d887c7ff3 100644 --- a/components/remote_transmitter.rst +++ b/components/remote_transmitter.rst @@ -183,6 +183,12 @@ Configuration variables: This :ref:`action ` sends an NEC infrared remote code to a remote transmitter. +.. note:: + + In version 2021.12, the order of transferring bits was corrected from MSB to LSB in accordance with the NEC standard. + Therefore, if the the configuration file has come from an earlier version of ESPhome, it is necessary to reverse the order of the address and command bits when moving to 2021.12 or above. + For example, address: 0x84ED, command: 0x13EC becomes 0xB721 and 0x37C8 respectively. + .. code-block:: yaml on_...: