<?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[Messages list without ack]]></title><description><![CDATA[<p dir="auto">Hello,<br />
how can reset the list of messages pending receive ack in the gateway from the node?</p>
<p dir="auto">regards</p>
]]></description><link>https://forum.mysensors.org/topic/11569/messages-list-without-ack</link><generator>RSS for Node</generator><lastBuildDate>Wed, 18 Nov 2026 14:53:47 GMT</lastBuildDate><atom:link href="https://forum.mysensors.org/topic/11569.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 10 Feb 2021 13:44:53 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Messages list without ack on Mon, 15 Feb 2021 11:24:32 GMT]]></title><description><![CDATA[<p dir="auto">In sketch definitions:<br />
...<br />
MyMessage msg1valve(CHILD_ID_IRRIGATION_SYSTEM, V_LIGHT);<br />
MyMessage var1valve(CHILD_ID_IRRIGATION_SYSTEM, V_VAR1);<br />
MyMessage var2valve(CHILD_ID_IRRIGATION_SYSTEM, V_VAR2);<br />
MyMessage var3valve(CHILD_ID_IRRIGATION_SYSTEM, V_TEXT);<br />
..<br />
in sketch receive function:<br />
...<br />
if (message.type == V_LIGHT)<br />
{<br />
...<br />
}<br />
else if (message.type == V_VAR1)<br />
{<br />
int variable1 = atoi(message.data);// RUN_ALL_ZONES time<br />
DEBUG_PRINT(F("Recibida V_VAR1 de la válvula:"));<br />
DEBUG_PRINT(i);<br />
DEBUG_PRINT(F(" = "));<br />
DEBUG_PRINTLN(variable1);<br />
if (variable1 != allZoneTime[i]) // es un valor diferente del que había anteriormente<br />
{<br />
allZoneTime[i] = variable1;<br />
zoneTimeUpdate = true;</p>
<pre><code>      //enviar valor al contrtolador
      send(var1valve.setSensor(i).set(variable1), false);
    }
    receivedInitialValue = true;
  }
  else if (message.type == V_VAR2)
  {
    int variable2 = atoi(message.data);// RUN_SINGLE_ZONE time
    DEBUG_PRINT(F("Recibida V_VAR2 de la válvula:"));
    DEBUG_PRINT(i);
    DEBUG_PRINT(F(" = "));
    DEBUG_PRINTLN(variable2);
    if (variable2 != valveSoloTime[i]) // es un valor diferente del que había anteriormente
    {
      valveSoloTime[i] = variable2;
      zoneTimeUpdate = true;
      //enviar valor al contrtolador
      send(var2valve.setSensor(i).set(variable2), false);
    }
    receivedInitialValue = true;
  }
  else if (message.type == V_TEXT)
  {
    String newMessage = String(message.data);
    if (newMessage.length() == 0)
    {
      DEBUG_PRINT(F("No se ha recibido NOMBRE (V_TEXT) para la zona "));
      DEBUG_PRINTLN(i);
      break;
    }
    if (newMessage.length() &gt; 16)
    {
      newMessage.substring(0, 16);
    }
    valveNickName[i] = "";
    valveNickName[i] += newMessage;
    String val = String(valveNickName[i]);
    DEBUG_PRINT(F("Recibida V_TEXT de la válvula: "));
    DEBUG_PRINT(i);
    DEBUG_PRINT(F(" = "));
    DEBUG_PRINTLN(valveNickName[i]);
  }
  receivedInitialValue = true;
}
</code></pre>
<p dir="auto">...</p>
<p dir="auto">In domoticz:</p>
<p dir="auto">each scene for each valve who on action:<br />
script://exec.sh irrigation_single_zone 10 1 0 5 "Zona 1"</p>
<p dir="auto">in /domoticz/scripts/exec.sh:</p>
<p dir="auto">#!/bin/sh<br />
case $1 in<br />
irrigation_single_zone)<br />
python /home/pi/domoticz/scripts/python/send_vars_to_irrigation_system.py --nodo_id=$2 --child_id=$3 --time_all_zones=$4 --time_single_zone=$5 --n$<br />
exit 0<br />
;;<br />
irrigation_all_zones)<br />
python /home/pi/domoticz/scripts/python/send_vars_to_irrigation_system.py --nodo_id=$2 --child_id=1 --time_all_zones=$3  &gt;/dev/null 2&gt;&amp;1 &amp;<br />
python /home/pi/domoticz/scripts/python/send_vars_to_irrigation_system.py --nodo_id=$2 --child_id=2 --time_all_zones=$3  &gt;/dev/null 2&gt;&amp;1 &amp;<br />
python /home/pi/domoticz/scripts/python/send_vars_to_irrigation_system.py --nodo_id=$2 --child_id=3 --time_all_zones=$3  &gt;/dev/null 2&gt;&amp;1 &amp;<br />
python /home/pi/domoticz/scripts/python/send_vars_to_irrigation_system.py --nodo_id=$2 --child_id=4 --time_all_zones=$3  &gt;/dev/null 2&gt;&amp;1 &amp;<br />
python /home/pi/domoticz/scripts/python/send_vars_to_irrigation_system.py --nodo_id=$2 --child_id=5 --time_all_zones=$3  &gt;/dev/null 2&gt;&amp;1 &amp;<br />
python /home/pi/domoticz/scripts/python/send_vars_to_irrigation_system.py --nodo_id=$2 --child_id=6 --time_all_zones=$3  &gt;/dev/null 2&gt;&amp;1 &amp;<br />
python /home/pi/domoticz/scripts/python/send_vars_to_irrigation_system.py --nodo_id=$2 --child_id=7 --time_all_zones=$3  &gt;/dev/null 2&gt;&amp;1 &amp;<br />
python /home/pi/domoticz/scripts/python/send_vars_to_irrigation_system.py --nodo_id=$2 --child_id=8 --time_all_zones=$3  &gt;/dev/null 2&gt;&amp;1 &amp;<br />
exit 0<br />
;;<br />
esac</p>
<p dir="auto">/domoticz/scripts/python/send_vars_to_irrigation_system.py:<br />
#!/usr/bin/python3</p>
<p dir="auto">import socket<br />
from time import sleep<br />
import sys<br />
import argparse<br />
#import DomoticzEvents as DE</p>
<p dir="auto">def gwsend(args):</p>
<p dir="auto">nodoID = str.encode(str(args.nodo_id))<br />
childID = str.encode(str(args.child_id))<br />
timeAllZones = str.encode(str(args.time_all_zones))<br />
timeSingleZone = str.encode(str(args.time_single_zone))<br />
nameZone = args.name_zone<br />
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)<br />
s.connect(("127.0.0.1", 5003))<br />
sleep(3)</p>
<p dir="auto">#estructura del mensaje<br />
#99: Node ID<br />
#1: ChildId<br />
#1: command (Set in this case)<br />
#0: ACK (None in this case)<br />
#47: V_TYPE (V_TEXT in this case), 24-25-26 V_VAR1-2-3</p>
<p dir="auto">#enviar tiempo duracion en modo All Zones (V_VAR1 -&gt; value 24)<br />
if timeAllZones != "None":<br />
s.sendall(b"" + nodoID + ";" + childID + ";1;0;24;" + timeAllZones + b"\n")<br />
sleep(3)<br />
#enviar tiempo de duracion en modo Single zone(V_VAR2 -&gt; value 25)<br />
if timeSingleZone != "None":<br />
s.sendall(b"" + nodoID + ";" + childID + ";1;0;25;" + timeSingleZone + b"\n")<br />
sleep(3)<br />
#enviar nombre de zona (V_VAR3 -&gt; value 26)<br />
if nameZone is not None:<br />
s.sendall(b"" + nodoID + ";" + childID + ";1;0;47;" + nameZone + b"\n")<br />
sleep(3)</p>
<p dir="auto">s.shutdown(socket.SHUT_WR)<br />
s.close()<br />
def main():</p>
<p dir="auto">my_parser = argparse.ArgumentParser(prog='send_vars_to_irrigation_system',<br />
usage='%(prog)s --nodo_id=NODO_ID --child_id=VALVULA_ID, [--time_all_zones=TIME_EN_MODO_TODAS] [--time_single_zone$<br />
description='Envio de parametros de cada zona al sistema de riego')<br />
my_parser.version = '1.0'</p>
<p dir="auto">my_parser.add_argument('--nodo_id',<br />
type=int,<br />
action='store',<br />
required=True,<br />
help='ID del nodo Sistema de Riego')<br />
my_parser.add_argument('--child_id',<br />
type=int,<br />
action='store',<br />
required=True,<br />
help='ID de la valvula')<br />
my_parser.add_argument('--time_all_zones',<br />
type=int,<br />
action='store',<br />
required=False,<br />
help='Duracion en modo Todas las zonas')<br />
my_parser.add_argument('--time_single_zone',<br />
type=int,<br />
action='store',<br />
required=False,<br />
help='Duracion en modo Solo esta zona')<br />
my_parser.add_argument('--name_zone',<br />
type=str,<br />
action='store',<br />
required=False,<br />
help='Nombre de la zona')</p>
<p dir="auto">args = my_parser.parse_args()</p>
<p dir="auto">gwsend(args)</p>
<p dir="auto">if <strong>name</strong> == '<strong>main</strong>':<br />
main()</p>
]]></description><link>https://forum.mysensors.org/post/109170</link><guid isPermaLink="true">https://forum.mysensors.org/post/109170</guid><dc:creator><![CDATA[tropicaxarquia]]></dc:creator><pubDate>Mon, 15 Feb 2021 11:24:32 GMT</pubDate></item><item><title><![CDATA[Reply to Messages list without ack on Fri, 12 Feb 2021 19:19:03 GMT]]></title><description><![CDATA[<p dir="auto">Nice work <a class="plugin-mentions-user plugin-mentions-a" href="/user/tropicaxarquia" aria-label="Profile: tropicaxarquia">@<bdi>tropicaxarquia</bdi></a></p>
<p dir="auto">Could you share how you resolved it, in case someone else finds themselves in a similar situation?</p>
]]></description><link>https://forum.mysensors.org/post/109147</link><guid isPermaLink="true">https://forum.mysensors.org/post/109147</guid><dc:creator><![CDATA[mfalkvidd]]></dc:creator><pubDate>Fri, 12 Feb 2021 19:19:03 GMT</pubDate></item><item><title><![CDATA[Reply to Messages list without ack on Fri, 12 Feb 2021 18:43:04 GMT]]></title><description><![CDATA[<p dir="auto">Resuelto.</p>
<p dir="auto">Tanks</p>
]]></description><link>https://forum.mysensors.org/post/109146</link><guid isPermaLink="true">https://forum.mysensors.org/post/109146</guid><dc:creator><![CDATA[tropicaxarquia]]></dc:creator><pubDate>Fri, 12 Feb 2021 18:43:04 GMT</pubDate></item><item><title><![CDATA[Reply to Messages list without ack on Wed, 10 Feb 2021 19:39:50 GMT]]></title><description><![CDATA[<p dir="auto">This occurs when from python: s.sendall(b"" + nodoID + ";" + childID + ";1;1;26;" + timeAllZones + b"\n").<br />
When i changed the ACK from 1 to 0 in the message structure this has stopped happening. but all messages sent with ack to 1 are automatically forwarded again and again...</p>
]]></description><link>https://forum.mysensors.org/post/109121</link><guid isPermaLink="true">https://forum.mysensors.org/post/109121</guid><dc:creator><![CDATA[tropicaxarquia]]></dc:creator><pubDate>Wed, 10 Feb 2021 19:39:50 GMT</pubDate></item><item><title><![CDATA[Reply to Messages list without ack on Wed, 10 Feb 2021 19:17:34 GMT]]></title><description><![CDATA[<p dir="auto">I am using in node 10 the sketch of the irrigation example</p>
]]></description><link>https://forum.mysensors.org/post/109120</link><guid isPermaLink="true">https://forum.mysensors.org/post/109120</guid><dc:creator><![CDATA[tropicaxarquia]]></dc:creator><pubDate>Wed, 10 Feb 2021 19:17:34 GMT</pubDate></item><item><title><![CDATA[Reply to Messages list without ack on Wed, 10 Feb 2021 19:15:18 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/mfalkvidd" aria-label="Profile: mfalkvidd">@<bdi>mfalkvidd</bdi></a> I have stopped the domoticz service and the mysensors log sends these messages every minute: DEBUG TSF: MSG: READ, 10-10-0, s = 3, c = 2, t = 26, pt = 0, l = 0, sg = 0.</p>
<p dir="auto">It is MySensors who sends a READ request to the nodes and when domoticz is up, they respond but if it is not up, the nodes do not respond???</p>
]]></description><link>https://forum.mysensors.org/post/109119</link><guid isPermaLink="true">https://forum.mysensors.org/post/109119</guid><dc:creator><![CDATA[tropicaxarquia]]></dc:creator><pubDate>Wed, 10 Feb 2021 19:15:18 GMT</pubDate></item><item><title><![CDATA[Reply to Messages list without ack on Wed, 10 Feb 2021 18:46:48 GMT]]></title><description><![CDATA[<p dir="auto">Maybe restarting Domoticz helps? I have never tried sending messages from Domoticz.</p>
]]></description><link>https://forum.mysensors.org/post/109118</link><guid isPermaLink="true">https://forum.mysensors.org/post/109118</guid><dc:creator><![CDATA[mfalkvidd]]></dc:creator><pubDate>Wed, 10 Feb 2021 18:46:48 GMT</pubDate></item><item><title><![CDATA[Reply to Messages list without ack on Wed, 10 Feb 2021 18:40:01 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/tropicaxarquia" aria-label="Profile: tropicaxarquia">@<bdi>tropicaxarquia</bdi></a> the list must be in Domoticz. The gateway has no list.</p>
]]></description><link>https://forum.mysensors.org/post/109117</link><guid isPermaLink="true">https://forum.mysensors.org/post/109117</guid><dc:creator><![CDATA[mfalkvidd]]></dc:creator><pubDate>Wed, 10 Feb 2021 18:40:01 GMT</pubDate></item><item><title><![CDATA[Reply to Messages list without ack on Wed, 10 Feb 2021 18:28:52 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/mfalkvidd" aria-label="Profile: mfalkvidd">@<bdi>mfalkvidd</bdi></a> it's very strange. Some messages that I had sent from a Domoticz python sketch sent V_VAR24-25-26 and they have worked, but in the sending I put 1 in ack instead of 0 and the arduino sckets did not manage the ack and therefore they have stayed in some queue and sends them constantly (every so often the same message over and over again from the gateway). If I send another message modifying V_VAR26 to the same node, it works, but after a short time the gateway sends the original message again (the one that had ack in its format).</p>
<p dir="auto">this has me crazy!!!!</p>
]]></description><link>https://forum.mysensors.org/post/109116</link><guid isPermaLink="true">https://forum.mysensors.org/post/109116</guid><dc:creator><![CDATA[tropicaxarquia]]></dc:creator><pubDate>Wed, 10 Feb 2021 18:28:52 GMT</pubDate></item><item><title><![CDATA[Reply to Messages list without ack on Wed, 10 Feb 2021 18:17:25 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/tropicaxarquia" aria-label="Profile: tropicaxarquia">@<bdi>tropicaxarquia</bdi></a> there is no such list</p>
]]></description><link>https://forum.mysensors.org/post/109115</link><guid isPermaLink="true">https://forum.mysensors.org/post/109115</guid><dc:creator><![CDATA[mfalkvidd]]></dc:creator><pubDate>Wed, 10 Feb 2021 18:17:25 GMT</pubDate></item></channel></rss>