diff --git a/source/_docs/configuration/templating.markdown b/source/_docs/configuration/templating.markdown index 0f0f6b3a080..60eed9e7316 100644 --- a/source/_docs/configuration/templating.markdown +++ b/source/_docs/configuration/templating.markdown @@ -771,6 +771,51 @@ To evaluate a response, go to **{% my developer_template title="Developer Tools {% endraw %} +### Using templates with the MQTT integration + +The [MQTT integration](/integrations/mqtt/) relies heavily on templates. Templates are used to transform incoming payloads (value templates) to status updates or incoming service calls (command templates) to payloads that configure the MQTT device. + +#### Using value templates with MQTT + +For incoming data a value template translates incoming JSON or raw data to a valid payload. +Incoming payloads are rendered with possible JSON values, so when rendering the `value_json` can be used access the attributes in a JSON based payload. + +