# MQTT Messages not showing in Debug

**URL:** https://discourse.nodered.org/t/mqtt-messages-not-showing-in-debug/82737
**Category:** General
**Tags:** debugging, mqtt
**Created:** [9 November 2023 10:44 UTC](https://discourse.nodered.org/t/mqtt-messages-not-showing-in-debug/82737 "2023-11-09T10:44:43Z")
**Posts on this page:** 11
**Page:** 1

<div class="post-metadata">

### Author: ![finch6](https://avatars.discourse-cdn.com/v4/letter/f/9d8465/32.png) [@finch6](https://discourse.nodered.org/u/finch6)
#### Post date: [9 November 2023 10:44 UTC](https://discourse.nodered.org/t/mqtt-messages-not-showing-in-debug/82737/1 "2023-11-09T10:44:43Z")

</div>

Hi everyone.

Im using Solar Assistant the trying to get the MQTT messages published from Solar Assistant to run automations. Solar Assistant runs on a RasPi and MQTT is enabled.

I set up the IP:Port and credentials of the RasPI running Solar Assistant in Node-Red and added the same topic I did in Solar Assistant for messages to be published on.

When I add a debug node, I get absolutely no messages coming through ― but when I use the same IP:Port and credentials with MQTT Explorer, it picks up the ±50 messages every second that Solar Assistant is publishing.

Is there something I have missed? Does the MQTT/debug node "dumb down" the messages it receives? I changed the debug node to "complete message object" but still nothing coming through 🤷🏼‍♂️

Any idea or help would be welcomed. Thanks in advance everyone 👍🏼

Cheers,  
finch6

---

<div class="post-metadata">

### Author: ![Trying\_to\_learn](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trying_to_learn/32/28400_2.png) [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)
#### Post date: [9 November 2023 10:59 UTC](https://discourse.nodered.org/t/mqtt-messages-not-showing-in-debug/82737/2 "2023-11-09T10:59:35Z")

</div>

Maybe you need the `debug` to show the ENTIRE message.

By default it only shows the `payload`.

Just a thought.

---

<div class="post-metadata">

### Author: ![greengolfer](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/greengolfer/32/28276_2.png) [@greengolfer](https://discourse.nodered.org/u/greengolfer)
#### Post date: [9 November 2023 11:00 UTC](https://discourse.nodered.org/t/mqtt-messages-not-showing-in-debug/82737/3 "2023-11-09T11:00:20Z")

</div>

You may want to share your flow so that, potentially, we can help.  
At the moment, not knowing what you've done or not, it would be pure guesswork...  
I'd say that your MQTT in node is not configured correctly.

---

<div class="post-metadata">

### Author: ![finch6](https://avatars.discourse-cdn.com/v4/letter/f/9d8465/32.png) [@finch6](https://discourse.nodered.org/u/finch6)
#### Post date: [9 November 2023 11:09 UTC](https://discourse.nodered.org/t/mqtt-messages-not-showing-in-debug/82737/4 "2023-11-09T11:09:12Z")

</div>

Hi,

So sorry @greengolfer , here is the flow:

`[{"id":"efa51561913d9e8d","type":"tab","label":"Flow 1","disabled":false,"info":"","env":[]},{"id":"61fd90df65d35515","type":"mqtt in","z":"efa51561913d9e8d","name":"","topic":"SunSynk","qos":"2","datatype":"auto-detect","broker":"467af29fd2996206","nl":false,"rap":false,"rh":0,"inputs":0,"x":180,"y":220,"wires":[["3a0fc2088065372d"]]},{"id":"3a0fc2088065372d","type":"debug","z":"efa51561913d9e8d","name":"Debug","active":true,"tosidebar":true,"console":false,"tostatus":true,"complete":"true","targetType":"full","statusVal":"payload","statusType":"auto","x":690,"y":220,"wires":[]},{"id":"467af29fd2996206","type":"mqtt-broker","name":"Solar Assistant","broker":"192.168.0.15","port":"1883","clientid":"","autoConnect":true,"usetls":false,"protocolVersion":"4","keepalive":"60","cleansession":true,"autoUnsubscribe":true,"birthTopic":"","birthQos":"0","birthRetain":"false","birthPayload":"","birthMsg":{},"closeTopic":"","closeQos":"0","closeRetain":"false","closePayload":"","closeMsg":{},"willTopic":"","willQos":"0","willRetain":"false","willPayload":"","willMsg":{},"userProps":"","sessionExpiry":""}]`

 ![Screenshot 2023-11-09 at 13.03.40](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/f/f/fff139437295b7113096237e05b4e2ae41536cd0.png)

This was after being connected for about 10 seconds.

 ![Screenshot 2023-11-09 at 13.04.04](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/8/f/8f1389e971f8b7be389e08b83c327ba74b7f4b7b.png)

---

<div class="post-metadata">

### Author: ![finch6](https://avatars.discourse-cdn.com/v4/letter/f/9d8465/32.png) [@finch6](https://discourse.nodered.org/u/finch6)
#### Post date: [9 November 2023 11:14 UTC](https://discourse.nodered.org/t/mqtt-messages-not-showing-in-debug/82737/5 "2023-11-09T11:14:34Z")

</div>

Hi Andrew,

Thanks for the idea ― how do I do this exactly? I thought I had done this by selecting `complete msg object` instead of `msg.`?

 ![Screenshot 2023-11-09 at 13.13.57](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/0/9/09a21d43696490db0664909edde16b60e44854a8.png)

---

<div class="post-metadata">

### Author: ![jbudd](https://avatars.discourse-cdn.com/v4/letter/j/5f8ce5/32.png) [@jbudd](https://discourse.nodered.org/u/jbudd)
#### Post date: [9 November 2023 11:41 UTC](https://discourse.nodered.org/t/mqtt-messages-not-showing-in-debug/82737/6 "2023-11-09T11:41:19Z")

</div>

> [@finch6](#):
>
> I thought I had done this by selecting `complete msg object` instead of `msg.`?

Yes, that's right.

> [@finch6](#):
>
> Solar Assistant runs on a RasPi and MQTT is enabled.

Your mqtt-in node seems to have the right server IP address - 192.168.0.15.  
Check on the security tag that you have the right username and password setup. (if not the status below the node in your flow will not say "Connected".)  
You have the topic set to "SunSync" - is that the full topic that you are publishing to, rather than eg "SunSync/something" or "something/SunSync"?

Edit: I just noticed your third picture.  
Try changing the topic to SunSync/# (# is an mqtt wildcard)

What MQTT broker do you have?

---

<div class="post-metadata">

### Author: ![finch6](https://avatars.discourse-cdn.com/v4/letter/f/9d8465/32.png) [@finch6](https://discourse.nodered.org/u/finch6)
#### Post date: [9 November 2023 11:52 UTC](https://discourse.nodered.org/t/mqtt-messages-not-showing-in-debug/82737/7 "2023-11-09T11:52:26Z")

</div>

Adding the wildcard worked like a charm!!!

Messages galore now!!! 😁😁😁

Thanks so much @jbudd!! Wooohooo!!!

---

<div class="post-metadata">

### Author: ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)
#### Post date: [9 November 2023 13:25 UTC](https://discourse.nodered.org/t/mqtt-messages-not-showing-in-debug/82737/8 "2023-11-09T13:25:26Z")

</div>

If you want to learn more about MQTT then see this tutorial [MQTT Essentials - All Core Concepts Explained](https://www.hivemq.com/mqtt-essentials/)

---

<div class="post-metadata">

### Author: ![finch6](https://avatars.discourse-cdn.com/v4/letter/f/9d8465/32.png) [@finch6](https://discourse.nodered.org/u/finch6)
#### Post date: [9 November 2023 14:01 UTC](https://discourse.nodered.org/t/mqtt-messages-not-showing-in-debug/82737/9 "2023-11-09T14:01:01Z")

</div>

Thanks @zenofmud, I'll brush up on my MQTT knowledge 😁

---

<div class="post-metadata">

### Author: ![Trying\_to\_learn](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trying_to_learn/32/28400_2.png) [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)
#### Post date: [10 November 2023 07:55 UTC](https://discourse.nodered.org/t/mqtt-messages-not-showing-in-debug/82737/10 "2023-11-10T07:55:24Z")

</div>

Good to hear all is working.

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)
#### Post date: [9 January 2024 07:55 UTC](https://discourse.nodered.org/t/mqtt-messages-not-showing-in-debug/82737/11 "2024-01-09T07:55:41Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
