November 7, 20232 yr Hi All, ๐ ย I need some help please โ I am using SA and have activated the MQTT feature with the Topic prefix asย "sunsynk", allowed "Allow setting changes" and entered credentials at the bottom. Saved and started MQTT. ย Im not using Home Assistant just yet, but still want to pull data via MQTT to a Node-Red instance I have that has some automation stuff. This is where I'm running into issues ๐คฆ๐ผโโ๏ธ When I add a MQTT node in Node-Red, configure it with the Solar Assistant MQTT details (IP address, MQTT port and credentials), give it the same "sunsynk" topic, connect it to a debug node and deploy it, I get absolutely no messages. But if I open up MQTT Explorer on my computer, connect to the Solar Assistant MQTT instance (same IP, port and credentials), I get ยฑ50 MQTT messages every second. ย How is it possible that I'm not seeing the messages on Node-Red, but I can see messages in the MQTT Explorer application on my computer?? ย Its probably something so small that I have over looked, but I have deleted and re-added the MQTT details of my Solar Assistant into Node-Red so many times... ย Any help would be absolutely welcomed! Thanks in advance everyone!!
November 9, 20232 yr Author I came right!! For anyone with the same issue as me, all I had to do was add a wild card (#) to the topic โ SunSynk/# โ and the messages are pouring in!! Got some help over at theย Node-Red forum
November 27, 20232 yr > I get ยฑ50 MQTT messages every Same high frequency experience here. Some topics are refreshed 1.6x per second (100x per minute) This is a bit too fast for my use case so I use a python script to compute the minute averages instead and store that into a PostgreSQL for analysis via Grafana, so all good. 1 sample per minute stored vs 100 per minute.
November 27, 20232 yr To subscribe to all subtopics in a topic, you generally append "#" or "+" after the last "/" of the main topic, for example "maintopic/#" or "maintopic/+". If you only want to subscribe to a certain subtopic, then use the name of the subtopic, for example "maintopic/subtopic".ย The paho-mqtt python client uses "+".
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.