Updated PowerOnState Configuration (markdown)

Michael Ingraham 2019-05-01 14:21:37 -04:00
parent cbd08469af
commit 2d4ae765c8
1 changed files with 2 additions and 2 deletions

@ -20,10 +20,10 @@ If MQTT is defined and [`PowerRetain`](Commands#powerretain) is used the last st
|-|-|
[`PowerRetain`](Commands#powerretain) | Show current MQTT power retain state.<BR> `0` / `off` = disable MQTT power retain on status update *(default)* <BR> `1` / `on` = enable MQTT power retain on status update
Stored retain message in your MQTT broker will always ***override the `PowerOnState`*** and is usually the cause for "ghost switching". Learn more in [MQTT retained messages explained](http://www.steves-internet-guide.com/mqtt-retained-messages-example/).
A message in your MQTT broker flagged as 'retained' will ***_always_ override the `PowerOnState`***. This is usually the cause for "ghost switching". Learn more in [MQTT retained messages explained](http://www.steves-internet-guide.com/mqtt-retained-messages-example/). Check out [this tutorial](https://www.youtube.com/watch?v=31IyfM1gygo) for troubleshooting switch ghosting.
### Clearing retained messages
To check, if there is a retain value set for the power switch monitor topic `cmnd/+/power` in a MQTT client (recommended [MQTT.fx](https://mqttfx.jensd.de/) for Windows or [Eclipse Mosquitto](https://mosquitto.org/) in linux).
To check, if there is a retain flag set for the switch's power topic, monitor `cmnd/+/power` in a MQTT client (recommended [MQTT.fx](https://mqttfx.jensd.de/) for Windows or [Eclipse Mosquitto](https://mosquitto.org/) in linux).
You can use [Tasmota Device Manager](https://github.com/jziolkowski/tdm) to clear all retained messages for selected device with a single click.