mqtt.on_message add lambda note

This commit is contained in:
Otto Winter 2018-06-06 08:12:04 +02:00
parent c591c2ae7b
commit f7408394f6
No known key found for this signature in database
GPG Key ID: DB66C0BE6013F97E
1 changed files with 2 additions and 1 deletions

View File

@ -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