# Flowcard with time as arguments

**URL:** <https://community.homey.app/t/flowcard-with-time-as-arguments/94797>\
**Category:** Flows\
**Created:** [November 16, 2023, 10:29am UTC](https://community.homey.app/t/flowcard-with-time-as-arguments/94797 "2023-11-16T10:29:34Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![janrikard](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/janrikard/32/34785_2.png) [@janrikard](https://community.homey.app/u/janrikard)\
**Post date:** [November 16, 2023, 10:29am UTC](https://community.homey.app/t/flowcard-with-time-as-arguments/94797/1 "2023-11-16T10:29:34Z")

</div>

Hi, i have i flow-card tjat has time as arguments

![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/1/8/1838831bb8070de78ec53471d68181109d02824e.png)

I would like to be able to dynamically change the time values.

Is it possible make a homey-script that calls the flowcard with variabes as arguments for the time?

Or do someone any better idea?

---

<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:** [November 16, 2023, 6:40pm UTC](https://community.homey.app/t/flowcard-with-time-as-arguments/94797/2 "2023-11-16T18:40:25Z")

</div>

Hi Jan,

Can you tell us the idea / wish behind your question? Maybe there’s other ways to go

To answer your Q, this might help you quite a bit:

> [@Get historic variable value](https://community.homey.app/t/get-historic-variable-value/79120/5):
>
> You can emulate most AND & THEN flowcards in Homeyscript.  
> Check `example-flowcard-run` on how to do that.  
> When you run `example-flowcard-list` it will return all And & Then cards available on _your_ Homey  
> → you can search for the Power by the Hour card ‘Then’ ‘Current price is one of the X lowest, between hour X and hour Y’  
> (_this script can take quite a while to finish, remove the ‘And’ part in order to show the ‘Then’ part results way more quicker_)
> 
> ![Screenshot_20231116-184922_Firefox](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/a/2/a2818a6d1e5a8a3afbde90c4c13c94a443e1451c.jpeg)

---

<div class="post-metadata">

**Author:** ![janrikard](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/janrikard/32/34785_2.png) [@janrikard](https://community.homey.app/u/janrikard)\
**Post date:** [November 16, 2023, 8:29pm UTC](https://community.homey.app/t/flowcard-with-time-as-arguments/94797/3 "2023-11-16T20:29:52Z")

</div>

Hi Peter

Didnt think of power by the hour, i think i can solve my problem with one of power by the hours cards.  
Thanks  
/Rikard

---

<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:** [November 16, 2023, 10:33pm UTC](https://community.homey.app/t/flowcard-with-time-as-arguments/94797/4 "2023-11-16T22:33:58Z")

</div>

Ah, I see. I thought it was a PbtH card in your flow, it has similar cards 😊
