homieiot / convention

🏡 The Homie Convention: a lightweight MQTT convention for the IoT
https://homieiot.github.io/
Other
710 stars 59 forks source link

Node or node property #16

Closed bertmelis closed 7 years ago

bertmelis commented 7 years ago

Imagine a water consumption meter which is read out by an esp8266. the esp counts pulses as total consumption and calculaties the current flow. Would you split up consumption and flow into separate nodes of would you see them as different properties of 1 node.

gorootde commented 7 years ago

I would see them as different properties of the same node. According to the specification examples, a node is defined as a sensor, the values that can be read from the sensor are the properties.

bertmelis commented 7 years ago

I was a bit confused with the relation to the real life "thing". When you take the current weather for example, you have different nodes: temperature, humidity, wind... In my example, the real life thing is the watermeter from which you can pick up several items.

But as I read between the lines of your answer, when the different items are very closely related to each other, you can see them as node properties: weather items are very loosely related: different nodes watermeter items are closely related: node properties rollershutter position and slat position are not related: different nodes ....

ThomDietrich commented 7 years ago

I believe that is the idea. I have automated a whole coffee machine. Everything is closely related --> One node "machine" with around 10 properties ;)