UPDATE: Triggers (and condition-triggers) with argument Time!
This way you can have one flow trigger at different times.
Update: Its Live: H.O.O.P. | Homey Community Store
Bringing you H.O.O.P (Dutch for Hope).
Homey Object Oriented Programming (for advanced users).
This apps transforms your Homey in a programmable object, changing standard flow behavior.
Take a look at the diagrams, examples and overal usages explanations.
Create one (or more) Method Group device(s) and use it like in an Object Oriented Programming manner.
Give it (overloadable) methods which will handle their own objects (devices, flows, variables, etc), removing the need for repetitive flows.
Also allows the execution of (almost) any Actioncards (Then-Cards) (installed on your Homey) as Conditions and await them.
Or change the conditions way from âif-or-orâ to âif-or-finallyâ or âtry-catch-finallyâ so as to not have to repeat (condition)actions.
And add If, Or, Then, Else, Else-If and End-If within(!) the condition part of a flow.
Throw errors which stacktrace, handle them or just Return;
Please check all flow-cards from the App aswell as the flow-cards from the devices.
Examples
Examples will be collected on another Topic to keep it in one place:
H.O.O.P. (Hope) - Examples
App Flows Actions and Conditions
- Await - Awaits any start-able flow as condition
- Wait - A timeout, useful in Await calls
- Throw - Throws an error, useful in Await calls
App Tokens - global but always recent and scope bounded
- error
- stacktrace
Devices (and there Flows)
- Method Group - Turn flows into (awaitable) methods with arguments
- Trigger Cards - Use any triggercard in your Homey as H.O.O.P. trigger, and/or add multiple triggers as conditions, so you only need one flow!
- Action Cards - Run any ActionCard as condition
- Flow Director - Add If, Or, Then, Else, Else-If, End-If within(!) the condition part of a flow, or try-catch
- Flow Variables - In-Line scoped flow variables with javascript expressions and Json handlers with default javascript Functions that can be created in the settings.
You first need to create a Homey Elevator device.
You need to grant âdeveloperâ access rightsâ to the app.
In Homey App, add device from H.O.O.P. called Homey Elevator and follow the steps.
It wonât really create a device tho.
If you get an error, use the App Settings to Elevate the App.
Working on
- Action Cards freetextfield - Set any fieldtype (like dropdown) of any card from a textfield (so you can use variables)
- Array Adapter (to be used for example with the LaMetric Time, almost done)
- Array (text, number, boolean)
- Dictionary
- Direct (Awaiting) variable management (Action Cards allready can be used for that)
UPDATE: Multiple triggers in one flow!