@@ -32,7 +32,7 @@ It is thereby a crucial aspect on top of the MQTT protocol for *automatic discov
3232
3333## Example  
3434
35- Homies topic layout follows the pattern "** homie/device/node/property** ".
35+ Homies topic layout follows the pattern "** homie/5/ device/node/property** ".
3636
3737In this example our device has a thermostat functionality where the target
3838temperature can be read from and written to. The thermostat function
@@ -41,24 +41,33 @@ is modelled as **node**, the temperature is a **property** of that node.
4141The following topics are published as retained messages to the broker:
4242
4343{{< card >}}
44-       homie / device123 / $homie → 3.0
45-       homie / device123 / $name → My device
46-       homie / device123 / $state → ready
47-       homie / device123 / $nodes → mythermostat
48- 
49-       homie / device123 / mythermostat / $name → My thermostat 
50-       homie / device123 / mythermostat / $properties → temperature 
51- 
52-       homie / device123 / mythermostat / temperature → 22  
53-       homie / device123 / mythermostat / temperature / $name → Temperature 
54-       homie / device123 / mythermostat / temperature / $unit → °C 
55-       homie / device123 / mythermostat / temperature / $datatype → integer 
56-       homie / device123 / mythermostat / temperature / $settable → true 
44+       homie/5/device123/$state → ready
45+       homie/5/device123/$description → {
46+         "id": "device123",
47+         "homie": "5.0",
48+         "version": "12",
49+         "name": "My device",
50+         "nodes": {
51+           "mythermostat": {
52+             "name": "My thermostat",
53+             "type": "thermostat",
54+             "properties": {
55+               "temperature": {
56+                 "name": "Temperature",
57+                 "unit": "°C",
58+                 "datatype": "integer",
59+                 "settable": true
60+               }
61+             }
62+           }
63+         }
64+       }
65+       homie/5/device123/mythermostat/temperature → 22
5766{{< /card >}}
5867
5968Any Homie compliant controller can now find "My device" and will find out
6069about "My thermostat" with "Temperature in °C" and that it needs to publish
61- to "... /* temperature* /* set* " to change the temperature.
70+ to "homie/5/device123/mythermostat /* temperature* /* set* " to change the temperature.
6271
6372If we got your attention, head over to the <a  href =" /specification/ " >specification</a >
6473and let all your questions being answered.
0 commit comments