# Motion, timers and lights / getting started

**URL:** <https://discourse.nodered.org/t/motion-timers-and-lights-getting-started/55112>\
**Category:** General\
**Tags:** home-assistant\
**Created:** [13 December 2021 10:04 UTC](https://discourse.nodered.org/t/motion-timers-and-lights-getting-started/55112 "2021-12-13T10:04:46Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![bluescreentt](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bluescreentt/32/52541_2.png) [@bluescreentt](https://discourse.nodered.org/u/bluescreentt)\
**Post date:** [13 December 2021 10:04 UTC](https://discourse.nodered.org/t/motion-timers-and-lights-getting-started/55112/1 "2021-12-13T10:04:46Z")

</div>

Hi

I am using Node-Red on Home Assistant.  
I am new to Node-Red and Home Assistant

lets take an example

i have a Sonoff motion sensor  
when activated it triggers a Sonoff basic switch that turns on the lamp on the night stand.  
when the motionsensor resets the lamp turns of.  
easy!! but i am restricted to the 90 seconds that is the timeout for the sensor  
I have build the sequense so that it only works in a preset timerange.

if i want to have the lights turn on by auto from 18:30 - 20:30 i can also do that but combining the two ! aarrgghh ☹ it is disco lights all ove the place. on off on on off on off off off on off and so on

i have done some Ladder and FB programming on Siemens and on WAGO PLC's before so it is not all ne to me but i would like some pointers in the right direction to make my life easier.

my "problem" is all the nodes and what to begin with in a sequense  
normaly i use input and output and some sort of logic betwen reading input to activating output.

Is there a good "Node-Red for idiots" guide out there or some good video resources / written guides

BR  
BlueScreenTT

---

_[View the full topic](https://discourse.nodered.org/t/motion-timers-and-lights-getting-started/55112)._
