# Trigger Node Status

**URL:** <https://discourse.nodered.org/t/trigger-node-status/73081>\
**Category:** General\
**Created:** [2 January 2023 21:54 UTC](https://discourse.nodered.org/t/trigger-node-status/73081 "2023-01-02T21:54:45Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![fvfrenzy](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/fvfrenzy/32/73650_2.png) [@fvfrenzy](https://discourse.nodered.org/u/fvfrenzy)\
**Post date:** [2 January 2023 21:54 UTC](https://discourse.nodered.org/t/trigger-node-status/73081/1 "2023-01-02T21:54:45Z")

</div>

Is it possible to check the status of the 'Trigger' node? It goes active after it receives a message, which is evident in the flow with a blue dot under the node. I would like to setup a dashboard view that indicates if a 'Trigger' node is active.

---

<div class="post-metadata">

**Author:** ![E1cid](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/e1cid/32/77971_2.png) [@E1cid](https://discourse.nodered.org/u/E1cid)\
**Post date:** [2 January 2023 22:04 UTC](https://discourse.nodered.org/t/trigger-node-status/73081/2 "2023-01-02T22:04:54Z")

</div>

Have you had a go with the status node to see what messages are sent to status.

 ![chrome_screenshot_1672696973175](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/2/8/285f42a0039e886a2a77f6556d92ac7c42de334a.png)

---

<div class="post-metadata">

**Author:** ![fvfrenzy](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/fvfrenzy/32/73650_2.png) [@fvfrenzy](https://discourse.nodered.org/u/fvfrenzy)\
**Post date:** [2 January 2023 22:10 UTC](https://discourse.nodered.org/t/trigger-node-status/73081/4 "2023-01-02T22:10:05Z")

</div>

I havent, but i have the trigger setup to extend the delay whiles new messages are coming in. using it as a heartbeat. so long as messages arrive from mqtt, its live, if messages stop after x period of time, the trigger sends a message to an email node that sends me a message.

based on the flow you posted, the status would be after the trigger, and nothing is output from the trigger until the delay time elapses.

---

<div class="post-metadata">

**Author:** ![fvfrenzy](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/fvfrenzy/32/73650_2.png) [@fvfrenzy](https://discourse.nodered.org/u/fvfrenzy)\
**Post date:** [2 January 2023 23:17 UTC](https://discourse.nodered.org/t/trigger-node-status/73081/5 "2023-01-02T23:17:30Z")

</div>

Update

Actually, it looks like the status node has potential. It doesnt work the way I initially suspected. Thanks for the tip!

I have found a part of the message from the status object that I can monitor and set a text field on the dashboard.

the problem i am having now is that the text field value is persistent. So i am trying to find ways to reset it when the flows are restarted or when the trigger completes.

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [3 January 2023 08:54 UTC](https://discourse.nodered.org/t/trigger-node-status/73081/6 "2023-01-03T08:54:54Z")

</div>

> [@fvfrenzy](#):
>
> So i am trying to find ways to reset it when the flows are restarted or when the trigger completes.

Do you not get a new status message when the trigger completes?

For restart, yes it can be an issue that nodes do not explicitly set the status on restart. You could use an Inject node set to fire once on startup to clear it, though that may not cope with a partial re-deploy. That is only a developement issue though, so you may be able to put up with that.

---

<div class="post-metadata">

**Author:** ![E1cid](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/e1cid/32/77971_2.png) [@E1cid](https://discourse.nodered.org/u/E1cid)\
**Post date:** [3 January 2023 09:19 UTC](https://discourse.nodered.org/t/trigger-node-status/73081/7 "2023-01-03T09:19:09Z")

</div>

you can set the payload on the status messages  
e.g

 ![chrome_screenshot_1672737420600](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/1/8/1820a4f7756376a462b6534969d44012ffacd351.png)  
The change node sets payload to Jsonata expression

```auto
$$.status.fill = "blue" ? "triggered" : "reset"

```

---

<div class="post-metadata">

**Author:** ![fvfrenzy](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/fvfrenzy/32/73650_2.png) [@fvfrenzy](https://discourse.nodered.org/u/fvfrenzy)\
**Post date:** [4 January 2023 03:43 UTC](https://discourse.nodered.org/t/trigger-node-status/73081/8 "2023-01-04T03:43:13Z")

</div>

@E1cid Your idea was right on the money. Forgot to update you yesterday. Once I figured out the object, I was able to sort out the restart with the inject, and the trigger with another change node.

 ![Screenshot 2023-01-03 at 9.39.13 PM](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/1/7/1746164f4df71bd0f1a07032090a56552d258d05.png)  
 ![Screenshot 2023-01-03 at 9.42.06 PM](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/6/d/6d25bbb50aff3e8c3ed9b3630c9b2342e11226c1.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:** [18 January 2023 03:43 UTC](https://discourse.nodered.org/t/trigger-node-status/73081/9 "2023-01-18T03:43:55Z")

</div>

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