# Advanced Flow - Aeotec gen5 3 clamp

**URL:** <https://community.homey.app/t/advanced-flow-aeotec-gen5-3-clamp/75020>\
**Category:** Questions & Help\
**Tags:** advancedflow\
**Created:** [January 13, 2023, 12:21pm UTC](https://community.homey.app/t/advanced-flow-aeotec-gen5-3-clamp/75020 "2023-01-13T12:21:35Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tjoloho](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/tjoloho/32/16419_2.png) [@Tjoloho](https://community.homey.app/u/Tjoloho)\
**Post date:** [January 13, 2023, 12:21pm UTC](https://community.homey.app/t/advanced-flow-aeotec-gen5-3-clamp/75020/1 "2023-01-13T12:21:35Z")

</div>

Hej!

I have a minor problem with one of my advanced flow, that maybe someone have a simple solution to or different setup.

I have an advanced flow that starts my spabath during nighttime. It runs between 11pm to 8am and starts to check if the coming 3 hour period is the cheapest during the next, else it waits for another hour and test again… so far so good, it has worked for a few months, but recently I have added other things in my home to run during the cheapest hours, which now has lead to that I’m overloading the phases in the house… Not good!

So my thinking was to add another criteria, using one of my Aeotec 3 clamp energy meters, to check if I have enough space on my phases or not before starting the spabath, but it doesn’t work.

Whatever value I put, it never starts to execute.  
Created a test flow earlier today where I changed the value all the time but it never got executed, am I missing something?

On another note, instead of having it as another start condition, I would like to use it as a or/and condition in the middle of the flow instead, but it seems that these energy meters can only check power/phase etc as a start condition, anyone have a solution to this?

This is how the spabath flow looks like on start

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

This is my test flow from earlier today  
 ![aeotec_phase](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/e/3/e3074f5d296f292f59a3bb351e28fbf522357bdc.png)

This is a overview on the available card option for the and statement, as you can see no possibility to check phase:

 ![andstatement](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/0/9/09482eb3ff992c45928d06df4d9799cdaf4581d0.png)

---

<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:** [January 13, 2023, 12:50pm UTC](https://community.homey.app/t/advanced-flow-aeotec-gen5-3-clamp/75020/2 "2023-01-13T12:50:18Z")

</div>

> [@Tjoloho](#):
>
> On another note, instead of having it as another start condition, I would like to use it as a or/and condition in the middle of the flow instead, but it seems that these energy meters can only check power/phase etc as a start condition, anyone have a solution to this?

You have to use logic cards in the conditions part (And…) in combination with the tags from Aeotec 3 Clamp device.

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/0/6/0634a5f2580280cdfc04b086956a5fe944769b8b.png)

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/0/0/0030470071cc9dd48ab28b171402830838ae0bcc.png)

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

How to use logic cards and tags is explained in this tutorial:

> [@How to use tags in a flow](https://community.homey.app/t/how-to-use-tags-in-a-flow/9285):
>
> How to use tags in a flow on 2.0.x There are a lot of questions about using the tags in the 2.0.x firmware of Homey. So here i give you a simple explanation of using tags in 2.0.x. We start with the WHEN part When making a flow you select a device in the WHEN part of the flow. In this example i used a Fibaro plug. When selecting the device you get the option to choose “The power changed” f.e. When clicked you will see the tag(s) coming with this card. We gonna use that tag later, no need in…

By the way, I wouldn’t trust Homey or any other SmartHome system, that would be too dangerous for me. From my point of view, the spa bath should be protected separately. But that’s just my personal opinion.

---

<div class="post-metadata">

**Author:** ![Tjoloho](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/tjoloho/32/16419_2.png) [@Tjoloho](https://community.homey.app/u/Tjoloho)\
**Post date:** [January 13, 2023, 1:05pm UTC](https://community.homey.app/t/advanced-flow-aeotec-gen5-3-clamp/75020/3 "2023-01-13T13:05:52Z")

</div>

Thanks, I realize that I had the solution in front of me… have used logic a lot 🙈

My mind got blocked since I was frustrated about that the flow never executed with the clamp phase info…

On the second note, no I don’t fully trust Homey(or any other smart home device) from that angle either, it’s quite stable but you can never be 100%. The spabath together with most of the heavy electricity stuff are protected, so it was never about that, but homey can help to add on some “security/support” layers, to not overload the phases in the house.

Again, thanks for quick reply
