feat: Doc to support templatable code for Midea IR (#2463)

This commit is contained in:
Alex Reid 2022-11-22 18:53:51 -05:00 committed by GitHub
parent 55c12a1366
commit c161e670a9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 1 deletions

View File

@ -184,6 +184,7 @@ Configuration variables:
.. note::
- See :ref:`Transmit Midea<remote_transmitter-transmit_midea>` to send custom commands, including Follow Me mode.
- See :ref:`Toshiba<toshiba>` below if you are looking for compatibility with Midea model MAP14HS1TBL or similar.

View File

@ -207,10 +207,16 @@ This :ref:`action <config-action>` sends a 40-bit Midea code to a remote transmi
on_...:
- remote_transmitter.transmit_midea:
code: [0xA2, 0x08, 0xFF, 0xFF, 0xFF]
on_...:
- remote_transmitter.transmit_midea:
code: !lambda |-
// Send a FollowMe code with the current temperature.
return {0xA4, 0x82, 0x48, 0x7F, (uint8_t)(id(temp_sensor).state + 1)};
Configuration variables:
- **code** (**Required**, list): The 40-bit Midea code to send as a list of hex or integers.
- **code** (**Required**, list, :ref:`templatable <config-templatable>`): The 40-bit Midea code to send as a list of hex or integers.
- All other options from :ref:`remote_transmitter-transmit_action`.
``remote_transmitter.transmit_nec`` Action