# Please help me with my first advanced flow

**URL:** <https://community.homey.app/t/please-help-me-with-my-first-advanced-flow/96573>\
**Category:** Flows\
**Tags:** advancedflow\
**Created:** [December 2, 2023, 6:04pm UTC](https://community.homey.app/t/please-help-me-with-my-first-advanced-flow/96573 "2023-12-02T18:04:47Z")\
**Posts on this page:** 16\
**Page:** 2

<div class="post-metadata">

**Author:** ![Lukasz\_Kostek](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/lukasz_kostek/32/92389_2.png) [@Lukasz\_Kostek](https://community.homey.app/u/Lukasz_Kostek)\
**Post date:** [December 3, 2023, 9:16am UTC](https://community.homey.app/t/please-help-me-with-my-first-advanced-flow/96573/27 "2023-12-03T09:16:46Z")

</div>

Sorry Roy but I think I don’t understand ☹  
You changed my flow with red text:

In first line there must be Motion On  
In secon line there must by Motion Off  
On third line Timer should reach zero (be empty) or You have something else on Your mind?

I thing we are near to end of this problem…please be patient and help me with this 🙂

I am learning

I helped a lot of people with Domoticz on many forums. I try to understand how flows are working.  
I really can’t understand what is wrond with this flow. Mayby You could share Yours (similiar one)?

Best regards

---

<div class="post-metadata">

**Author:** ![Lukasz\_Kostek](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/lukasz_kostek/32/92389_2.png) [@Lukasz\_Kostek](https://community.homey.app/u/Lukasz_Kostek)\
**Post date:** [December 3, 2023, 9:31am UTC](https://community.homey.app/t/please-help-me-with-my-first-advanced-flow/96573/29 "2023-12-03T09:31:30Z")

</div>

Thx,

My script is identical (logic not all switches) but on my countdown starts 60s and when I move to turn motion on it doesn’t reset. It counts from 60 to 0 and turn off the light.

My normal flows are turn off.

Thanks for Your help. I need to test it and understand what am I doing wrong. At this time I really don’t know. My script is identical.

Thx a lot

---

<div class="post-metadata">

**Author:** ![Lukasz\_Kostek](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/lukasz_kostek/32/92389_2.png) [@Lukasz\_Kostek](https://community.homey.app/u/Lukasz_Kostek)\
**Post date:** [December 3, 2023, 9:40am UTC](https://community.homey.app/t/please-help-me-with-my-first-advanced-flow/96573/30 "2023-12-03T09:40:32Z")

</div>

It works but…I think my Xiaomi motion sensor have to big cooldown and I need to wait 20-30s to activate motion again.

Thx for help and sorry for my ignorance.

Thread should be closed

---

<div class="post-metadata">

**Author:** ![Lukasz\_Kostek](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/lukasz_kostek/32/92389_2.png) [@Lukasz\_Kostek](https://community.homey.app/u/Lukasz_Kostek)\
**Post date:** [December 3, 2023, 10:18am UTC](https://community.homey.app/t/please-help-me-with-my-first-advanced-flow/96573/32 "2023-12-03T10:18:19Z")

</div>

I am using this sensor for 2 days.  
Normally I am using Fibaro motion sensor.

I am not expert at all but I know Domoticz better 🙂  
I really start to love Homey as a platform (almost everything works without any effort).  
Domoticz was different but it was more open to community. It was very quick and with some help from community You could do almost everything like in HA.

Once again thank You for help. I will need it for couple of week. I am moving to new house and I need to make whole automation from scratch.

Best regards

---

<div class="post-metadata">

**Author:** ![Wim\_Post](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/wim_post/32/56793_2.png) [@Wim\_Post](https://community.homey.app/u/Wim_Post)\
**Post date:** [December 3, 2023, 10:31am UTC](https://community.homey.app/t/please-help-me-with-my-first-advanced-flow/96573/33 "2023-12-03T10:31:57Z")

</div>

> [@Lukasz\_Kostek](#):
>
> 3 normal flows are working very good separately
> 
> I tried to make one advanced flow from 3 normal but I am missing something.

In the separated flows you have condition between 0:01 and 5:00.  
In the advanced flow between 9:00 (=21:00?) and 5:00.

What if you use condition ‘date and time’ card ‘ it is night’ (means after sunset and before sunrise)?

---

<div class="post-metadata">

**Author:** ![Lukasz\_Kostek](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/lukasz_kostek/32/92389_2.png) [@Lukasz\_Kostek](https://community.homey.app/u/Lukasz_Kostek)\
**Post date:** [December 3, 2023, 10:46am UTC](https://community.homey.app/t/please-help-me-with-my-first-advanced-flow/96573/34 "2023-12-03T10:46:19Z")

</div>

In this flow I want to turn on my Bathroom mirror only between 00:01 and 5:00. When I wake up at night and go to bathroom.

In advanced flow I change it to 9:00 because I wanted to test it now.

Sunset (on Poland in winter is at 16 pm 🙂 It is to early to this flow.

Thank You for advice

---

<div class="post-metadata">

**Author:** ![DirkH](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/dirkh/32/78952_2.png) [@DirkH](https://community.homey.app/u/DirkH)\
**Post date:** [December 3, 2023, 12:33pm UTC](https://community.homey.app/t/please-help-me-with-my-first-advanced-flow/96573/35 "2023-12-03T12:33:41Z")

</div>

Hi Roy as I do not know Polish, I was trapped, too. There is one small ‘y’ between the first and the second line.  
_czujnik ruchu wlaczony_ means _motions sensor on_, and  
_czujnik ruchu wylaczony_ means _motion sensor off_

---

<div class="post-metadata">

**Author:** ![DirkH](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/dirkh/32/78952_2.png) [@DirkH](https://community.homey.app/u/DirkH)\
**Post date:** [December 3, 2023, 12:49pm UTC](https://community.homey.app/t/please-help-me-with-my-first-advanced-flow/96573/36 "2023-12-03T12:49:02Z")

</div>

Hi Lukasz,  
I guess, you miss the connection between _**Timer reaches zero(0) Lustro**_ and _ **Output is turned on** _ in the third line.  
The way you wrote it **ALL** will never be hit

---

<div class="post-metadata">

**Author:** ![Theo\_de\_Koning](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/theo_de_koning/32/136062_2.png) [@Theo\_de\_Koning](https://community.homey.app/u/Theo_de_Koning)\
**Post date:** [December 3, 2023, 12:53pm UTC](https://community.homey.app/t/please-help-me-with-my-first-advanced-flow/96573/37 "2023-12-03T12:53:20Z")

</div>

The challenge was still too great.  
Equally beautiful for others in the Netherlands

 ![](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/6/f/6f8f3ea56a259c18a02e8e9800326b17478a0cbc.jpeg)

---

<div class="post-metadata">

**Author:** ![JPe4619](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jpe4619/32/9017_2.png) [@JPe4619](https://community.homey.app/u/JPe4619)\
**Post date:** [December 3, 2023, 12:57pm UTC](https://community.homey.app/t/please-help-me-with-my-first-advanced-flow/96573/38 "2023-12-03T12:57:58Z")

</div>

> [@Wim\_Post](#):
>
> between 9:00 (=21:00?) and 5:00.

@Lukasz_Kostek  
In the past there was a problem with times on two different days, the alternative was,  
use inverse: Time is Not between 5:00 and 21:00  
Don’t know if this problem was solved but you can try.

---

<div class="post-metadata">

**Author:** ![Lukasz\_Kostek](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/lukasz_kostek/32/92389_2.png) [@Lukasz\_Kostek](https://community.homey.app/u/Lukasz_Kostek)\
**Post date:** [December 3, 2023, 2:53pm UTC](https://community.homey.app/t/please-help-me-with-my-first-advanced-flow/96573/39 "2023-12-03T14:53:15Z")

</div>

Thank You all for support.

Everything is working at the moment.

Best regards

---

<div class="post-metadata">

**Author:** ![Rrrr](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/rrrr/32/629_2.png) [@Rrrr](https://community.homey.app/u/Rrrr)\
**Post date:** [December 10, 2023, 8:15am UTC](https://community.homey.app/t/please-help-me-with-my-first-advanced-flow/96573/40 "2023-12-10T08:15:07Z")

</div>

When making the first steps with Homey advanced flows, best is to keep it simple.

I advocate built-in timers and zones. This helps you avoid making mistakes and they are more efficient. You can always make it more sophisticated later.

The below example flow does not use any specific device. It assumes the motion sensor and the light are in the room (zone) you created.

So you can always drag more lights or motion sensors to the zone or change devices without having to adjust the flow. Less maintenance.

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/2/4/24c532dc3786f9eb535fdc0fcdf2d2d9fd0441e4.png)

---

<div class="post-metadata">

**Author:** ![Lukasz\_Kostek](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/lukasz_kostek/32/92389_2.png) [@Lukasz\_Kostek](https://community.homey.app/u/Lukasz_Kostek)\
**Post date:** [December 15, 2023, 7:34pm UTC](https://community.homey.app/t/please-help-me-with-my-first-advanced-flow/96573/41 "2023-12-15T19:34:44Z")

</div>

I have another question about flows.

I want to turn off my Fibaro Walli Led colour light On after 17:00 and Turn Off after 6:00.

I really don’t know how to do that.

In WHEN card there is no “beetween some time card” . This card is only in AND card.

I wanted to make flow - WHEN time beetween 17:00 and 6:00 Turn Fibaro Walli Led light White (I wanted to add all my switches).

And second flow - When time is between 6:01 and 16:59 Turn off Fibaro Walli Leg light to white.

Could someone can help me?

---

<div class="post-metadata">

**Author:** ![Rmb](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/rmb/32/79135_2.png) [@Rmb](https://community.homey.app/u/Rmb)\
**Post date:** [December 15, 2023, 8:09pm UTC](https://community.homey.app/t/please-help-me-with-my-first-advanced-flow/96573/42 "2023-12-15T20:09:15Z")

</div>

The lights shall be on between 17:00 and 06:00 and off between 06:00 and 17:00.  
So switch on at 17:00 and switch off at 06:00.

WHEN time is 17:00 THEN switch on  
WHEN time is 06:00 THEN switch off

---

<div class="post-metadata">

**Author:** ![Lukasz\_Kostek](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/lukasz_kostek/32/92389_2.png) [@Lukasz\_Kostek](https://community.homey.app/u/Lukasz_Kostek)\
**Post date:** [December 15, 2023, 8:21pm UTC](https://community.homey.app/t/please-help-me-with-my-first-advanced-flow/96573/43 "2023-12-15T20:21:47Z")

</div>

It is so simple?  
Thank You 🙂

---

<div class="post-metadata">

**Author:** ![Rmb](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/rmb/32/79135_2.png) [@Rmb](https://community.homey.app/u/Rmb)\
**Post date:** [December 15, 2023, 8:55pm UTC](https://community.homey.app/t/please-help-me-with-my-first-advanced-flow/96573/44 "2023-12-15T20:55:00Z")

</div>

Yes it is, just a matter of rephrasing your thoughts 😁

[Previous page](https://community.homey.app/t/please-help-me-with-my-first-advanced-flow/96573.md?page=1)
