Updated openHAB (markdown)

Thomas Dietrich 2017-02-27 12:24:49 +01:00
parent 7b973551d1
commit 2b67759e94
1 changed files with 2 additions and 2 deletions

@ -35,7 +35,7 @@ It is furthermore recommended, to add the following status items for every Sonof
**sonoff.items:**
```java
// A switch being 'ON' as long as the device is reachable
// A switch being 'ON' as long as the device is reachable 💬
Switch LivingRoom_Light_Reachable "Living Room Light: reachable" (gReachable)
{ mqtt="<[broker:tele/sonoff-A00F9D/LWT:state:MAP(reachable.map)]" }
@ -52,7 +52,7 @@ String LivingRoom_Light_Verbose "Living Room Light: MQTT return message [%s]"
<[broker:stat/sonoff-A00F9D/RESULT:state:default]" }
```
The "LWT" topic (["Last Will and Testament"](http://www.hivemq.com/blog/mqtt-essentials-part-9-last-will-and-testament)) will receive regular "Online" messages by the module and an "Offline" message a short time after the module is disconnected, generated by the MQTT broker. These messages are transformed to a valid `ON`/`OFF` state by the MAP transformation. The following transformation file is needed.
💬 The "LWT" topic (["Last Will and Testament"](http://www.hivemq.com/blog/mqtt-essentials-part-9-last-will-and-testament)) will receive regular "Online" messages by the module and an "Offline" message a short time after the module is disconnected, generated by the MQTT broker. These messages are transformed to a valid `ON`/`OFF` state by the MAP transformation. The following transformation file is needed.
**reachable.map:**
```java