# Motion activated floodlight

**URL:** <https://discourse.nodered.org/t/motion-activated-floodlight/85714>\
**Category:** General\
**Tags:** home-assistant\
**Created:** [20 February 2024 23:06 UTC](https://discourse.nodered.org/t/motion-activated-floodlight/85714 "2024-02-20T23:06:09Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![LIT-1](https://avatars.discourse-cdn.com/v4/letter/l/3be4f8/32.png) [@LIT-1](https://discourse.nodered.org/u/LIT-1)\
**Post date:** [20 February 2024 23:06 UTC](https://discourse.nodered.org/t/motion-activated-floodlight/85714/1 "2024-02-20T23:06:09Z")

</div>

Hi,

I have a setup with 3 Ubiquiti Cameras integrated into Home Assistant using the integration and a Shelly that turns on a floodlight then waits 30 seconds and turns it off the Shelly which turns off the floodlight.

Here is the current setup:

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

I have a few issues with this setup such as it will send a turn off request every time there is motion so sometimes the light will flicker.

I'm looking for help on building something where there is a countdown that is reset when there is motion, if that is possible or if it's the best way to do this.

Thanks in advance!

---

<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:** [20 February 2024 23:32 UTC](https://discourse.nodered.org/t/motion-activated-floodlight/85714/2 "2024-02-20T23:32:53Z")

</div>

> [@LIT-1](#):
>
> I'm looking for help on building something where there is a countdown that is reset when there is motion

The trigger node can be set to extend it's timeout upon reception of additional messages

---

<div class="post-metadata">

**Author:** ![LIT-1](https://avatars.discourse-cdn.com/v4/letter/l/3be4f8/32.png) [@LIT-1](https://discourse.nodered.org/u/LIT-1)\
**Post date:** [21 February 2024 00:41 UTC](https://discourse.nodered.org/t/motion-activated-floodlight/85714/3 "2024-02-21T00:41:09Z")

</div>

I test it and I think it works.

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

These are my settings which I think work.

---

<div class="post-metadata">

**Author:** ![Sean-McG](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/sean-mcg/32/54677_2.png) [@Sean-McG](https://discourse.nodered.org/u/Sean-McG)\
**Post date:** [21 February 2024 00:58 UTC](https://discourse.nodered.org/t/motion-activated-floodlight/85714/4 "2024-02-21T00:58:43Z")

</div>

Changed to general category.

---

<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:** [21 May 2024 00:59 UTC](https://discourse.nodered.org/t/motion-activated-floodlight/85714/5 "2024-05-21T00:59:18Z")

</div>

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