<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Things definition vs nodes and childIDs]]></title><description><![CDATA[<p dir="auto">Hi guys,</p>
<p dir="auto">I've set up a couple of MySensors nodes in OpenHAB and it's working fine. However, I am a bit surprised by the number of things definitions I need.</p>
<p dir="auto">Currently, I have defined one thing per MySensors childID.<br />
Is this really necessary or have I missed something?</p>
<p dir="auto">Wouldn't it be more preferable to define one thing per MySensors node?<br />
(Things in OpenHAB should are meant to represent the physical layer which seems to align well with the MySensors node level.)</p>
<p dir="auto">For example, I have a (node manager) temperature/humidity node with battery status, defined in three OpenHAB things:</p>
<pre><code>Thing temperature MYS_Node10_Temp  "MYS 10-0 Temperature" [ nodeId=10, childId=1 ]
Thing humidity    MYS_Node10_Humid "MYS 10-1 Humidity"    [ nodeId=10, childId=2 ]
Thing multimeter  MYS_Node10_Maint "MYS 10-1 Maintenance" [ nodeId=10, childId=201 ]
</code></pre>
<p dir="auto">I have a total of five items linked to the things:</p>
<pre><code>Number MYS_10_Temp    "Temp [%.1f°C]"    &lt;temperature&gt; (gTemp, gMySensors)   ["CurrentTemperature"] { 
    channel="mysensors:temperature:MYS_gw1:MYS_Node10_Temp:temp" }
Number MYS_10_Humid   "Humid [%.1f%%]"   &lt;humidity&gt;    (gHumid, gMySensors)  ["CurrentHumidity"] { 
    channel="mysensors:humidity:MYS_gw1:MYS_Node10_Humid:hum" } 
Number MYS_10_BatStatus "Batteristatus [%.1f%%]" &lt;batterylevel&gt;     (gBattery, gMySensors) { 
    channel="mysensors:multimeter:MYS_gw1:MYS_Node10_Maint:battery" }
Number MYS_10_BatVoltage "Batterispänning [%.1f]" &lt;batterylevel&gt;     (gBattery, gMySensors) { 
    channel="mysensors:multimeter:MYS_gw1:MYS_Node10_Maint:volt" }
DateTime MYS_10_LastUpdate "Last update [%1$ta %1$tR]" &lt;time&gt;  (gLastUpdate, gMySensors) { 
    channel="mysensors:multimeter:MYS_gw1:MYS_Node10_Maint:lastupdate" }
</code></pre>
<p dir="auto">Is there a smarter or more efficient way of settings this up?</p>
]]></description><link>https://forum.mysensors.org/topic/9994/things-definition-vs-nodes-and-childids</link><generator>RSS for Node</generator><lastBuildDate>Mon, 15 Jun 2026 11:03:09 GMT</lastBuildDate><atom:link href="https://forum.mysensors.org/topic/9994.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 19 Dec 2018 19:59:24 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Things definition vs nodes and childIDs on Wed, 19 Dec 2018 20:28:51 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/fredswed" aria-label="Profile: fredswed">@<bdi>fredswed</bdi></a> Yes I'm testing that now. I think it's working. Auto discovery is nice.</p>
]]></description><link>https://forum.mysensors.org/post/95926</link><guid isPermaLink="true">https://forum.mysensors.org/post/95926</guid><dc:creator><![CDATA[Guillermo Schimmel]]></dc:creator><pubDate>Wed, 19 Dec 2018 20:28:51 GMT</pubDate></item><item><title><![CDATA[Reply to Things definition vs nodes and childIDs on Wed, 19 Dec 2018 20:27:40 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/guillermo-schimmel" aria-label="Profile: guillermo-schimmel">@<bdi>guillermo-schimmel</bdi></a> Thanks for your response - I would rather consider the node to be the single physical object that provides one or several capabilities (items). Much the same way the <a href="https://www.openhab.org/addons/bindings/hue/" rel="nofollow ugc">Hue</a>, <a href="https://www.openhab.org/addons/bindings/tradfri/" rel="nofollow ugc">Trådfri</a> or <a href="https://www.openhab.org/addons/bindings/bigassfan/" rel="nofollow ugc">BigAssFan</a> bindings do it.</p>
<p dir="auto">I currently use a ESP8266 gateway connected by WiFi. I've tried the MQTT connection but couldn't really see any real benefit. The downside was that it was really hard to troubleshoot in OpenHAB as I needed the old mqtt binding for other stuff. I noted that OH2.4 switched to the new Eclipse MQTT binding so I expect it to be easier to set up MySensors with MQTT in OH2.4 and later.</p>
]]></description><link>https://forum.mysensors.org/post/95925</link><guid isPermaLink="true">https://forum.mysensors.org/post/95925</guid><dc:creator><![CDATA[fredswed]]></dc:creator><pubDate>Wed, 19 Dec 2018 20:27:40 GMT</pubDate></item><item><title><![CDATA[Reply to Things definition vs nodes and childIDs on Wed, 19 Dec 2018 20:09:24 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/fredswed" aria-label="Profile: fredswed">@<bdi>fredswed</bdi></a> As far as I know, there isn't a better way. A thing is indeed a phisycal object, and a node groups several of them. :shrug:</p>
<p dir="auto">Can I ask you which kind of connection/gateway are you using? I'm strugling with the mqtt gateway and the binding.</p>
<p dir="auto">Thanks</p>
]]></description><link>https://forum.mysensors.org/post/95921</link><guid isPermaLink="true">https://forum.mysensors.org/post/95921</guid><dc:creator><![CDATA[Guillermo Schimmel]]></dc:creator><pubDate>Wed, 19 Dec 2018 20:09:24 GMT</pubDate></item></channel></rss>