H.O.O.P. (Hope) - Examples

Example Using one button for multiple purposes (multiple fired)

This flow can be triggered from a single source (like a button or flow-trigger) but will handle it as if the button can be clicked multiple times.
Because HOOP doesn’t have a debounce-functionality yet, i have created a Countdowntimer called PushButtonPushesResets.
I have also created (in the flow) a number variable called PushButtonPushesCount.
Where ever you see the questionmark, it’s the PushButtonPushesCount variable.

(After you create a flow-variable in flow, they flow needs to be triggered once for the variable to become visible (and to select it)).

Main Method Flow | Homey

  • Conditioncardmode is set to If-Or-Finally
  • First stop the Countdown
  • Then increase the PushButtonPushesCount with one
  • Then comes the IF PushButtonPushesCount equals 1 THEN
    • Then comes the INNER IF Light is Off THen
    • Turn light On
    • Else Turn light Off
    • End If
  • ElseIf PushButtonPushesCount equals 2 THEN dim light to 50%
  • ElseIf PushButtonPushesCount equals 3 THEN dim light to 100%
  • END IF
    And finally, in the 3th And group (watch carefull where you place it!), start the (restart) countdown with an amount of seconds (here 3 is used) which will set PushButtonPushesCount to 0 (zero).


Main Method Flow (reduced flow) | Homey


The INNER IF is replaced with a Toggle Light card.


Countdown stops Flow | Homey


Test trigger Flow | Homey

1 Like