# Whats the difference between a 'trigger state' and an 'event state' node

**URL:** <https://discourse.nodered.org/t/whats-the-difference-between-a-trigger-state-and-an-event-state-node/43419>\
**Category:** General\
**Created:** [30 March 2021 18:57 UTC](https://discourse.nodered.org/t/whats-the-difference-between-a-trigger-state-and-an-event-state-node/43419 "2021-03-30T18:57:34Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![scottda](https://avatars.discourse-cdn.com/v4/letter/s/90db22/32.png) [@scottda](https://discourse.nodered.org/u/scottda)\
**Post date:** [30 March 2021 18:57 UTC](https://discourse.nodered.org/t/whats-the-difference-between-a-trigger-state-and-an-event-state-node/43419/1 "2021-03-30T18:57:35Z")

</div>

Sorry for the simple question but trying to automate something in node red based on presence detection...I started with and event state node but someone helping me on a forum is suggesting a trigger state node?

Not sure why i would use one rather than the other, its just scraping the state of the device tracker and feeding a switch node.

Looks like the trigger state node is running all the time regardless of whether the state has changed, is this correct?

thanks

---

<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:** [30 March 2021 19:38 UTC](https://discourse.nodered.org/t/whats-the-difference-between-a-trigger-state-and-an-event-state-node/43419/2 "2021-03-30T19:38:43Z")

</div>

Welcome to the forum @scottda

Are those Home Assistant nodes? If so you might be better off on an HA forum as not many here use it, preferring to use node-red for everything.

If not home assistant nodes you will have to give us some more clues as to which nodes you mean. Node red has a Trigger node built in, but not trigger state.

---

<div class="post-metadata">

**Author:** ![scottda](https://avatars.discourse-cdn.com/v4/letter/s/90db22/32.png) [@scottda](https://discourse.nodered.org/u/scottda)\
**Post date:** [31 March 2021 06:49 UTC](https://discourse.nodered.org/t/whats-the-difference-between-a-trigger-state-and-an-event-state-node/43419/3 "2021-03-31T06:49:07Z")

</div>

ok thanks Colin, it is indeed a HA integration so I shall take your advice and have a look over in those forums.

thanks for the speedy reply.  
Darren.

---

<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:** [30 May 2021 06:49 UTC](https://discourse.nodered.org/t/whats-the-difference-between-a-trigger-state-and-an-event-state-node/43419/4 "2021-05-30T06:49:25Z")

</div>

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