# \[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:** 6

<div class="post-metadata">

**Author:** ![Nick\_Pauwels](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/nick_pauwels/32/53005_2.png) [@Nick\_Pauwels](https://community.homey.app/u/Nick_Pauwels)\
**Post date:** [April 2, 2022, 6:24am UTC](https://community.homey.app/t/app-pro-flow-utilities/53027/102 "2022-04-02T06:24:30Z")

</div>

@martijnpoppen If i’m correct. Activity in child zones does not trigger the new trigger cards. Also not seeing off events triggering at all. 😉

---

<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:** [April 2, 2022, 6:33am UTC](https://community.homey.app/t/app-pro-flow-utilities/53027/103 "2022-04-02T06:33:29Z")

</div>

Yes correct so you would need a trigger card per zone

The off behaviour i notice the same. Will check

---

<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:** [April 2, 2022, 8:57am UTC](https://community.homey.app/t/app-pro-flow-utilities/53027/104 "2022-04-02T08:57:40Z")

</div>

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

> - **FIX** Trigger cards for individual devices in zone turned off

---

<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:** [April 30, 2022, 1:59pm UTC](https://community.homey.app/t/app-pro-flow-utilities/53027/105 "2022-04-30T13:59:47Z")

</div>

Actually had 1 more small feature request.  
I wanted to use the duration as a validation value (if the duration was less then XX minutes, send message), but now the trigger card only has a string with the time like “1 hour 34 min”, I can’t use that in logic cards to compare it to anything.  
Is it possible to add an additional tag to the trigger card (or as global tag (too)) that has the duration (at least) in minutes?

---

<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:** [April 30, 2022, 2:29pm UTC](https://community.homey.app/t/app-pro-flow-utilities/53027/106 "2022-04-30T14:29:54Z")

</div>

Hi @Caseda

Thanks for the suggestion and feedback! This is indeed handy to add.

We can add a number tag with the duration in seconds as well. So you can use this for the logic. Or just if you like to display everything in seconds 😛

I will add this in the next update, but because of holiday that will be somewhere end of the second week of may. 😌

Will update the new version here!

---

<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:** [April 30, 2022, 2:33pm UTC](https://community.homey.app/t/app-pro-flow-utilities/53027/107 "2022-04-30T14:33:04Z")

</div>

@RobbertV  
Maybe add a conversion card so you can convert to ms/s/minute/hours/days ? 😃

---

<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:** [May 12, 2022, 1:53pm UTC](https://community.homey.app/t/app-pro-flow-utilities/53027/108 "2022-05-12T13:53:37Z")

</div>

## App update: (Live: [1.4.1](https://homey.app/a/com.flow.utilities/))

> - **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

---

<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:** [May 12, 2022, 3:47pm UTC](https://community.homey.app/t/app-pro-flow-utilities/53027/109 "2022-05-12T15:47:23Z")

</div>

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

> - **NEW** Added duration in seconds to global and trigger (flow) tags

CC: @Caseda

Converting card is in progress to convert seconds into desired format.

---

<div class="post-metadata">

**Author:** ![Peter\_Kawa](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_kawa/32/173848_2.png) [@Peter\_Kawa](https://community.homey.app/u/Peter_Kawa)\
**Post date:** [May 12, 2022, 4:02pm UTC](https://community.homey.app/t/app-pro-flow-utilities/53027/110 "2022-05-12T16:02:52Z")

</div>

Hi guys, I saw this post and thought of your app. Would this usecase be possible in some way?

> [@Configurable time trigger](https://community.homey.app/t/configurable-time-trigger/63532/4):
>
> usecase:
> 
> - set a time to leave (i.e. the time I need to get in my car)
> - have Homey calculate back the time to start charging, based on the “chargingtime left” (number of minutes) value that the car reports
> - start charging on “time-to-leave” -/- “chargingtime left” = “start charging time”

Maybe, combined with iCalCalendar`**` the [time to leave] variable can be set in a Google calendar appointment.  
The calc [time to leave] minus [chargingtime left] is the challenge here.  
( `**`) As far as I know, apart from Homey Alarms, there’s nowhere to input a varying timestamp/value?)

---

<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:** [May 12, 2022, 6:22pm UTC](https://community.homey.app/t/app-pro-flow-utilities/53027/111 "2022-05-12T18:22:51Z")

</div>

That’s an interesting case indeed. I will investigate a bit about this. Will get back on that.

---

<div class="post-metadata">

**Author:** ![zakraket](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/zakraket/32/17470_2.png) [@zakraket](https://community.homey.app/u/zakraket)\
**Post date:** [May 13, 2022, 6:35am UTC](https://community.homey.app/t/app-pro-flow-utilities/53027/112 "2022-05-13T06:35:21Z")

</div>

I’m a but surprised (not for Flow Utilities, I didn’t know about the app before @Peter_Kawa mentioned it) that this type of calculation is “simply” not possible, and that this has not been requested a lot in the past. I’m sure there are lots of usecases for this type of calc.

Anyway, it could also work with numbers, if I use/set a numeric var and set the time as “1700” calculation the starting time is easy, but then the challenge is to convert 1700 (leavetime) - 180 (chargingminutes) = 1400 (startingtime) to a timevalue that Homey can use.  
@RobbertV**That (calculating 1400 to a timevalue) is then the only problem I need to solve**

The reason I want this is because I want my car to preferably charge on solar but I also want it to be full when I leave, so that it will be forced to charge to 100% at leave time.

edit: managed to fix my use case with Better Logic

> [@Configurable time trigger](https://community.homey.app/t/configurable-time-trigger/63532/9):
>
> Could it be done with Better Logic, specifically the Mathjs cards? Say I need to leave at 17:00, and my car needs 3 hours to charge to full (according to the car), I need the car to start charging at 14:00 I don’t really need to work with times; if I use numeric times, 1700 instead of 17:00, I can calculate ((1700\*60/100)-(180))/0.6 = 1400 I only need a flow that, f.e. every 5 minutes, converts current time to a number and if that number \> 1400, start charging. I found $timenow$ to convert c…

---

<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:** [May 21, 2022, 8:58am UTC](https://community.homey.app/t/app-pro-flow-utilities/53027/113 "2022-05-21T08:58:18Z")

</div>

Sorry, hadn’t have time to look into this. Quite busy atm.

But a quick think is to use Unix time format. So converting the current time and wished time to unix format, than compare this to the needed charge time (maybe with some extra converting to miliseconds).  
Then add trigger.

But have to look deeper into this on how to create this in flow cards/variables without super specific or 10 cards for this.

I do have a question about the value that is coming from you car charge time. What format is this? Time like 1:30, minutes, seconds or miliseconds?

---

<div class="post-metadata">

**Author:** ![RonnyW](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/ronnyw/32/10879_2.png) [@RonnyW](https://community.homey.app/u/RonnyW)\
**Post date:** [May 21, 2022, 11:44am UTC](https://community.homey.app/t/app-pro-flow-utilities/53027/114 "2022-05-21T11:44:52Z")

</div>

I thought about that, too, how i could be possible to add a trigger with an argument. The problem will be, that a comparing time is set in the trigger card as argument. Nomally this is a filter to trigger only if the filter check is true.  
For the time trigger, you need an interval every minute. Then trigger a ‘time changed’ frlow trigger. Then check the argument in the handler. That will be very CPU cumsoming doing this every minute.

For parsing the time: I’m parsing a string in my MySQL app and reading a date offset. Then I add this offset to a date (day, month, year. I think that could be an option for you. So parsing a time string (split at : ) and add hours/minutes.

Example: [homey.mysql/device.js at 172faca7339dcdd50f21389fd7d6e80ff3e2693c · RonnyWinkler/homey.mysql · GitHub](https://github.com/RonnyWinkler/homey.mysql/blob/172faca7339dcdd50f21389fd7d6e80ff3e2693c/drivers/db/device.js#L111)

---

<div class="post-metadata">

**Author:** ![Peter\_Kawa](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_kawa/32/173848_2.png) [@Peter\_Kawa](https://community.homey.app/u/Peter_Kawa)\
**Post date:** [June 13, 2022, 2:02am UTC](https://community.homey.app/t/app-pro-flow-utilities/53027/115 "2022-06-13T02:02:18Z")

</div>

Hi guys,  
With help and inspiration of @zakraket 's flows to calculate with numeric time, I found a way to convert numeric time to time and vice versa; So we can calculate with time stamps. Maybe it can be of any help.  
(And @RonnyW , your code is impressive, but way out of my league 🙃 )

> [@Configurable time trigger](https://community.homey.app/t/configurable-time-trigger/63532/19):
>
> Got something wink Flow 1 - Convert departure time to numeric time (To be able to enter the departure time as normal time 00:00 format) . Script: // convertTime2NumericTime.js - Convert time to Numeric time (like: 15:30h -\> 1550) let timeIn = args[0] let timeNumeric = 0; if (timeIn == '' || timeIn == undefined) { console.log ('Missing argument'); return(false); } else { // If the hour is 1 - 9, add a leading 0 so time is formatted as f.i. 09:30 var charCount = Array.from…

The other used flows;  
The usecase is a calculation of:  
when to start charging a car,  
depending of the remaining charge time (reported by the charger, in minutes),  
and the departure time (user entered time).

 ![Screenshot from 2022-06-13 03-56-15](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/8/1/8140feaf4e7ba29c7dd6b825d8edb67defc341bb.png)

- The remaining charging time has changed:

- Departure time has changed:

---

<div class="post-metadata">

**Author:** ![Kai\_Engvik](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/kai_engvik/32/48687_2.png) [@Kai\_Engvik](https://community.homey.app/u/Kai_Engvik)\
**Post date:** [June 28, 2022, 1:13pm UTC](https://community.homey.app/t/app-pro-flow-utilities/53027/116 "2022-06-28T13:13:56Z")

</div>

Hello! great app! Currency: I’d like to convert into NOK (Norwegian). Any hope that more currencies could be added?

---

<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:** [June 28, 2022, 2:16pm UTC](https://community.homey.app/t/app-pro-flow-utilities/53027/117 "2022-06-28T14:16:48Z")

</div>

Thanks for the suggestion! I will add this to our to-do list.  
Maybe you could help me with the correct writing of the NOK currency, is it correct like this?: 10 kr

Keep an eye on this forum for the update.

---

<div class="post-metadata">

**Author:** ![Kai\_Engvik](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/kai_engvik/32/48687_2.png) [@Kai\_Engvik](https://community.homey.app/u/Kai_Engvik)\
**Post date:** [June 28, 2022, 3:04pm UTC](https://community.homey.app/t/app-pro-flow-utilities/53027/118 "2022-06-28T15:04:48Z")

</div>

Yes, that is correct. But is your app actually converting? I tried to enter an number, but the oputput was without conversion. It just added GBP to the number. Did I miss something?

---

<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:** [June 28, 2022, 3:17pm UTC](https://community.homey.app/t/app-pro-flow-utilities/53027/119 "2022-06-28T15:17:33Z")

</div>

No the app doesn’t support actual converting, this is something you can do yourself with the calculation card.

De currency card is just to set the correct currency notation and symbol.

---

<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:** [July 22, 2022, 8:11pm UTC](https://community.homey.app/t/app-pro-flow-utilities/53027/120 "2022-07-22T20:11:24Z")

</div>

Hi and sorry for the late response.

due to personal matter and holiday I didn’t get a change to have a proper look at this request.

To get to the point I don’t think it will be a good fit for the app flow utilities.  
It’s a really specific use case and requires a lot of flow cards and dependency’s.  
Next to that is something already mentioned to create a trigger function will be quite hefty on Homey’s performance and I don’t want to risk that.

Luckily in the mean time @zakraket already made a good example working. And with Advanced flows you can go even further with this now without requirement of new flow cards.

---

<div class="post-metadata">

**Author:** ![zakraket](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/zakraket/32/17470_2.png) [@zakraket](https://community.homey.app/u/zakraket)\
**Post date:** [July 23, 2022, 9:54am UTC](https://community.homey.app/t/app-pro-flow-utilities/53027/121 "2022-07-23T09:54:24Z")

</div>

well, just to claim some credits 😉 , it was my own working solution @Peter_Kawa posted here (he mentioned me in his post 🙂 )

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

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