# Read Summary of Mqtt Topics

**URL:** <https://discourse.nodered.org/t/read-summary-of-mqtt-topics/82331>\
**Category:** General\
**Created:** [25 October 2023 11:42 UTC](https://discourse.nodered.org/t/read-summary-of-mqtt-topics/82331 "2023-10-25T11:42:47Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Starfoxfs](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/starfoxfs/32/69119_2.png) [@Starfoxfs](https://discourse.nodered.org/u/Starfoxfs)\
**Post date:** [25 October 2023 11:42 UTC](https://discourse.nodered.org/t/read-summary-of-mqtt-topics/82331/1 "2023-10-25T11:42:47Z")

</div>

Hi,

is there a way to read the summary of all MQTT Topics in e.g. /AhoyDTU/HM1500/ ....

My Problem is from Shelly EM i get a complete Parsed JSON Objekt with all Data in it from SHELLY/SENSOR/.

Like this:

```auto
{
  "Time": "2023-10-25T12:30:32",
  "ENERGY": {
    "TotalStartTime": "2023-01-28T00:00:00",
    "Total": 411.604,
    "Yesterday": 0.103,
    "Today": 0.481,
    "TodaySumImport": 0.481,
    "TodaySumExport": 0,
    "ExportActive": [
      0,
      0
    ],
    "Period": [
      1,
      0
    ],
    "Power": [
      39,
      0
    ],
    "ApparentPower": [
      64,
      0
    ],
    "ReactivePower": [
      17,
      0
    ],
    "Factor": [
      0.6,
      0
    ],
    "Frequency": 50,
    "Voltage": 238,
    "Current": [
      0.24,
      0
    ]
  }
}

```

From my Hoymiles Inverter i have to configure every single Topic out, because the Ahoy-DTU unit i use has no Summary only Topics for each Data

e.g.

/AHOY/HOYMILES/ch0/YieldDay=500  
and so on ...

How can I read with NodeRed all Data in e.g. /AHOY/HOYMILES/

??

---

<div class="post-metadata">

**Author:** ![cymplecy](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/cymplecy/32/2773_2.png) [@cymplecy](https://discourse.nodered.org/u/cymplecy)\
**Post date:** [25 October 2023 11:48 UTC](https://discourse.nodered.org/t/read-summary-of-mqtt-topics/82331/2 "2023-10-25T11:48:59Z")

</div>

Do you know about using the # wildcard?

e.g if you subscribe to AHOY/HOYMILES/#  
you should get all messages

---

<div class="post-metadata">

**Author:** ![Starfoxfs](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/starfoxfs/32/69119_2.png) [@Starfoxfs](https://discourse.nodered.org/u/Starfoxfs)\
**Post date:** [25 October 2023 12:28 UTC](https://discourse.nodered.org/t/read-summary-of-mqtt-topics/82331/3 "2023-10-25T12:28:58Z")

</div>

Ah thanks, Big Big thanks 😃

---

<div class="post-metadata">

**Author:** ![Starfoxfs](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/starfoxfs/32/69119_2.png) [@Starfoxfs](https://discourse.nodered.org/u/Starfoxfs)\
**Post date:** [25 October 2023 16:39 UTC](https://discourse.nodered.org/t/read-summary-of-mqtt-topics/82331/4 "2023-10-25T16:39:23Z")

</div>

Ok, another problem 😃

Now I receive the various data as a number in around 12 data sets.

How can I now assign the topic to each individual data record and combine everything into a Json object at the end?

E.g.

{ YieldTotal: 500, YieldToday: 120, V\_AC: 220, ... }

---

<div class="post-metadata">

**Author:** ![cymplecy](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/cymplecy/32/2773_2.png) [@cymplecy](https://discourse.nodered.org/u/cymplecy)\
**Post date:** [25 October 2023 16:59 UTC](https://discourse.nodered.org/t/read-summary-of-mqtt-topics/82331/5 "2023-10-25T16:59:39Z")

</div>

Try using a join node set to manual  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/a/2/a2d0088e143e99b84fcafe503cfa097be7ef4de0.png)

This assumes all 12 data sets come in bursts - adjust the 10secs time to suit

---

<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:** [8 November 2023 16:59 UTC](https://discourse.nodered.org/t/read-summary-of-mqtt-topics/82331/6 "2023-11-08T16:59:47Z")

</div>

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