<?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[Best Way to check Status of MySensors Sleeping Node]]></title><description><![CDATA[<p dir="auto">Hi,<br />
I have a MySensors Temperature/Humidity Sleeping Node.<br />
When start, it send Temerature/Humidity values, then sleep for XXX seconds, wake up , send values and sleep....<br />
The XXX seconds is a config var in my node and sended to controller at start.</p>
<p dir="auto">Sometimes for many reasons (interference, xxxx...), my node send data but mycontroller don't receive....<br />
I would like to check this...when after XXX seconds, no data from my node is receive....</p>
<p dir="auto">How can I do this ?<br />
Actually I use this condition script :  (with Script bindings : <code>{"sbNodeEUI":1}</code> )</p>
<pre><code>var myImports = new JavaImporter(java.util, java.util.Calendar, java.lang, java.text);

with(myImports) {

nodesFilters = new HashMap();  
nodesFilters.put("eui", sbNodeEUI);
node = mcApi.node().getAll(nodesFilters).data[0];

sensorsFilters = new HashMap(); 
sensorsFilters.put("nodeId", node.id);
sensorsFilters.put("sensorId", "1");
refreshTime = Long.parseLong(mcApi.sensor().getAll(sensorsFilters).data[0].getVariables()[1].value);
// LastSeen + SleepDuration + Gap
var estimedTime = Long.parseLong(node.lastSeen) + (refreshTime*1000) + 20000;
var currentTime = Calendar.getInstance().getTime().getTime();

mcResult = currentTime &gt; estimedTime;
}
</code></pre>
<p dir="auto">Is there a best way ?<br />
With "status" of node ? But what's the mycontroller condition that set this status to down?</p>
<p dir="auto">Thanks</p>
]]></description><link>http://forum.mycontroller.org/topic/109/best-way-to-check-status-of-mysensors-sleeping-node</link><generator>RSS for Node</generator><lastBuildDate>Wed, 11 Nov 2026 21:42:24 GMT</lastBuildDate><atom:link href="http://forum.mycontroller.org/topic/109.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 19 Jan 2017 10:19:46 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Best Way to check Status of MySensors Sleeping Node on Mon, 20 Nov 2017 21:13:44 GMT]]></title><description><![CDATA[<p dir="auto">Thanks!!!</p>
]]></description><link>http://forum.mycontroller.org/post/1386</link><guid isPermaLink="true">http://forum.mycontroller.org/post/1386</guid><dc:creator><![CDATA[Daniele]]></dc:creator><pubDate>Mon, 20 Nov 2017 21:13:44 GMT</pubDate></item><item><title><![CDATA[Reply to Best Way to check Status of MySensors Sleeping Node on Mon, 20 Nov 2017 02:51:11 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/daniele" aria-label="Profile: daniele">@<bdi>daniele</bdi></a> for another properties,</p>
<pre><code>{"hbTx":1511115957097, "aliveCheckInterval": 5}
</code></pre>
]]></description><link>http://forum.mycontroller.org/post/1373</link><guid isPermaLink="true">http://forum.mycontroller.org/post/1373</guid><dc:creator><![CDATA[jkandasa]]></dc:creator><pubDate>Mon, 20 Nov 2017 02:51:11 GMT</pubDate></item><item><title><![CDATA[Reply to Best Way to check Status of MySensors Sleeping Node on Sun, 19 Nov 2017 18:58:40 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/jkandasa" aria-label="Profile: jkandasa">@<bdi>jkandasa</bdi></a> I'd like to implement this check on one of my nodes, but in its properties I automatically found:</p>
<p dir="auto">{"hbTx":1511115957097}</p>
<p dir="auto">What's the syntax to add another property to the node?</p>
]]></description><link>http://forum.mycontroller.org/post/1372</link><guid isPermaLink="true">http://forum.mycontroller.org/post/1372</guid><dc:creator><![CDATA[Daniele]]></dc:creator><pubDate>Sun, 19 Nov 2017 18:58:40 GMT</pubDate></item><item><title><![CDATA[Reply to Best Way to check Status of MySensors Sleeping Node on Fri, 20 Jan 2017 14:32:22 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/jkandasa" aria-label="Profile: jkandasa">@<bdi>jkandasa</bdi></a> Ohhh wonderfull !<br />
You are incredible !!</p>
<p dir="auto">Many Thanks !  I will test this when I have time<br />
Tanks  !!!</p>
]]></description><link>http://forum.mycontroller.org/post/576</link><guid isPermaLink="true">http://forum.mycontroller.org/post/576</guid><dc:creator><![CDATA[Tetnobic]]></dc:creator><pubDate>Fri, 20 Jan 2017 14:32:22 GMT</pubDate></item><item><title><![CDATA[Reply to Best Way to check Status of MySensors Sleeping Node on Fri, 20 Jan 2017 10:18:17 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/tetnobic" aria-label="Profile: Tetnobic">@<bdi>Tetnobic</bdi></a> Good news <img src="http://forum.mycontroller.org/assets/plugins/nodebb-plugin-emoji/emoji/android/1f642.png?v=2ce0f5c73bf" class="not-responsive emoji emoji-android emoji--slightly_smiling_face" style="height:23px;width:auto;vertical-align:middle" title=":)" alt="🙂" /></p>
<p dir="auto">I have updated this request on <a href="https://github.com/mycontroller-org/mycontroller/commit/c6cfe4e56bafb7f1bc59e745f13672191ad2e8a6" rel="nofollow ugc">https://github.com/mycontroller-org/mycontroller/commit/c6cfe4e56bafb7f1bc59e745f13672191ad2e8a6</a></p>
<p dir="auto">You can test this on <a href="http://forum.mycontroller.org/topic/58/download-snapshot-build">SNAPSHOT</a> version.</p>
<p dir="auto">Currently, Minimum time should be 5 minutes. As check will happens only 5 minutes once.</p>
<p dir="auto">You have to include the following property on <code>Node</code> properties to override global <code>aliveCheckInterval</code></p>
<pre><code>"aliveCheckInterval": 5
</code></pre>
<p dir="auto"><strong>Note:</strong> Should be an integer. Values are in the minute.</p>
<p dir="auto"><img src="/uploads/files/1484907437384-upload-acee65a9-564f-4398-a46a-03f8a591b381" alt="0_1484907436094_upload-acee65a9-564f-4398-a46a-03f8a591b381" class=" img-fluid img-markdown" /></p>
]]></description><link>http://forum.mycontroller.org/post/574</link><guid isPermaLink="true">http://forum.mycontroller.org/post/574</guid><dc:creator><![CDATA[jkandasa]]></dc:creator><pubDate>Fri, 20 Jan 2017 10:18:17 GMT</pubDate></item><item><title><![CDATA[Reply to Best Way to check Status of MySensors Sleeping Node on Fri, 20 Jan 2017 08:52:24 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/jkandasa" aria-label="Profile: jkandasa">@<bdi>jkandasa</bdi></a><br />
No problem, I understand that this is really a specific request<br />
I will continue to use my script, it works</p>
<p dir="auto">Thanks for your response</p>
]]></description><link>http://forum.mycontroller.org/post/573</link><guid isPermaLink="true">http://forum.mycontroller.org/post/573</guid><dc:creator><![CDATA[Tetnobic]]></dc:creator><pubDate>Fri, 20 Jan 2017 08:52:24 GMT</pubDate></item><item><title><![CDATA[Reply to Best Way to check Status of MySensors Sleeping Node on Thu, 19 Jan 2017 16:12:56 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/tetnobic" aria-label="Profile: Tetnobic">@<bdi>Tetnobic</bdi></a> I will how complicated to check each node. If possible I will implement. But I cannot guarantee!</p>
]]></description><link>http://forum.mycontroller.org/post/572</link><guid isPermaLink="true">http://forum.mycontroller.org/post/572</guid><dc:creator><![CDATA[jkandasa]]></dc:creator><pubDate>Thu, 19 Jan 2017 16:12:56 GMT</pubDate></item><item><title><![CDATA[Reply to Best Way to check Status of MySensors Sleeping Node on Thu, 19 Jan 2017 13:20:30 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/jkandasa" aria-label="Profile: jkandasa">@<bdi>jkandasa</bdi></a><br />
Thanks for your response <img src="http://forum.mycontroller.org/assets/plugins/nodebb-plugin-emoji/emoji/android/1f609.png?v=2ce0f5c73bf" class="not-responsive emoji emoji-android emoji--wink" style="height:23px;width:auto;vertical-align:middle" title=";)" alt="😉" /><br />
I see this <code>Nodes alive check interval</code> settings but it's for "all the nodes", is there a way to configure this by node ? because I have several nodes that do not sleep the same duration, some 5 minutes, some 1 hour,....<br />
And even more, the duration of sleep can be dynamic (for exemple every 5 minutes during daylight, 1 hour during nights...)<br />
I know it is a bit complicated <img src="http://forum.mycontroller.org/assets/plugins/nodebb-plugin-emoji/emoji/android/1f642.png?v=2ce0f5c73bf" class="not-responsive emoji emoji-android emoji--slightly_smiling_face" style="height:23px;width:auto;vertical-align:middle" title=":)" alt="🙂" /></p>
]]></description><link>http://forum.mycontroller.org/post/571</link><guid isPermaLink="true">http://forum.mycontroller.org/post/571</guid><dc:creator><![CDATA[Tetnobic]]></dc:creator><pubDate>Thu, 19 Jan 2017 13:20:30 GMT</pubDate></item><item><title><![CDATA[Reply to Best Way to check Status of MySensors Sleeping Node on Thu, 19 Jan 2017 11:32:51 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/tetnobic" aria-label="Profile: Tetnobic">@<bdi>Tetnobic</bdi></a> I hope you are with SNAPSHOT version.</p>
<p dir="auto">You can change <code>Nodes alive check interval</code> on Settings &gt;&gt; System. By default, it is 30 minutes. We can change it. If there was no data for last 30 minutes, that node will be marked as <code>DOWN</code><br />
<strong>Note:</strong> This check will happen for all the nodes.<br />
<img src="/uploads/files/1484825484656-node-alive0check.png" alt="0_1484825482750_node-alive0check.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">And you can setup a rule for your node to send notifications/actions.<br />
<img src="/uploads/files/1484825525176-rule.png" alt="0_1484825523477_rule.png" class=" img-fluid img-markdown" /></p>
]]></description><link>http://forum.mycontroller.org/post/570</link><guid isPermaLink="true">http://forum.mycontroller.org/post/570</guid><dc:creator><![CDATA[jkandasa]]></dc:creator><pubDate>Thu, 19 Jan 2017 11:32:51 GMT</pubDate></item></channel></rss>