# How to send a message when time is expired

**URL:** <https://discourse.nodered.org/t/how-to-send-a-message-when-time-is-expired/63497>\
**Category:** General\
**Tags:** function-node\
**Created:** [6 June 2022 02:09 UTC](https://discourse.nodered.org/t/how-to-send-a-message-when-time-is-expired/63497 "2022-06-06T02:09:26Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jmicks8](https://avatars.discourse-cdn.com/v4/letter/j/9dc877/32.png) [@jmicks8](https://discourse.nodered.org/u/jmicks8)\
**Post date:** [6 June 2022 02:09 UTC](https://discourse.nodered.org/t/how-to-send-a-message-when-time-is-expired/63497/1 "2022-06-06T02:09:26Z")

</div>

Hi,

I am still pretty new with NodeRed and could use some help getting a message to send at the right time. I have a garage door sensor connected to Hubitat and get status using the Hubitat device node. I only want to send a message after 10 minutes if the door is open. I'm not sure if the trigger node is meant to accomplish this, but it would not cancel the message if the door is closed in less than 10 minutes. I appreciate your feedback.

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [6 June 2022 06:15 UTC](https://discourse.nodered.org/t/how-to-send-a-message-when-time-is-expired/63497/2 "2022-06-06T06:15:31Z")

</div>

Yes you can use the door closed message to send a msg.reset to the trigger node to cancel it.

---

<div class="post-metadata">

**Author:** ![jmicks8](https://avatars.discourse-cdn.com/v4/letter/j/9dc877/32.png) [@jmicks8](https://discourse.nodered.org/u/jmicks8)\
**Post date:** [6 June 2022 20:50 UTC](https://discourse.nodered.org/t/how-to-send-a-message-when-time-is-expired/63497/3 "2022-06-06T20:50:44Z")

</div>

Thanks for the feedback. I will give that a try.

---

<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:** [5 August 2022 20:50 UTC](https://discourse.nodered.org/t/how-to-send-a-message-when-time-is-expired/63497/4 "2022-08-05T20:50:51Z")

</div>

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