# Is it possible to show the connected status icon of an MQTT Broker within a subflow to be available on the subflow node?

**URL:** <https://discourse.nodered.org/t/is-it-possible-to-show-the-connected-status-icon-of-an-mqtt-broker-within-a-subflow-to-be-available-on-the-subflow-node/61913>\
**Category:** General\
**Created:** [28 April 2022 08:37 UTC](https://discourse.nodered.org/t/is-it-possible-to-show-the-connected-status-icon-of-an-mqtt-broker-within-a-subflow-to-be-available-on-the-subflow-node/61913 "2022-04-28T08:37:45Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shan](https://avatars.discourse-cdn.com/v4/letter/s/7ab992/32.png) [@Shan](https://discourse.nodered.org/u/Shan)\
**Post date:** [28 April 2022 08:37 UTC](https://discourse.nodered.org/t/is-it-possible-to-show-the-connected-status-icon-of-an-mqtt-broker-within-a-subflow-to-be-available-on-the-subflow-node/61913/1 "2022-04-28T08:37:45Z")

</div>

I have packed an `mqtt in` into a subflow and made it available to my container via the `/data/flows.json`

This makes the subflow nodes available in the node-palette upon boot up.

An example flow with the subflow node is:

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/d/d/dd0b6de0488d21db51df84e337647541576dca10.png)

the `external mqtt in` node has the following subflow template  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/0/b/0b73a08da713470311a5146e5a31823756f6ecff.png)

It is just an `mqtt in` node configured to a fixed address and port.

I wish to get the `connected` status icon on the my `external mqtt in` "node", one similar to

![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/f/6/f6e47b91723b9f2fd23ab77b1627dc7cedcda924.png)

The only thing I can see under my node even through adding `status` node in the subflow template is payload

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/c/7/c7183f3011f53eeb3b8d416a72ed6b5e587d2fec.png)

Would this be possible to achieve with a subflow template?

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [28 April 2022 08:59 UTC](https://discourse.nodered.org/t/is-it-possible-to-show-the-connected-status-icon-of-an-mqtt-broker-within-a-subflow-to-be-available-on-the-subflow-node/61913/2 "2022-04-28T08:59:10Z")

</div>

- Enable status
- add a status node & point it at an MQTT node
- wire the status node to status connector

NOTE: _You might need to re-arrange the value out of the status node_

![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/2/4/249bed9daee1ccb0d0c094b89b4462da0ff0b6e4.png)

---

<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:** [12 May 2022 09:00 UTC](https://discourse.nodered.org/t/is-it-possible-to-show-the-connected-status-icon-of-an-mqtt-broker-within-a-subflow-to-be-available-on-the-subflow-node/61913/3 "2022-05-12T09:00:02Z")

</div>

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