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

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!

1 Like