<?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[[SOLVED] Serial to MQTT conversion by Node-red]]></title><description><![CDATA[<p dir="auto">Hi<br />
I'm trying to connect my serial mysensors gateway to orange PC with domoticz<br />
Domoticz accept only USB-serial device, LAN and MQTT.<br />
Now I want to convert serial data to MQTT with node-red and use MQTT gateway in Domoticz</p>
<p dir="auto">My node red clipboard:<br />
<img src="https://cdn1.savepice.ru/uploads/2018/4/7/f5c9024a3bfc5119e84fd9c7a8d6470a-full.jpg" alt="alt text" class=" img-fluid img-markdown" /></p>
<p dir="auto">serial to mqtt code:</p>
<pre><code>var sensor = msg.payload.split(";");
msg.topic = "MySensors" + "/" + sensor[0] + "/" + sensor[1] + "/" + sensor[2] + "/" + sensor[3] + "/" + sensor[4];
msg.payload = sensor[5];
return msg;
</code></pre>
<p dir="auto">Output MQTT text when the gateway initializing:</p>
<pre><code>object
payload: "0 MCO:BGN:INIT GW,CP=RNNGA---,VER=2.2.0↵"
port: "/dev/ttyS1"
_msgid: "619c024c.85ed8c"
topic: "MySensors/0/255/3/0/9"
</code></pre>
<p dir="auto">other messages same like this</p>
<p dir="auto">Button node</p>
<pre><code>object
payload: "328523 TSF:MSG:READ,1-1-0,s=4,c=1,t=16,pt=1,l=1,sg=0:0↵"
port: "/dev/ttyS1"
_msgid: "11581f7a.7c16b1"
topic: "MySensors/0/255/3/0/9"

object
payload: "0↵"
port: "/dev/ttyS1"
_msgid: "782972d9.6e0e3c"
topic: "MySensors/1/4/1/0/16"
</code></pre>
<p dir="auto">But gateway receiving nothing<br />
Also serial gateway node not found</p>
<p dir="auto">What im doing wrong?</p>
]]></description><link>https://forum.mysensors.org/topic/9247/solved-serial-to-mqtt-conversion-by-node-red</link><generator>RSS for Node</generator><lastBuildDate>Wed, 16 Sep 2026 10:23:41 GMT</lastBuildDate><atom:link href="https://forum.mysensors.org/topic/9247.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 07 Apr 2018 18:02:34 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to [SOLVED] Serial to MQTT conversion by Node-red on Sun, 08 Apr 2018 15:24:32 GMT]]></title><description><![CDATA[<p dir="auto">Lol. I just forgot to change the topic in my code from "MySensors" to "domoticz/out/MyMQTT"<br />
Now working fine</p>
]]></description><link>https://forum.mysensors.org/post/88355</link><guid isPermaLink="true">https://forum.mysensors.org/post/88355</guid><dc:creator><![CDATA[Pavel Polititsky]]></dc:creator><pubDate>Sun, 08 Apr 2018 15:24:32 GMT</pubDate></item><item><title><![CDATA[Reply to [SOLVED] Serial to MQTT conversion by Node-red on Sat, 07 Apr 2018 18:47:47 GMT]]></title><description><![CDATA[<p dir="auto">I don't have an answer for your question but maybe my python script could help You:<br />
<a href="https://github.com/mczerski/MySensorsSerial2MQTT" rel="nofollow ugc">https://github.com/mczerski/MySensorsSerial2MQTT</a></p>
]]></description><link>https://forum.mysensors.org/post/88337</link><guid isPermaLink="true">https://forum.mysensors.org/post/88337</guid><dc:creator><![CDATA[rozpruwacz]]></dc:creator><pubDate>Sat, 07 Apr 2018 18:47:47 GMT</pubDate></item></channel></rss>