Added Docker command (#210)

* Added Docker command

Added Docker command in section "Using with Home Assistant"

* Update mqtt.rst
This commit is contained in:
Patrik Hermansson 2019-04-09 14:32:40 +02:00 committed by Otto Winter
parent a99915eef1
commit c1e42981b6

View File

@ -145,6 +145,12 @@ retained messages for you:
esphome configuration.yaml clean-mqtt esphome configuration.yaml clean-mqtt
With Docker:
.. code-block:: bash
docker run --rm -v "${PWD}":/config -it esphome/esphome configuration.yaml clean-mqtt
This will remove all retained messages with the topic This will remove all retained messages with the topic
``<DISCOVERY_PREFIX>/+/NODE_NAME/#``. If you want to purge on another ``<DISCOVERY_PREFIX>/+/NODE_NAME/#``. If you want to purge on another
topic, simply add ``--topic <your_topic>`` to the command. topic, simply add ``--topic <your_topic>`` to the command.