Updated PowerOnState Configuration (markdown)

Michael Ingraham 2019-03-01 16:06:55 -05:00
parent 17089ac5f8
commit 264907e921
1 changed files with 5 additions and 5 deletions

@ -26,6 +26,7 @@ or do it manually.
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).
Using mosquitto:
`mosquitto_sub -p 1883 -u <username> -P <password> -t cmnd/+/power`
If there are retained messages there should be an output similar to: (the "r1" shows that this message was retained)
@ -45,9 +46,8 @@ on
Now you can see, if there are messages stored that Power ON/OFF and need to be deleted. To delete send empty message to topic `cmnd/%topic%/power`.
>Using mosquitto:
>
>`mosquitto_pub -p 1883 -u <username> -P <password> -d -n -r -t cmnd/sonoff/power`
>
>The -n sends an empty key and the -r sets the retain flag to store this change permanently
Using mosquitto:
`mosquitto_pub -p 1883 -u <username> -P <password> -d -n -r -t cmnd/sonoff/power`
The -n sends an empty key and the -r sets the retain flag to store this change permanently