# \[SOLVED\]Motion sensor flow will not work

**URL:** <https://discourse.nodered.org/t/solved-motion-sensor-flow-will-not-work/16659>\
**Category:** General\
**Created:** [13 October 2019 17:24 UTC](https://discourse.nodered.org/t/solved-motion-sensor-flow-will-not-work/16659 "2019-10-13T17:24:53Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jvdm](https://avatars.discourse-cdn.com/v4/letter/j/ac8455/32.png) [@Jvdm](https://discourse.nodered.org/u/Jvdm)\
**Post date:** [13 October 2019 17:24 UTC](https://discourse.nodered.org/t/solved-motion-sensor-flow-will-not-work/16659/1 "2019-10-13T17:24:54Z")

</div>

Hello there i am new to the forum and i did everything right but my flow will not work.. I have a fibaro motion sensor and want them to turn a light on and off. But i cant get it right. Looked over the internet but it will not work... ! I can not understand what i do wrong...☹ Help will be verry welcome... So i can start programming with Node red...

[Flow|690x388](https://discourse.nodered.org/uploads/short-url/62HaGt7iFjGWl6QYEyagZYMgUmZ.jpeg)

[{"id":"e4eb6c1.7fa8d1","type":"server-state-changed","z":"eef70259.47a37","name":"Licht keuken","server":"2c54cdbf.e16eb2","version":1,"entityidfilter":"binary\_sensor.fibaro\_system\_fgms001\_zw5\_motion\_sensor\_sensor","entityidfiltertype":"substring","outputinitially":false,"state\_type":"str","haltifstate":"","halt\_if\_type":"str","halt\_if\_compare":"is","outputs":1,"output\_only\_on\_state\_change":true,"x":70,"y":140,"wires":[["b3987c69.8327d"]]},{"id":"2c54cdbf.e16eb2","type":"server","z":"","name":"Home Assistant"}]

---

<div class="post-metadata">

**Author:** ![bakman2](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bakman2/32/6207_2.png) [@bakman2](https://discourse.nodered.org/u/bakman2)\
**Post date:** [13 October 2019 17:43 UTC](https://discourse.nodered.org/t/solved-motion-sensor-flow-will-not-work/16659/2 "2019-10-13T17:43:37Z")

</div>

Moved to general and renamed title.

Did you connect a debug node? If yes, what is the output? We cannot import your flow as it requires your equipment/home assistant.

---

<div class="post-metadata">

**Author:** ![Jvdm](https://avatars.discourse-cdn.com/v4/letter/j/ac8455/32.png) [@Jvdm](https://discourse.nodered.org/u/Jvdm)\
**Post date:** [14 October 2019 05:31 UTC](https://discourse.nodered.org/t/solved-motion-sensor-flow-will-not-work/16659/3 "2019-10-14T05:31:22Z")

</div>

Dont know how to add te the debug node.. Its realy hard to get started as a noob... Maybe you have a good tutorial? I copyd a code from the internet for lighting and built he same on node red but it does not work...

---

<div class="post-metadata">

**Author:** ![bakman2](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bakman2/32/6207_2.png) [@bakman2](https://discourse.nodered.org/u/bakman2)\
**Post date:** [14 October 2019 05:45 UTC](https://discourse.nodered.org/t/solved-motion-sensor-flow-will-not-work/16659/4 "2019-10-14T05:45:38Z")

</div>

Follow the [tutorials in the documentation](https://nodered.org/docs/tutorials/first-flow).

There is also a [playlist on youtube available](https://www.youtube.com/watch?list=PLyNBB9VCLmo1hyO-4fIZ08gqFcXBkHy-6&v=ksGeUD26Mw0) that will explain how node-red works (watch them all)

---

<div class="post-metadata">

**Author:** ![Jvdm](https://avatars.discourse-cdn.com/v4/letter/j/ac8455/32.png) [@Jvdm](https://discourse.nodered.org/u/Jvdm)\
**Post date:** [14 October 2019 08:23 UTC](https://discourse.nodered.org/t/solved-motion-sensor-flow-will-not-work/16659/5 "2019-10-14T08:23:13Z")

</div>

Thank You verry much, that whas a great help. It worked and its solved 🙂
