# Flow to prioritize units when trying to keep total effect under a max level

**URL:** <https://community.homey.app/t/flow-to-prioritize-units-when-trying-to-keep-total-effect-under-a-max-level/139983>\
**Category:** Questions & Help\
**Tags:** advancedflow\
**Created:** [July 18, 2025, 5:44pm UTC](https://community.homey.app/t/flow-to-prioritize-units-when-trying-to-keep-total-effect-under-a-max-level/139983 "2025-07-18T17:44:40Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![user3951](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/user3951/32/137264_2.png) [@user3951](https://community.homey.app/u/user3951)\
**Post date:** [July 19, 2025, 1:00am UTC](https://community.homey.app/t/flow-to-prioritize-units-when-trying-to-keep-total-effect-under-a-max-level/139983/2 "2025-07-19T01:00:59Z")

</div>

I really like the idea of building an Advanced Flow instead of relying on an app, it’s a great way to learn more about how flows work and gives you full control!

### Here’s a step-by-step suggestion:

1. **Install the [Strømregning app](https://homey.app/no-no/app/no.almli.utilitycost/Str%25C3%25B8mregning/)**  
This app gives you the flow cards needed and tracks your energy usage over the last hour.  
You need to feed it data from a smart power meter or a device that measures consumption, as described [here](https://community.homey.app/t/fersk-men-frustrert-ny-bruker-sette-opp-styring-ut-fra-pris/139448).
2. **Set up the devices you want to control**  
Start with the **lowest-priority device** and assign it to turn off first at the lowest kWh threshold. Then add the next device in order of importance, with increasing kWh values. The **highest-priority device** should be the last to turn off, at the highest threshold (closest to your limit).
3. **Choose your kWh limits and reactivation rules**  
You can customize when each device turns off/on and how soon they should be reactivated if conditions allow.
4. **Add a confirmation step for critical devices**  
For high-priority devices (like an EV charger), you can add a **push notification** with a Yes/No option to confirm before turning it off. Or skip the notification and automate it fully.
5. **Set reactivation thresholds**  
Define a lower kWh value at which your devices — especially high-priority ones — are allowed to turn back on. Make sure to turn on the lower-priority ones also if they were shut down and have not turn back on yet.
6. **Optional: Add or remove notifications**  
Customize your flow with alerts depending on your preferences.

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/5/8/58545f752dd13328a1992eb319d17fcde0f2de51.png)  
I don’t have an EV charger connected, so I’ve just used a basic card to visualize the concept.  
Be sure to test the flow thoroughly before depending on it fully.  
Adjust as needed to fit your setup and preferences 😉

---

_[View the full topic](https://community.homey.app/t/flow-to-prioritize-units-when-trying-to-keep-total-effect-under-a-max-level/139983)._
