Skip to content
View in the app

A better way to browse. Learn more.

Power Forum - Renewable Energy Discussion

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (โ‹ฎ) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Solar Assistants MQTT Topic

Featured Replies

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!!

  • 3 weeks later...

> 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.

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.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions โ†’ Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.