<?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[Subscribing to MQTT doesn&#x27;t work]]></title><description><![CDATA[<p dir="auto">Hi everyone</p>
<p dir="auto">I'm new to m5stacks and uiFlow and hope someone could help me.</p>
<p dir="auto">I want my m5stack to subscribe to the MQTT Topic of my smart mailbox and react somehow when a letter was delivered. I use Mosquitto as my broker which is an addon to Home Assistant.</p>
<p dir="auto">As a quick test I did the following in uiFlow. I want the RGB turn green when the payload "arrived" is picked up in the topic "mailbox/action".<br />
<img src="/assets/uploads/files/1589066140581-f6044632-8412-4901-aa74-1bfc3b52c881-image-resized.png" alt="0_1589066138399_f6044632-8412-4901-aa74-1bfc3b52c881-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">The publish part works fine, I can pick up the readings of the ENV Unit inside Home Assistant. What doesn't work is the subscribe part, i can't pick up anything with my m5stack. If i subscribe to to the topic inside Home Assistant to check it, it works.<br />
<img src="/assets/uploads/files/1589066215450-ccce12c5-c3d4-4b5f-aff5-4ac885359664-image-resized.png" alt="0_1589066213292_ccce12c5-c3d4-4b5f-aff5-4ac885359664-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">Thanks for letting me know if there is some error in the code or you know what else could be wrong.</p>
]]></description><link>https://community.m5stack.com/topic/1943/subscribing-to-mqtt-doesn-t-work</link><generator>RSS for Node</generator><lastBuildDate>Tue, 05 May 2026 01:44:46 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/1943.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 09 May 2020 23:17:30 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Subscribing to MQTT doesn&#x27;t work on Mon, 11 May 2020 20:22:49 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/lederschnautz" aria-label="Profile: lederschnautz">@<bdi>lederschnautz</bdi></a></p>
<p dir="auto">Great. Glad I could help.</p>
]]></description><link>https://community.m5stack.com/post/8634</link><guid isPermaLink="true">https://community.m5stack.com/post/8634</guid><dc:creator><![CDATA[world101]]></dc:creator><pubDate>Mon, 11 May 2020 20:22:49 GMT</pubDate></item><item><title><![CDATA[Reply to Subscribing to MQTT doesn&#x27;t work on Mon, 11 May 2020 20:19:30 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/world101" aria-label="Profile: world101">@<bdi>world101</bdi></a><br />
Thank you very much, that fixed it!!! Many many thanks.</p>
]]></description><link>https://community.m5stack.com/post/8633</link><guid isPermaLink="true">https://community.m5stack.com/post/8633</guid><dc:creator><![CDATA[lederschnautz]]></dc:creator><pubDate>Mon, 11 May 2020 20:19:30 GMT</pubDate></item><item><title><![CDATA[Reply to Subscribing to MQTT doesn&#x27;t work on Mon, 11 May 2020 01:10:15 GMT]]></title><description><![CDATA[<p dir="auto">Looking at your flow again, I don’t see the “mqtt start” block. Drag that into your flow just below the MQTT connection details and hopefully that fixes it.</p>
]]></description><link>https://community.m5stack.com/post/8621</link><guid isPermaLink="true">https://community.m5stack.com/post/8621</guid><dc:creator><![CDATA[world101]]></dc:creator><pubDate>Mon, 11 May 2020 01:10:15 GMT</pubDate></item><item><title><![CDATA[Reply to Subscribing to MQTT doesn&#x27;t work on Sun, 10 May 2020 17:53:55 GMT]]></title><description><![CDATA[<p dir="auto">I read some parts of this thread yesterday. ; ) I couldn't figure out whether the retain flag is set or not. But I tried it as well in the services tab where I set  "retain: false" and it sadly didn't change a thing.<br />
I thought that I probably have another problem, as most people in that thread only had problems with subscribing to multiple topics, no?</p>
]]></description><link>https://community.m5stack.com/post/8619</link><guid isPermaLink="true">https://community.m5stack.com/post/8619</guid><dc:creator><![CDATA[lederschnautz]]></dc:creator><pubDate>Sun, 10 May 2020 17:53:55 GMT</pubDate></item><item><title><![CDATA[Reply to Subscribing to MQTT doesn&#x27;t work on Sun, 10 May 2020 12:28:56 GMT]]></title><description><![CDATA[<p dir="auto">You can read through <a href="https://forum.m5stack.com/topic/1595/mqtt-subscribes-on-uiflow/17" target="_blank" rel="noopener noreferrer nofollow ugc">this thread</a> to see some limitations with M5Stack and MQTT.</p>
<p dir="auto">Do you know if HA Mosquitto adds the retain flag by default on publish?</p>
]]></description><link>https://community.m5stack.com/post/8613</link><guid isPermaLink="true">https://community.m5stack.com/post/8613</guid><dc:creator><![CDATA[world101]]></dc:creator><pubDate>Sun, 10 May 2020 12:28:56 GMT</pubDate></item><item><title><![CDATA[Reply to Subscribing to MQTT doesn&#x27;t work on Sun, 10 May 2020 12:12:59 GMT]]></title><description><![CDATA[<p dir="auto">Thanks.<br />
Yes, to test it I sent the payload via the publish feature inside HA. Of course, the goal would be, that the payload is sent by the esp32 in my mailbox (DFrobot Firebeetle). This is working fine, as I have other automations inside HA that react to the "arrived" payload.</p>
]]></description><link>https://community.m5stack.com/post/8612</link><guid isPermaLink="true">https://community.m5stack.com/post/8612</guid><dc:creator><![CDATA[lederschnautz]]></dc:creator><pubDate>Sun, 10 May 2020 12:12:59 GMT</pubDate></item><item><title><![CDATA[Reply to Subscribing to MQTT doesn&#x27;t work on Sun, 10 May 2020 11:17:46 GMT]]></title><description><![CDATA[<p dir="auto">What are you using to send the payload "arrived" to the mailbox/action topic?</p>
<p dir="auto">Edit: never mind, now I see you published with mosquito in the second pic. I’m running the same setup, so let me do a test.</p>
]]></description><link>https://community.m5stack.com/post/8610</link><guid isPermaLink="true">https://community.m5stack.com/post/8610</guid><dc:creator><![CDATA[world101]]></dc:creator><pubDate>Sun, 10 May 2020 11:17:46 GMT</pubDate></item></channel></rss>