# Struggling with the basic flows

**URL:** <https://community.homey.app/t/struggling-with-the-basic-flows/128853>\
**Category:** Questions & Help\
**Created:** [January 25, 2025, 7:54pm UTC](https://community.homey.app/t/struggling-with-the-basic-flows/128853 "2025-01-25T19:54:12Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![John\_Lee](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/john_lee/32/122288_2.png) [@John\_Lee](https://community.homey.app/u/John_Lee)\
**Post date:** [January 25, 2025, 7:54pm UTC](https://community.homey.app/t/struggling-with-the-basic-flows/128853/1 "2025-01-25T19:54:12Z")

</div>

Hi  
New Homey user. Was getting really frustrated trying to integrate all makes and types of devices in HA so bout the Homey Pro. been pretty successful at getting the devices into Homey but boy am I struggling with my first flow! I simply want to turn on a light (through Aqara wall switch) using an Aqara motion sensor and have it turn off when the sensor stops detecting motion.  
I set up a flow with the basis alarm on as trigger to put the light on and an alarm off to put the light off.  
Im obviously missing something basic in the transition from automations in HA and Aqara to Homey.  
Can anyone give me a helping hand with this to get me started

---

<div class="post-metadata">

**Author:** ![Andy\_Henderson](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/andy_henderson/32/80642_2.png) [@Andy\_Henderson](https://community.homey.app/u/Andy_Henderson)\
**Post date:** [January 25, 2025, 8:56pm UTC](https://community.homey.app/t/struggling-with-the-basic-flows/128853/2 "2025-01-25T20:56:57Z")

</div>

If you are trying to put both triggers in a single, simple flow, that won’t work. You’ll need a flow for each trigger.

Much better, however, to use an ‘advanced’ flow. That way you can describe the responses to the ‘motion detected’ and ‘no motion detected’ triggers in a single flow. Don’t be put off by the “advanced” bit, they are pretty straightforward.

If you search the forum you’ll find examples that take into account sunrise/sunset, time of day, of light levels.

If you want more specific help, you’ll need to show your flow(s).

Andy

---

<div class="post-metadata">

**Author:** ![John\_Lee](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/john_lee/32/122288_2.png) [@John\_Lee](https://community.homey.app/u/John_Lee)\
**Post date:** [January 27, 2025, 8:11am UTC](https://community.homey.app/t/struggling-with-the-basic-flows/128853/3 "2025-01-27T08:11:01Z")

</div>

Thanks Andy

Spent a lot of time searching through the community and succeeded in getting a working solution. I’m sure I’ll be back with more beginners questions later but I’m on my way!!
