mirror of
https://github.com/esphome/esphome-docs.git
synced 2024-12-26 17:27:47 +01:00
mqtt.on_message add lambda note
This commit is contained in:
parent
c591c2ae7b
commit
f7408394f6
@ -259,7 +259,8 @@ on_message
|
||||
^^^^^^^^^^
|
||||
|
||||
With this configuration option you can write complex automations whenever an MQTT
|
||||
message on a specific topic is received.
|
||||
message on a specific topic is received. To use the message content, use a :ref:`lambda <config-lambda>`
|
||||
template, the message payload is available under the name ``x`` inside that lambda.
|
||||
|
||||
.. code:: yaml
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user