# \[APP\]\[Pro\] Flow Utilities

**URL:** <https://community.homey.app/t/app-pro-flow-utilities/53027>\
**Category:** Apps\
**Tags:** tools, homey-pro\
**Created:** [October 12, 2021, 10:05am UTC](https://community.homey.app/t/app-pro-flow-utilities/53027 "2021-10-12T10:05:25Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![RobbertV](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robbertv/32/37250_2.png) [@RobbertV](https://community.homey.app/u/RobbertV)\
**Post date:** [October 12, 2021, 10:05am UTC](https://community.homey.app/t/app-pro-flow-utilities/53027/1 "2021-10-12T10:05:25Z")

</div>

## **Flow Utilities - _Get more out of data for in flows_**

* * *

> **[Flow Utilities | Homey](https://homey.app/nl-nl/app/com.flow.utilities/Flow-Utilities/)**
>
> Haal meer uit data voor in flows

* * *

**Useful links**

- [To-Do List](https://community.homey.app/t/app-pro-flow-utilities/53027/4)
- [Frequently Asked Questions](https://community.homey.app/t/app-pro-flow-utilities/53027/3)
- [Changelog](https://community.homey.app/t/app-pro-flow-utilities/53027/2)

* * *

Always wanted to know how long your device is running or how much energy it used?  
With this app you can compare these (or basically any kind of number) data in Homey.

**Current features:**

- Start/Stop duration (Calculate time in between)
- Start/Stop comparison with value - (Calculate difference of numbers)
- Convert number to currency
- Calculation with 2 numbers ([+] [-] [/] [\*])
- Convert number to specified decimal number
- Trigger flow when duration or calculation is done. (Use outcome as tags in flows)

* * *

**TIPS:**

1. Add your devices as variables in the app configuration go to  
**Homey App:** More → Apps → Flow Utilities → Configure App  
**Web:** [https://tools.developer.homey.app/tools/app-settings](https://tools.developer.homey.app/tools/app-settings)  
 ![IMG_5526.PNG](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/9/1/91fb6b438dc52e597a97a230490837fe66896b07.jpeg)  
  
  
After that they are available as tags in your flow cards:  
 ![Schermafbeelding 2021-10-13 om 09.19.41](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/b/a/ba14abb494c65d4dcb9721ff447206e485918b9c.png)

  

* * *

**Supported Languages:**

- 🇬🇧 English
- 🇳🇱 Dutch
- 🇩🇪 German

  

* * *

**Contributions**  
If you appreciate this app, contribute to future development by making a [paypal contribution](https://www.paypal.me/robbertvis)

[![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/2/9/2916364caa1239076c12be293d270d5980d9d272.png)](https://paypal.me/robbertvis)

* * *

**Special thanks to @martijnpoppen responsible for:**

- [Eufy Security](https://community.homey.app/t/app-eufy-security/44921)
- [Eufy Home](https://community.homey.app/t/app-eufy-home/46610)
- [Vision Security](https://community.homey.app/t/app-vision-security/44945)
- [LedRing Collection](https://community.homey.app/t/app-led-ring-collection/44946)
- [Niu](https://community.homey.app/t/app-niu/46185)
- [Magic Home LED](https://community.homey.app/t/app-magic-home-led/1750)
- [Synology](https://community.homey.app/t/app-synology-diskstation/49744)
- [Amber Pro](https://community.homey.app/t/app-amber-pro/50486)
- [FlowChecker](https://community.homey.app/t/app-flowchecker/50986)

---

<div class="post-metadata">

**Author:** ![RobbertV](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robbertv/32/37250_2.png) [@RobbertV](https://community.homey.app/u/RobbertV)\
**Post date:** [October 12, 2021, 10:06am UTC](https://community.homey.app/t/app-pro-flow-utilities/53027/2 "2021-10-12T10:06:22Z")

</div>

# Changelog

**Live version and Test version**

* * *

## 1.7.2

> - **New** Add Boolean & Number flow tag action cards
> - **FIX** Flow card typos
> - **CHORE** Update readme files

## 1.6.1

> - **BREAK** Set zone trigger and actions cards to deprecated status
> - **FIX** HomeyApi bug for Homey version 8

## 1.5.6

> - **FIX** Tokens not set correctly in trigger cards
> - **FIX** Trigger for device on/off trigger cards

## 1.5.4

> - **OPT** Prevent duplicate flow tokens + better error messages in settings
> - **FIX** Settings and error handling for tokens

## 1.5.2

> - **New** Action card for text replace function
> - **OPT** Action card for text replace now supports multiple matching occurrences in input string.
> - **OPT** Helper functions

## 1.4.13

> - **CHORE** Update error reporting preventing app crashes

## 1.4.9

> - **CHORE** Update homey api to latest specs thanks to @martijnpoppen
> - **FIX** Token creation error for wrong type

## 1.4.6

> - **FIX** Error handling setting flow tokens

## 1.4.5

> - **NEW** Added duration in seconds to global and trigger (flow) tags
> - **NEW** Added currency formats for 🇳🇴 Norway, 🇸🇪 Sweden & 🇩🇰 Denmark
> - **NEW** Add support for 🇳🇴 Norwegian language
> - **FIX** Language locales for Norway, Sweden & Danmark

## 1.4.1

> - **NEW** Trigger cards for individual devices in zone, with tags available in flow
> - **NEW** Action cards for converting text to lowercase, uppercase, first letter uppercase & first letter from every word uppercase
> - **FIX** Trigger cards for individual devices in zone turned off

## 1.3.7

> - **FIX: Small bugfix**

## 1.3.6

> - **FIX: App crashes on restart**

## 1.3.5

> - **NEW: Trigger flowcards:**  
> – When devices in Zone turned on  
> – When devices in Zone turned off
> - **NEW: Action flowcards:**  
> – Set Color of (all) devices in Zone  
> – Set Percentage of (all) devices in Zone (Dim, Color temperature, Window coverings, Volume)
> 
> - **NEW:** Contain variable data on app restart (FYI: @TomBoz )
> - **FIX:** App not starting on homey restart
> - **FIX:** Remove extra spaces in duration result

* * *

## Test: [-](https://homey.app/a/com.flow.utilities/test/)

> - …

---

<div class="post-metadata">

**Author:** ![RobbertV](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robbertv/32/37250_2.png) [@RobbertV](https://community.homey.app/u/RobbertV)\
**Post date:** [October 12, 2021, 10:06am UTC](https://community.homey.app/t/app-pro-flow-utilities/53027/3 "2021-10-12T10:06:28Z")

</div>

# Frequently Asked Questions

> - **Q1: How do I know which tag is used for the outcome of the flow card?**
> - **Answer:** Every End flow card has written in the hint section which variable name is used to store the outcome. You can click the ℹ icon next to the flow card title to see this text.

> - **Q2: Can I add variables via the homey web app?**  
> **Answer:** Not directly in the homey web app, but you can go to [https://tools.developer.homey.app/tools/app-settings](https://tools.developer.homey.app/tools/app-settings) here you can find and app emulator and change the app settings for the app.

---

<div class="post-metadata">

**Author:** ![RobbertV](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robbertv/32/37250_2.png) [@RobbertV](https://community.homey.app/u/RobbertV)\
**Post date:** [October 12, 2021, 10:06am UTC](https://community.homey.app/t/app-pro-flow-utilities/53027/4 "2021-10-12T10:06:35Z")

</div>

# To-do list:

* * *

> - [BUG] With removal variable and add the same name again. App works inconsistent **DONE** (@Caseda)
> - [Feature Request] Flow card to convert number values to needed decimal numbers (f.e. 15.0987346 to 15.10) **DONE**
> - [Feature Request] German translation **DONE** (Thanks to @DirkG)
> - [Feature Request] Add confirmation for deletion of variables in App settings **DONE** (@Caseda)
> - [Feature Request] Trigger card when comparison or duration is ended **DONE** (@Caseda)

---

<div class="post-metadata">

**Author:** ![Martijn\_Hoogenbosch](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/martijn_hoogenbosch/32/10647_2.png) [@Martijn\_Hoogenbosch](https://community.homey.app/u/Martijn_Hoogenbosch)\
**Post date:** [October 12, 2021, 10:44am UTC](https://community.homey.app/t/app-pro-flow-utilities/53027/5 "2021-10-12T10:44:00Z")

</div>

Looking forward to this 👍

---

<div class="post-metadata">

**Author:** ![martijnpoppen](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/martijnpoppen/32/84849_2.png) [@martijnpoppen](https://community.homey.app/u/martijnpoppen)\
**Post date:** [October 12, 2021, 10:49am UTC](https://community.homey.app/t/app-pro-flow-utilities/53027/6 "2021-10-12T10:49:28Z")

</div>

Some Flow ideas to use this App with:

 ![Screenshot 2021-10-12 at 12.48.23](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/f/a/fa5bac74e829abbf527e582bbdac46a2a845bb2c.png) ![Screenshot 2021-10-12 at 12.48.16](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/a/7/a7f4a971c585da50b70f5cb405e585ad5473d91d.png)

**Notification:**  
 ![Screenshot 2021-10-12 at 12.48.29](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/b/b/bbdbd5936ea1c2b38e011716b66de3fe7951f788.png)

---

<div class="post-metadata">

**Author:** ![Undertaker](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/undertaker/32/53278_2.png) [@Undertaker](https://community.homey.app/u/Undertaker)\
**Post date:** [October 12, 2021, 10:49am UTC](https://community.homey.app/t/app-pro-flow-utilities/53027/7 "2021-10-12T10:49:53Z")

</div>

In Germany, too, people are hot for your app.

---

<div class="post-metadata">

**Author:** ![Martijn\_Hoogenbosch](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/martijn_hoogenbosch/32/10647_2.png) [@Martijn\_Hoogenbosch](https://community.homey.app/u/Martijn_Hoogenbosch)\
**Post date:** [October 12, 2021, 10:51am UTC](https://community.homey.app/t/app-pro-flow-utilities/53027/8 "2021-10-12T10:51:06Z")

</div>

While I love people being hot for me, I guess you mean another Martijn 😉😂

---

<div class="post-metadata">

**Author:** ![Undertaker](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/undertaker/32/53278_2.png) [@Undertaker](https://community.homey.app/u/Undertaker)\
**Post date:** [October 12, 2021, 10:54am UTC](https://community.homey.app/t/app-pro-flow-utilities/53027/9 "2021-10-12T10:54:33Z")

</div>

Whenever I’m in the Netherlands, I’ll visit you. We’ll find out together how hot you are. 😂😂😂

---

<div class="post-metadata">

**Author:** ![RobbertV](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robbertv/32/37250_2.png) [@RobbertV](https://community.homey.app/u/RobbertV)\
**Post date:** [October 12, 2021, 11:13am UTC](https://community.homey.app/t/app-pro-flow-utilities/53027/10 "2021-10-12T11:13:05Z")

</div>

## Example: compare & convert energy data into usage and price.

**Start flow**

 ![Schermafbeelding 2021-10-22 om 21.57.28](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/d/7/d78d5481f607fb1008486c47f74601c14a325db5.png)

**Stop flow**  
_Note: `kwhPrijs` is a homey logic variable set with a prefix number. If you have high and low tarifs there are some examples on the forum to set these based on time._

 ![Schermafbeelding 2021-10-22 om 21.56.45](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/f/9/f9b9f2d8de19688ed151697c6e99c70ec30eefe9.png)

**Notification result**

 ![Schermafbeelding 2021-10-22 om 21.58.15](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/8/4/84e48eece384a801a624700cf2b23cde85739a7e.png)

---

<div class="post-metadata">

**Author:** ![RobbertV](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robbertv/32/37250_2.png) [@RobbertV](https://community.homey.app/u/RobbertV)\
**Post date:** [October 12, 2021, 2:05pm UTC](https://community.homey.app/t/app-pro-flow-utilities/53027/11 "2021-10-12T14:05:49Z")

</div>

## New app update (live: [0.1.1](https://homey.app/nl-nl/app/com.flow.utilities/Flow-Utilities/))

> - NEW: initial release of the app

---

<div class="post-metadata">

**Author:** ![RobbertV](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robbertv/32/37250_2.png) [@RobbertV](https://community.homey.app/u/RobbertV)\
**Post date:** [October 12, 2021, 4:17pm UTC](https://community.homey.app/t/app-pro-flow-utilities/53027/12 "2021-10-12T16:17:07Z")

</div>

## New app update (live: [1.0.0](https://homey.app/nl-nl/app/com.flow.utilities/Flow-Utilities/))

> - BREAK: New app id
> - NEW: Number with decimals card

**NOTICE: the app needs to be reinstalled , since we had to made an ID change. The first app is not available in the store anymore!**  
Current flows continue to work, but it’s advised to install the new app and change the flow cards. After that you can remove the old app with version number : `0.1.1`.  
You can see the version number on the mobile app: More → Apps → Flow Utilities

 ![IMG_5531](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/3/4/34e38c5482d6eda49e56323917630a1a66a924e7.jpeg)

  

Sorry for any inconvenience…

---

<div class="post-metadata">

**Author:** ![RobbertV](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robbertv/32/37250_2.png) [@RobbertV](https://community.homey.app/u/RobbertV)\
**Post date:** [October 14, 2021, 6:19pm UTC](https://community.homey.app/t/app-pro-flow-utilities/53027/13 "2021-10-14T18:19:51Z")

</div>

## New app update (live: [1.1.3](https://homey.app/nl-nl/app/com.flow.utilities/Flow-Utilities/))

> - Remove Notification card
> - Minor settings page tweaks
> - Tweaks and bugfixes
> - Add 🇩🇪 German translation thanks to @DirkG

---

<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:** [October 14, 2021, 8:32pm UTC](https://community.homey.app/t/app-pro-flow-utilities/53027/14 "2021-10-14T20:32:13Z")

</div>

I really like this idea, did find a bug, and have some feature requests:  
Bug:  
I needed to reboot the app before all variables/tokens were created/registered after creating them in the app settings, would result in error(s) before I did so.

Feature requests:  
A popup warning for the “delete all” button, people with fat finger **Will** accidentally delete all their variables. 🙈

I Assume these are already on your to-do list:  
Trigger card(s), for when variables have changed, like the duration, for example the “stop duration” could be stopped in several flows, adding all calculations in all those flows is kinda redundant.  
Also better for flow management, as you really know when a value has changed/updated to the new value, delays in the flow cards work, but could result in (edge case) mishaps (and the end result can come in faster, not after at least 4 seconds when using all calculations).

---

<div class="post-metadata">

**Author:** ![RobbertV](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robbertv/32/37250_2.png) [@RobbertV](https://community.homey.app/u/RobbertV)\
**Post date:** [October 15, 2021, 7:07am UTC](https://community.homey.app/t/app-pro-flow-utilities/53027/15 "2021-10-15T07:07:09Z")

</div>

Thanks for your feedback, this is really helpful!

The bug is an unknown issue, I will try to reproduce this issue since during development we didn’t experienced this. Will get back on this.

For the feature requests: I really like the ideas, I will add this to our to-do list!

---

<div class="post-metadata">

**Author:** ![Mike1233](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/mike1233/32/20991_2.png) [@Mike1233](https://community.homey.app/u/Mike1233)\
**Post date:** [October 16, 2021, 11:34pm UTC](https://community.homey.app/t/app-pro-flow-utilities/53027/16 "2021-10-16T23:34:26Z")

</div>

I’ve installed the app but haven’t figured it out yet. But I hope it should work.  
I want to calculate the consumption of my kWh meter for the day.  
So “start position” meter, “end position” meter and calculate as end position - start position = daily consumption.  
Start standings at 00:01 and end standings at 23:59.  
Can you give me a hint ?

If I create a variable in the Homey app, I see it immediately on the web app.  
If I create a variable in the web app, I see it immediately in the Homey app.  
I don’t have to restart the app.

Thanks for the app.

---

<div class="post-metadata">

**Author:** ![RobbertV](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robbertv/32/37250_2.png) [@RobbertV](https://community.homey.app/u/RobbertV)\
**Post date:** [October 17, 2021, 7:41am UTC](https://community.homey.app/t/app-pro-flow-utilities/53027/17 "2021-10-17T07:41:33Z")

</div>

Awesome that you installed the app. For just your case we created this app.  
I think you need te following setup:  
**Note:** 1 & 10 will be your tag/variable of your energie meter to get current counter. The `?` will be the tag created by Flow Utilities app (For some reason this doesn’t show in shared flows). So in this case `Kwhmeter verschil` or if you have English setup it will be `Kwhmeter difference`

 ![Schermafbeelding 2021-10-17 om 10.06.10](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/c/1/c1711bdd1d0149b5dc93afd01bc43c1228705ee8.png)

 ![Schermafbeelding 2021-10-17 om 10.06.26](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/e/1/e147d8fd7ce11ccb00104857cadaab5b46f044f1.png)

### Or even better you could also include pricing as well:

**Note:** use the the delay, otherwise calculations are not correct since the cards ar started at the same time.

 ![Schermafbeelding 2021-10-17 om 10.04.37](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/3/b/3b490be708bbbe53ebb2b394ed7ed7700528f6b2.png)

---

<div class="post-metadata">

**Author:** ![Martijn\_Hoogenbosch](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/martijn_hoogenbosch/32/10647_2.png) [@Martijn\_Hoogenbosch](https://community.homey.app/u/Martijn_Hoogenbosch)\
**Post date:** [October 17, 2021, 9:04am UTC](https://community.homey.app/t/app-pro-flow-utilities/53027/18 "2021-10-17T09:04:31Z")

</div>

And the price, is this a fixed value or dynamic based on some site?

---

<div class="post-metadata">

**Author:** ![RobbertV](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robbertv/32/37250_2.png) [@RobbertV](https://community.homey.app/u/RobbertV)\
**Post date:** [October 17, 2021, 9:31am UTC](https://community.homey.app/t/app-pro-flow-utilities/53027/19 "2021-10-17T09:31:51Z")

</div>

The `kwhPrijs` is in my case a fixed value setup as variable in homey. Since my power consumption price is the same for high and low tariffs.

But if you don’t have that you can have a flow setting the current value from 2 other variables(high/low) based on time/date. Setting the 3rd and use that value for the calculation.

---

<div class="post-metadata">

**Author:** ![Mike1233](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/mike1233/32/20991_2.png) [@Mike1233](https://community.homey.app/u/Mike1233)\
**Post date:** [October 17, 2021, 10:48am UTC](https://community.homey.app/t/app-pro-flow-utilities/53027/20 "2021-10-17T10:48:12Z")

</div>

Thank you for the explanation. I was misled by your used 1 and 10. Because I want to know the difference of the same meter, I have to enter the same twice. As in the example with both flows, a 1. I fill there the aggregated meter reading, that should be my daily consumption with the solar panels included. And when I manually execute the flows, calculations are also made. So it works. Thank you.  
And I bought you a beer.

[Next page](https://community.homey.app/t/app-pro-flow-utilities/53027.md?page=2)
