# Flow starts without any reason?

**URL:** <https://community.homey.app/t/flow-starts-without-any-reason/34141>\
**Category:** Questions & Help\
**Created:** [August 29, 2020, 3:07pm UTC](https://community.homey.app/t/flow-starts-without-any-reason/34141 "2020-08-29T15:07:30Z")\
**Posts on this page:** 19\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hans\_G](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/hans_g/32/4169_2.png) [@Hans\_G](https://community.homey.app/u/Hans_G)\
**Post date:** [August 29, 2020, 3:07pm UTC](https://community.homey.app/t/flow-starts-without-any-reason/34141/1 "2020-08-29T15:07:30Z")

</div>

Hi

I’ve a flow where the lights should be switched on as soon as less then 13 lux.

Somehow the flow isn’t functioning as the lights will be swiched on randomly.  
The 2nd line in the log is the lux:

> 2020-08-29 15:46:22 verlichting aan ingeschakeld  
> 2020-08-29 15:46:22 59.99  
> 2020-08-29 15:56:16 verlichting aan ingeschakeld  
> 2020-08-29 15:56:16 49.99  
> 2020-08-29 16:06:14 verlichting aan ingeschakeld  
> 2020-08-29 16:06:14 55.99  
> 2020-08-29 16:12:17 verlichting aan ingeschakeld  
> 2020-08-29 16:12:17 168.97  
> 2020-08-29 16:22:15 verlichting aan ingeschakeld  
> 2020-08-29 16:22:15 123

I’m using the Aqara/Xiaomi Light Sensor.

Does anyone how to fix this?

Thanks in advance!

Regards,  
Hans

---

<div class="post-metadata">

**Author:** ![Rocodamelshekima](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/rocodamelshekima/32/8209_2.png) [@Rocodamelshekima](https://community.homey.app/u/Rocodamelshekima)\
**Post date:** [August 29, 2020, 3:17pm UTC](https://community.homey.app/t/flow-starts-without-any-reason/34141/2 "2020-08-29T15:17:37Z")

</div>

Taking u took the correct tags could u add a delay for the bulbs with about 2 seconds?  
Just to test if the helderheid was below 13 BEFORE the lights go on?

---

<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:** [August 29, 2020, 3:34pm UTC](https://community.homey.app/t/flow-starts-without-any-reason/34141/3 "2020-08-29T15:34:42Z")

</div>

In my flows, I see the Tag symbol in the ALS card:  
 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/c/f/cfde0536933a5ad3e615bc72b937d797ece4a707.png)

And dit you use the right Tag, under ‘In this Flow’?

![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/9/9/99a6aa56f8bbaebe4c84634eedd3582236b5eec4.png)

---

<div class="post-metadata">

**Author:** ![Hans\_G](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/hans_g/32/4169_2.png) [@Hans\_G](https://community.homey.app/u/Hans_G)\
**Post date:** [August 30, 2020, 8:03am UTC](https://community.homey.app/t/flow-starts-without-any-reason/34141/4 "2020-08-30T08:03:23Z")

</div>

Did add a delay, the last value of ‘helderheid’ was 32.

---

<div class="post-metadata">

**Author:** ![Rocodamelshekima](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/rocodamelshekima/32/8209_2.png) [@Rocodamelshekima](https://community.homey.app/u/Rocodamelshekima)\
**Post date:** [August 30, 2020, 8:15am UTC](https://community.homey.app/t/flow-starts-without-any-reason/34141/5 "2020-08-30T08:15:15Z")

</div>

Then the light shouldn’t go on anyway. In that case read the post above urs from Jan and double check if u have the correct tags.

---

<div class="post-metadata">

**Author:** ![Hans\_G](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/hans_g/32/4169_2.png) [@Hans\_G](https://community.homey.app/u/Hans_G)\
**Post date:** [August 30, 2020, 8:41am UTC](https://community.homey.app/t/flow-starts-without-any-reason/34141/6 "2020-08-30T08:41:28Z")

</div>

The tag symbol is in my if card but not shown in my post (??)  
Just to be sure I’ve removed and put back the AND card with the ‘helderheid’ tag.  
For now, the last half hour the lights ae still off, so maybe I’ve used the wrong tag since I’ve 3 light sensors and they’ve all a tag with the same name.

I’ll let you know what happens today, thanks for helping!

---

<div class="post-metadata">

**Author:** ![Rocodamelshekima](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/rocodamelshekima/32/8209_2.png) [@Rocodamelshekima](https://community.homey.app/u/Rocodamelshekima)\
**Post date:** [August 30, 2020, 9:09am UTC](https://community.homey.app/t/flow-starts-without-any-reason/34141/7 "2020-08-30T09:09:50Z")

</div>

Just another question: is all light sensors in the same room?

---

<div class="post-metadata">

**Author:** ![DirkG](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/dirkg/32/118897_2.png) [@DirkG](https://community.homey.app/u/DirkG)\
**Post date:** [August 30, 2020, 9:17am UTC](https://community.homey.app/t/flow-starts-without-any-reason/34141/8 "2020-08-30T09:17:32Z")

</div>

> [@JPe4619](#):
>
> And dit you use the right Tag, under ‘In this Flow’?

I don’t have the Tag “In this Flow”. Is this the first Tag in the List? If yes, my Tag is named “LOKALETAGS”. Maybe of the chosen language? I use the German language.

> [@Hans\_G](#):
>
> The tag symbol is in my if card but not shown in my post (??)

The same here. I guess it’s a bug.

---

<div class="post-metadata">

**Author:** ![Rocodamelshekima](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/rocodamelshekima/32/8209_2.png) [@Rocodamelshekima](https://community.homey.app/u/Rocodamelshekima)\
**Post date:** [August 30, 2020, 9:25am UTC](https://community.homey.app/t/flow-starts-without-any-reason/34141/9 "2020-08-30T09:25:00Z")

</div>

> [@DirkG](#):
>
> Maybe of the chosen language?

That will be correct!  
In English it’s “in this flow”  
In Dutch it’s “lokale tags”

---

<div class="post-metadata">

**Author:** ![Hans\_G](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/hans_g/32/4169_2.png) [@Hans\_G](https://community.homey.app/u/Hans_G)\
**Post date:** [August 30, 2020, 9:36am UTC](https://community.homey.app/t/flow-starts-without-any-reason/34141/10 "2020-08-30T09:36:28Z")

</div>

No, in 3 different rooms.  
Since the lights are still off I’m pretty sure I’ve chosen the wrong tag ‘Helderheid’ the first time…

---

<div class="post-metadata">

**Author:** ![DirkG](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/dirkg/32/118897_2.png) [@DirkG](https://community.homey.app/u/DirkG)\
**Post date:** [August 30, 2020, 9:43am UTC](https://community.homey.app/t/flow-starts-without-any-reason/34141/11 "2020-08-30T09:43:21Z")

</div>

A little bit OT but could you explain me (in some words) the different between “LokalTag” and the Tag belonging to the sensor?  
I asked Athom already (16 emails in total) but I did not understand the differences.

---

<div class="post-metadata">

**Author:** ![Rocodamelshekima](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/rocodamelshekima/32/8209_2.png) [@Rocodamelshekima](https://community.homey.app/u/Rocodamelshekima)\
**Post date:** [August 30, 2020, 9:44am UTC](https://community.homey.app/t/flow-starts-without-any-reason/34141/12 "2020-08-30T09:44:55Z")

</div>

Don’t think there is any but ur most likely choosing the wrong tag when ur not using the locale tags.

---

<div class="post-metadata">

**Author:** ![DirkG](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/dirkg/32/118897_2.png) [@DirkG](https://community.homey.app/u/DirkG)\
**Post date:** [August 30, 2020, 9:55am UTC](https://community.homey.app/t/flow-starts-without-any-reason/34141/13 "2020-08-30T09:55:21Z")

</div>

There are differences. The Play-Button looks different and if you want to test the flow (Test Button) with the LokalTag you have to fill in a value, with the “Sensor Tag” not.

 ![Tag from the Device](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/0/5/05f0f5ae7038f6d5cb67d9484c24527929966662.jpeg)

But I think this might be going too far now. Maybe I will open my own Topic.  
Thanks

---

<div class="post-metadata">

**Author:** ![Rocodamelshekima](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/rocodamelshekima/32/8209_2.png) [@Rocodamelshekima](https://community.homey.app/u/Rocodamelshekima)\
**Post date:** [August 30, 2020, 10:08am UTC](https://community.homey.app/t/flow-starts-without-any-reason/34141/14 "2020-08-30T10:08:28Z")

</div>

Ok. But the flow WILL work if using the correct tag. Either from locale or from device.

---

<div class="post-metadata">

**Author:** ![DirkG](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/dirkg/32/118897_2.png) [@DirkG](https://community.homey.app/u/DirkG)\
**Post date:** [August 30, 2020, 10:55am UTC](https://community.homey.app/t/flow-starts-without-any-reason/34141/15 "2020-08-30T10:55:25Z")

</div>

That may be, but I want to understand the difference.  
This is Athom’s last answer. After that I give up:

 ![Bildschirmfoto 2020-08-30 um 12.51.31](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/f/d/fd138b497ec7cc7b25a82552590647a796221031.png)

The “LokalTag” is and will remain a black hole for me.

---

<div class="post-metadata">

**Author:** ![Caseda](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/caseda/32/138695_2.png) [@Caseda](https://community.homey.app/u/Caseda)\
**Post date:** [August 30, 2020, 12:35pm UTC](https://community.homey.app/t/flow-starts-without-any-reason/34141/16 "2020-08-30T12:35:06Z")

</div>

“in this flow”/“local tag” is the tag that is coming with the **trigger flow card** (IF column), this tag is normally empty until the device triggers the flow and fills that tag with a value, but only for use in that flow.  
That is also why the play button is greyed out, as the tag is used in the flow, but is empty until the flow is triggered by the device.  
When you _test_ this flow, you fill in this tag manually.

“normal” tags is the last available value (of the capability) for the device, so is pretty much always available, even without the flow being triggered.

the first option (local tags) was the only option few years ago, before (the then called) global tags were implemented.

---

<div class="post-metadata">

**Author:** ![DirkG](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/dirkg/32/118897_2.png) [@DirkG](https://community.homey.app/u/DirkG)\
**Post date:** [August 30, 2020, 4:28pm UTC](https://community.homey.app/t/flow-starts-without-any-reason/34141/17 "2020-08-30T16:28:07Z")

</div>

Which variant do you prefer? Or does it differ from flow to flow? If so, when should you use the Lokaltag and when the Device Tag?

Spontaneously I would say that you should use the Lokaltag. This value is up to date.  
With the Device Tag it could happen that the device hung up a few hours before and delivers the wrong value?

---

<div class="post-metadata">

**Author:** ![Caseda](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/caseda/32/138695_2.png) [@Caseda](https://community.homey.app/u/Caseda)\
**Post date:** [August 30, 2020, 5:16pm UTC](https://community.homey.app/t/flow-starts-without-any-reason/34141/18 "2020-08-30T17:16:45Z")

</div>

It kinda varies from flow to flow yes.  
What I like to keep in mind is, if you don’t think you’ll need to trigger a flow from your favorietes or mobile’s home screen (widget) then use the local tag, as that is indeed always up to date and easier to test your flows with “is higher/lower logic” etc, as you aren’t reliant on the static value of your device, but can be input it manually.

In theorie the updating of the device’s tag is (nearly) done at the same time, or in the right order it being updated, but it could happen that it is the old value, updating just a few milliseconds later.

---

<div class="post-metadata">

**Author:** ![DirkG](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/dirkg/32/118897_2.png) [@DirkG](https://community.homey.app/u/DirkG)\
**Post date:** [August 30, 2020, 6:02pm UTC](https://community.homey.app/t/flow-starts-without-any-reason/34141/19 "2020-08-30T18:02:25Z")

</div>

Thank you very much for the detailed explanation. 👍🏼
