mirror of
https://github.com/esphome/esphome-docs.git
synced 2024-12-26 17:27:47 +01:00
feat: Doc to support templatable code for Midea IR (#2463)
This commit is contained in:
parent
55c12a1366
commit
c161e670a9
@ -184,6 +184,7 @@ Configuration variables:
|
|||||||
|
|
||||||
.. note::
|
.. 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.
|
- See :ref:`Toshiba<toshiba>` below if you are looking for compatibility with Midea model MAP14HS1TBL or similar.
|
||||||
|
|
||||||
|
|
||||||
|
@ -208,9 +208,15 @@ This :ref:`action <config-action>` sends a 40-bit Midea code to a remote transmi
|
|||||||
- remote_transmitter.transmit_midea:
|
- remote_transmitter.transmit_midea:
|
||||||
code: [0xA2, 0x08, 0xFF, 0xFF, 0xFF]
|
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:
|
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`.
|
- All other options from :ref:`remote_transmitter-transmit_action`.
|
||||||
|
|
||||||
``remote_transmitter.transmit_nec`` Action
|
``remote_transmitter.transmit_nec`` Action
|
||||||
|
Loading…
Reference in New Issue
Block a user