# Two motion sensors for one lamp

**URL:** <https://discourse.nodered.org/t/two-motion-sensors-for-one-lamp/60980>\
**Category:** General\
**Created:** [8 April 2022 11:58 UTC](https://discourse.nodered.org/t/two-motion-sensors-for-one-lamp/60980 "2022-04-08T11:58:33Z")\
**Posts on this page:** 1\
**Showing post:** 15

<div class="post-metadata">

**Author:** ![ceysa75](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ceysa75/32/31340_2.png) [@ceysa75](https://discourse.nodered.org/u/ceysa75)\
**Post date:** [9 April 2022 22:01 UTC](https://discourse.nodered.org/t/two-motion-sensors-for-one-lamp/60980/15 "2022-04-09T22:01:17Z")

</div>

I can't see why this should not work with a trigger node. And for some reason you seem to refuse to focusing on the given recommendations here.

See how it works:

> [@Problem with current state](https://discourse.nodered.org/t/problem-with-current-state/58599/20):
>
> The trick is firstly to use a Switch node to separate motion start and stop. Pass the start message on directly to switch the light on, send the Off message to a Trigger node that waits for the time required and then switches the light off. To stop the light being turned off if the motion starts again before the trigger has timed out, also feed the start message to the trigger, but configure the 'Reset Trigger If' option in the Trigger node to reset if the payload is equal to the start motion …

---

_[View the full topic](https://discourse.nodered.org/t/two-motion-sensors-for-one-lamp/60980)._
