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

**URL:** <https://community.homey.app/t/h-o-o-p-hope-examples/45114>\
**Category:** Tutorials\
**Tags:** app, tools, tutorial, flow\
**Created:** [March 23, 2021, 6:05am UTC](https://community.homey.app/t/h-o-o-p-hope-examples/45114 "2021-03-23T06:05:48Z")\
**Posts on this page:** 1\
**Showing post:** 15

<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:** [April 23, 2021, 7:13pm UTC](https://community.homey.app/t/h-o-o-p-hope-examples/45114/15 "2021-04-23T19:13:01Z")

</div>

**Example: A 5-function-sequence-click (pulse) button**

2 flows needed  
– You can add as much steps as you like! (with respect to Homey’s limits)

- Expected functionality:  
Clicking within x secs follows the sequence;  
Clicking after those x secs, should always turn the light off.  
(So no need for remembering how many clicks are needed here).

- Sequence:

- 
  - 1st click = `dim light to 20% `

- 
  - 1st click after x secs = `turn light off`

- 
  - 2nd click = `dim light to 30%`

- 
  - 3rd click = `dim light to 50%`

- 
  - 4rd click = `dim light to 100%`

- 
  - 5th click = `turn light off`

You could use H.O.O.P. Flow Variables cards, but I chose to use BetterLogics variables.

- NumVar used: `Eettafel1btnCount`

- Chronograph timer used: `Eettafel1btnCountTmr`

- 
  - _Note, on the BL cards, the zero isn’t shown_

- **Flow 1: The sequence function & steps & timer trigger**

- **Flow 2: The resetting of the Variable**

Have fun. Questions, suggestions, improvements welcome!

---

_[View the full topic](https://community.homey.app/t/h-o-o-p-hope-examples/45114)._
