From 1102939bbd179b0695a4b3981f78b528b5651bf3 Mon Sep 17 00:00:00 2001 From: Volker Thiel Date: Sat, 12 Jan 2019 17:55:22 +0100 Subject: [PATCH] Wrong topic when deleting sensor (#8149) Deletion of a discovered sensor is done through the config topic --- source/_docs/mqtt/discovery.markdown | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/_docs/mqtt/discovery.markdown b/source/_docs/mqtt/discovery.markdown index cf3d015bb32..88bf2b980ae 100644 --- a/source/_docs/mqtt/discovery.markdown +++ b/source/_docs/mqtt/discovery.markdown @@ -213,7 +213,7 @@ $ mosquitto_pub -h 127.0.0.1 -p 1883 -t "homeassistant/binary_sensor/garden/stat Delete the sensor by sending an empty message. ```bash -$ mosquitto_pub -h 127.0.0.1 -p 1883 -t "homeassistant/binary_sensor/garden/state" -m '' +$ mosquitto_pub -h 127.0.0.1 -p 1883 -t "homeassistant/binary_sensor/garden/config" -m '' ``` Setting up a switch is similar but requires a `command_topic` as mentioned in the [MQTT switch documentation](/components/switch.mqtt/).