mirror of https://github.com/arendst/Tasmota.git
Changed Thing name to differentiate between Thing and Device
parent
5b7cf5b36a
commit
46ddfcc284
|
@ -223,7 +223,7 @@ With the item in your sitemap, you will now see the latest release/tag from the
|
|||
```java
|
||||
Bridge mqtt:broker:myMQTTBroker [ host="IPofBroker", secure=false, username="myUser", password="myPassword" , clientID="myMQTTClient" ]
|
||||
{
|
||||
Thing topic sonoff_TH "Light_TH" {
|
||||
Thing topic sonoff_TH_Thing "Light_TH" {
|
||||
Channels:
|
||||
Type switch : PowerSwitch [ stateTopic="tele/sonoff_TH/STATE" , transformationPattern="JSONPATH:$.POWER" , commandTopic="cmnd/sonoff_TH/POWER", on="ON", off="OFF" ]
|
||||
Type string : Version [stateTopic="stat/sonoff_TH/STATUS2", transformationPattern="JSONPATH:$.StatusFWR.Version"]
|
||||
|
@ -235,10 +235,10 @@ Bridge mqtt:broker:myMQTTBroker [ host="IPofBroker", secure=false, username="myU
|
|||
**.items File:**
|
||||
|
||||
```java
|
||||
Switch Switch_TH "Switch_TH" { channel="mqtt:myMQTTBroker:topic:sonoff_TH:PowerSwitch" }
|
||||
Switch Switch_TH "Switch_TH" { channel="mqtt:myMQTTBroker:topic:sonoff_TH_Thing:PowerSwitch" }
|
||||
|
||||
String Switch_TH_Temperatur "Temperatur [%.1f °C]" <temperature> {channel="mqtt:myMQTTBroker:topic:sonoff_TH:Temperature"}
|
||||
String Sonoff_Version "Sonoff Version: [%s]" <sonoff_basic> { channel="mqtt:myMQTTBroker:topic:sonoff_6:Version"}
|
||||
String Switch_TH_Temperatur "Temperatur [%.1f °C]" <temperature> {channel="mqtt:myMQTTBroker:topic:sonoff_TH_Thing:Temperature"}
|
||||
String Sonoff_Version "Sonoff Version: [%s]" <sonoff_basic> { channel="mqtt:myMQTTBroker:topic:sonoff_6_Thing:Version"}
|
||||
```
|
||||
|
||||
**.rules File for the Maintenance Action:**
|
||||
|
|
Loading…
Reference in New Issue