# H.O.O.P. (Hope) - Homey Object Oriented Programming

**URL:** <https://community.homey.app/t/h-o-o-p-hope-homey-object-oriented-programming/43709>\
**Category:** Apps\
**Tags:** app, tools, flow\
**Created:** [March 4, 2021, 6:22pm UTC](https://community.homey.app/t/h-o-o-p-hope-homey-object-oriented-programming/43709 "2021-03-04T18:22:00Z")\
**Posts on this page:** 20\
**Page:** 5

<div class="post-metadata">

**Author:** ![Arie\_J\_Godschalk](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/arie_j_godschalk/32/63027_2.png) [@Arie\_J\_Godschalk](https://community.homey.app/u/Arie_J_Godschalk)\
**Post date:** [June 22, 2021, 8:33am UTC](https://community.homey.app/t/h-o-o-p-hope-homey-object-oriented-programming/43709/85 "2021-06-22T08:33:38Z")

</div>

Hey Dennis,

I am not sure exactly what you mean, so i’ll do some explaination and examples.

First of, a Method Group Device is just a way of grouping a lott of flows together.  
And Method group devices are just to create Flows with arguments (like Methods/Functions with parameters/arguments in a program)  
I have for instance about 20 Notification Flows for which i created a special Notification Method Group device.  
If now i want to trigger a notification flow from somewhere, i just add a actioncard/conditioncard from the Notification Methods and my dropdownlist/selectlist will only contain the Notification Flows.

I also have a Overloaded Methods group device in which i have all (other/non-notifications) flows that can be overloaded. Because overloading is enabled for this Method Group Device, in each and every Start Method action/condition-card, all the Method-flows from the Overloaded Methods are shown in the dropdownlist/selectlist, regardless of the required arguments/parameters (just like Overloading in C# for instance).

**So, most users will probebly only need to create one or two Method Group devices: one without overloading and perhapds one with overloading.**  
But if you like me are turning about all posible flows to HOOP flows, you might want more Methods Group devices to group them.

Then i think you question is: how do i start an existing flow with another (extra) trigger?  
But that question seemed to be answered in the few post above this one.  
[H.O.O.P. (Hope) - Homey Object Oriented Programming - Apps - Homey Community Forum (athom.com)](https://community.homey.app/t/h-o-o-p-hope-homey-object-oriented-programming/43709/75)  
Or are you just trying to copy the same flow and change it?

**Can you show me what new flow you created** and what you mean with “Because when I create that flow based on the method group device, it does not work unless I deactivate the flow and hoop trigger flows that I made with your help a few days ago.”?

If i understand beter what you are trying to achive and how, i can simulate it and eather show you or find the issue if its not working correctly.

---

<div class="post-metadata">

**Author:** ![Arie\_J\_Godschalk](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/arie_j_godschalk/32/63027_2.png) [@Arie\_J\_Godschalk](https://community.homey.app/u/Arie_J_Godschalk)\
**Post date:** [June 22, 2021, 2:23pm UTC](https://community.homey.app/t/h-o-o-p-hope-homey-object-oriented-programming/43709/86 "2021-06-22T14:23:54Z")

</div>

Update released: There are now triggercards (and condition-triggercards) with argument Time.

This way you can have one flow trigger at different times.

[Gedeelde Flow | Homey](https://homey.app/nl-nl/flow/ack1QE/)

---

<div class="post-metadata">

**Author:** ![Ron\_Meijsen](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/ron_meijsen/32/29929_2.png) [@Ron\_Meijsen](https://community.homey.app/u/Ron_Meijsen)\
**Post date:** [July 10, 2021, 10:01am UTC](https://community.homey.app/t/h-o-o-p-hope-homey-object-oriented-programming/43709/87 "2021-07-10T10:01:33Z")

</div>

Hi,

I have a question,

I want to create a flow that based on a trigger (roomtemp\> 26) and nobody home sends a push notification with confirmation to the first person. If not answered in 60 seconds then send the notification with confirmation to the second person.

Is it possible to call an action or flow that gets terminated after x seconds to continue with the next step?

It is not possible with standard flows. Wpuld it be possible with h.o.o.p.

Ron

---

<div class="post-metadata">

**Author:** ![Arie\_J\_Godschalk](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/arie_j_godschalk/32/63027_2.png) [@Arie\_J\_Godschalk](https://community.homey.app/u/Arie_J_Godschalk)\
**Post date:** [July 10, 2021, 10:25am UTC](https://community.homey.app/t/h-o-o-p-hope-homey-object-oriented-programming/43709/88 "2021-07-10T10:25:18Z")

</div>

Hey Ron,

H.O.O.P. does have a Wait card, in which you can enter an amount of millisecond for the card to wait before continuing with the rest of the Flow (or another).

But i think the issue is the notification-with-confirmation. I don’t believe that one exists, at least i cannot find or know of any way.

But can i asume that you want someone to act upon that first notification (like close the curtain or something to keep the heat out)?

If so, you could check for that “response” and based on the action taken after the first notification ; send a second notification or not.

---

<div class="post-metadata">

**Author:** ![Ron\_Meijsen](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/ron_meijsen/32/29929_2.png) [@Ron\_Meijsen](https://community.homey.app/u/Ron_Meijsen)\
**Post date:** [July 10, 2021, 11:46am UTC](https://community.homey.app/t/h-o-o-p-hope-homey-object-oriented-programming/43709/89 "2021-07-10T11:46:17Z")

</div>

Hi

Sorry if i was not clear. The push notification is standard in homey. See image. If use the push notification in the AND part you are asked for confirmation.

I have at the moment 2 flows for 2 family members. This is one

[https://homey.app/f/ixUegG](https://homey.app/f/ixUegG)

Do not know yet how to call a flow and wait. New to h.o.o.p. tried but did not work. Not even only a log message 😉

Thanks

Thanks

---

<div class="post-metadata">

**Author:** ![Arie\_J\_Godschalk](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/arie_j_godschalk/32/63027_2.png) [@Arie\_J\_Godschalk](https://community.homey.app/u/Arie_J_Godschalk)\
**Post date:** [July 10, 2021, 12:05pm UTC](https://community.homey.app/t/h-o-o-p-hope-homey-object-oriented-programming/43709/90 "2021-07-10T12:05:45Z")

</div>

Right, ofc its an conditioncard. Silly me.

But sorry to say, H.O.O.P. is (not yet) your solution.  
What you need is a “timeout” card. It is the second next card planned for H.O.O.P., but its not there yet.  
The Error on Timeout card will enable you to put a timeout on any conditional card en will through an Error when no response from the condition has been recieved within the allotted time.

The Error you can handle/capture within H.O.O.P. in which you could then send the second notification.

---

<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:** [July 10, 2021, 12:20pm UTC](https://community.homey.app/t/h-o-o-p-hope-homey-object-oriented-programming/43709/91 "2021-07-10T12:20:07Z")

</div>

Hi Arie & Ron. Someone at FB had the exact same question yesterday.  
A future time-out card would do the trick!

Athom (probably) never thought of "If person A ignores or says no to do X, pass it on to person B (or C etc.).

---

<div class="post-metadata">

**Author:** ![Ron\_Meijsen](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/ron_meijsen/32/29929_2.png) [@Ron\_Meijsen](https://community.homey.app/u/Ron_Meijsen)\
**Post date:** [July 10, 2021, 12:37pm UTC](https://community.homey.app/t/h-o-o-p-hope-homey-object-oriented-programming/43709/92 "2021-07-10T12:37:03Z")

</div>

Hi

Thanks for the reply and all your effort. I will await your 2nd card. Curious what the 1st next card will be.

Thanks  
Ron (nl)

---

<div class="post-metadata">

**Author:** ![Arie\_J\_Godschalk](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/arie_j_godschalk/32/63027_2.png) [@Arie\_J\_Godschalk](https://community.homey.app/u/Arie_J_Godschalk)\
**Post date:** [July 10, 2021, 12:49pm UTC](https://community.homey.app/t/h-o-o-p-hope-homey-object-oriented-programming/43709/93 "2021-07-10T12:49:25Z")

</div>

A debounce card, alowing a flow to execute once after/or only-once-at-start each of x number of seconds.  
In effect a lott of people have these kind of flows setup, so a debounce card would work reduce the number of flows people have.

---

<div class="post-metadata">

**Author:** ![Ron\_Meijsen](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/ron_meijsen/32/29929_2.png) [@Ron\_Meijsen](https://community.homey.app/u/Ron_Meijsen)\
**Post date:** [July 10, 2021, 1:02pm UTC](https://community.homey.app/t/h-o-o-p-hope-homey-object-oriented-programming/43709/94 "2021-07-10T13:02:48Z")

</div>

Great. Also very usuable…

It is hard to get all the options h.o.o.p  
has. Examples help a lot thanks.

Ron

---

<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:** [July 10, 2021, 5:55pm UTC](https://community.homey.app/t/h-o-o-p-hope-homey-object-oriented-programming/43709/95 "2021-07-10T17:55:28Z")

</div>

Do you mean “the examples help me a lot, thanks for that”  
or  
“Can I get some examples somewhere?”  
Cheers

---

<div class="post-metadata">

**Author:** ![Ron\_Meijsen](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/ron_meijsen/32/29929_2.png) [@Ron\_Meijsen](https://community.homey.app/u/Ron_Meijsen)\
**Post date:** [July 10, 2021, 7:18pm UTC](https://community.homey.app/t/h-o-o-p-hope-homey-object-oriented-programming/43709/96 "2021-07-10T19:18:57Z")

</div>

Hi

I meant they helped me a lot. But the more the better. 😁

Especially if you are not a oo programmer. I know the examples on the homey community.

Thanks  
Ron

---

<div class="post-metadata">

**Author:** ![Ron\_Meijsen](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/ron_meijsen/32/29929_2.png) [@Ron\_Meijsen](https://community.homey.app/u/Ron_Meijsen)\
**Post date:** [July 19, 2021, 1:40pm UTC](https://community.homey.app/t/h-o-o-p-hope-homey-object-oriented-programming/43709/97 "2021-07-19T13:40:14Z")

</div>

Hi,

I have a question. Why does this action not get triggered.

[https://homey.app/f/3ap-\_G](https://homey.app/f/3ap-_G)

With normal cards it does work. Am I doing something wrong?

I am running version 1.0.3

Thanks  
Ron

---

<div class="post-metadata">

**Author:** ![Arie\_J\_Godschalk](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/arie_j_godschalk/32/63027_2.png) [@Arie\_J\_Godschalk](https://community.homey.app/u/Arie_J_Godschalk)\
**Post date:** [July 19, 2021, 3:55pm UTC](https://community.homey.app/t/h-o-o-p-hope-homey-object-oriented-programming/43709/98 "2021-07-19T15:55:10Z")

</div>

Remove the Then and End If card.

---

<div class="post-metadata">

**Author:** ![Arie\_J\_Godschalk](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/arie_j_godschalk/32/63027_2.png) [@Arie\_J\_Godschalk](https://community.homey.app/u/Arie_J_Godschalk)\
**Post date:** [July 19, 2021, 3:56pm UTC](https://community.homey.app/t/h-o-o-p-hope-homey-object-oriented-programming/43709/99 "2021-07-19T15:56:36Z")

</div>

And, beter update to version 1.4.0.  
Much has been improved.

---

<div class="post-metadata">

**Author:** ![Ron\_Meijsen](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/ron_meijsen/32/29929_2.png) [@Ron\_Meijsen](https://community.homey.app/u/Ron_Meijsen)\
**Post date:** [July 19, 2021, 4:21pm UTC](https://community.homey.app/t/h-o-o-p-hope-homey-object-oriented-programming/43709/100 "2021-07-19T16:21:44Z")

</div>

Hi Arie,

I will try this. The reason why i created this short flow is because my origional flow also does not trigger.

Can you help out what i did wrong here.

[https://homey.app/f/-f5A-G](https://homey.app/f/-f5A-G)

Thanks  
Ron

---

<div class="post-metadata">

**Author:** ![Ron\_Meijsen](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/ron_meijsen/32/29929_2.png) [@Ron\_Meijsen](https://community.homey.app/u/Ron_Meijsen)\
**Post date:** [July 19, 2021, 4:49pm UTC](https://community.homey.app/t/h-o-o-p-hope-homey-object-oriented-programming/43709/101 "2021-07-19T16:49:14Z")

</div>

Hi, I updated to 1.4.0 from 1.3.0 and modified my flow to [Gedeelde Flow | Homey](https://homey.app/nl-nl/flow/IncG-G/)  
but not triggering anything.

could it be a problem with the zone activity and H.O.O.P. ? I do have another flow where I use a virtual device to start the flow there is no problem.

Ron

---

<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:** [July 19, 2021, 5:19pm UTC](https://community.homey.app/t/h-o-o-p-hope-homey-object-oriented-programming/43709/102 "2021-07-19T17:19:55Z")

</div>

Afaik at the AND section you should do something like this.  
Add a Hoop IF card  
Add zone - gang is active card  
Add a hoop card THEN  
Add your simple log card.

This flow works (tested), it switches a light on/off and writes a log if a zone becomes active / inactive:

---

<div class="post-metadata">

**Author:** ![Ron\_Meijsen](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/ron_meijsen/32/29929_2.png) [@Ron\_Meijsen](https://community.homey.app/u/Ron_Meijsen)\
**Post date:** [July 19, 2021, 6:41pm UTC](https://community.homey.app/t/h-o-o-p-hope-homey-object-oriented-programming/43709/103 "2021-07-19T18:41:17Z")

</div>

Hi Peter,  
thanks for your help  
I created this flow, but it just does not trigger. What can be wrong

[https://homey.app/nl-nl/flow/TZn40H/](https://homey.app/nl-nl/flow/TZn40H/)

ron

---

<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:** [July 19, 2021, 6:54pm UTC](https://community.homey.app/t/h-o-o-p-hope-homey-object-oriented-programming/43709/104 "2021-07-19T18:54:44Z")

</div>

YW, Ron  
Your flow looks allright, if your motion sensor state stays ON for at least a few secs that is.  
Can you check/test that?

[Previous page](https://community.homey.app/t/h-o-o-p-hope-homey-object-oriented-programming/43709.md?page=4)

[Next page](https://community.homey.app/t/h-o-o-p-hope-homey-object-oriented-programming/43709.md?page=6)
