About
This Homey App allows you to combine multiple inputs, or states, into sets and act upon changes of the states in those sets.
For example, this can be used to combine multiple motion sensors located in a single room into a set and turn on lights in that room when at least one of the motion sensors is triggered, and turn of the lights after no motion has been observed for a while.
Using the settings page, sets and states are created. After that, these sets and states are available to be used in flows.
The following flow actions are available:
- Activate or deactivate a state in a set without changing the other states,
- Activate one state in a set and deactivate the others, or
- Activate a state in a set temporarily, or
- Activate a state in a set after a delay, or
- Activate or deactivate all states in a set.
The following triggers are available to trigger flows:
- A specific state is activated or deactivated, or
- The set changes from having no states active to having one or more states active, or
- The set changes from having all states active to having one or more states inactive, or
- Trigger on any change in a set (useful in combination with conditions)
The following conditions are available:
- No states of a set are active, or
- All states of a set are active, or
- A specific state of a set is active
Changelog
v0.4.0: * New touch friendly settings page for Homey v2
v0.3.3: * If ‘Activate state delayed’ action was executed on a state that had a timer running, the timer would not be stopped. * If ‘Deactivate state’ action was executed on a stated with a delay timer (so not active yet), that delay would not get cancelled.
v0.3.2: * Fixed bug that could cause states with empty label to be created
v0.3.1: * Updated to SDK 2
v0.3.0: * Added Dutch translation for settings * Added option to copy states from another set * Fixed a crash
v0.2.1: * Small fix for Homey firmware 1.5
v0.2.0: * Added Activate exactly one and Activate state delayed actions
v0.1.1: * Auto-restore feature added: sets and states will be re-created using info in flows.
v0.0.1: * Initial release
Settings
The settings page allows you to create and remove sets, and add and remove states from these sets. Before removing states and sets, make sure no flows use them anymore, otherwise they will be recreated as soon as a flow uses them.
The settings also show the current state of the sets. States with a white background are not active, states with a green background are active, while states with a blue background are active temporarily and will be deactivated when the timer listed after the state reaches 0.
States can also be changed directly from the settings page, this is useful for debugging flows. Clicking a state will toggle it between the active and inactive states.
Auto restore feature
When a flow accesses a set or state that is not configured, the set or state will be created. This is useful for when the settings of this app have been lost, but the flows still exist.
Flows
The following cards are available to be used in flows:
Action cards
ACTIVATE STATE
Arguments: set, state
Activate state in set.
ACTIVATE STATE TEMPORARILY
Arguments: set, state, timeout
Activate state in set for timeout seconds, then deactivate it.
If the state gets updated (either activated or deactivated) by another action before the timer ends, the timeout is cancelled.
ACTIVATE STATE DELAYED
Arguments: set, state, delay
Activate state in set after delay seconds if it is deactivated.
If the state is already active, does nothing. If the state has a timer running, the timer is cancelled.
If the state gets updated (either activated or deactivated) by another action before the timer ends, the delay is cancelled.
DEACTIVATE STATE
Arguments: set, state
Deactivate state in set.
ACTIVATE ALL STATES
Arguments: set
Activate all states in set.
DEACTIVATE ALL STATES
Arguments: set
Deactivate all states set.
ACTIVATE EXACTLY ONE
Arguments: set, state
Activate state in set and deactivate all other states in set
Trigger cards
SOME STATES ACTIVE
Arguments: set
Triggers the flow when no states were previously active in set and one or more states becomes active.
NO STATES ACTIVE
Arguments: set
Triggers the flow when some states were previously active in set and all states have become inactive.
CHANGE NONE/SOME STATES ACTIVE
Arguments: set
Triggers the flow when set changes between having no states active to having some states active, or vise versa.
ALL STATES ACTIVE
Arguments: set
Triggers the flow when not all states were previously active in set and all states have now become active.
NOT ALL STATES ACTIVE
Arguments: set
Triggers the flow when all states were previously active in set and now some states are not active.
CHANGE ALL/NOT ALL STATES ACTIVE
Arguments: set
Triggers the flow when set changes between having all states active to having some states active, or vise versa
STATE ACTIVATED
Arguments: set, state, trigger
Triggers the flow when state is activated in set.
If trigger is set to changed, this will only trigger when the state was previously not active. If trigger is set to always, this will trigger whenever the state is activated by an action, even if it already was.
STATE DEACTIVATED
Arguments: set, state, trigger
Triggers the flow when state is deactivated in set.
If trigger is set to changed, this will only trigger when the state was previously active. If trigger is set to always, this will trigger whenever the state is deactivated, even if it already was.
CHANGE
Arguments: set
Triggers the flow whenever there is a change is set, ie. whenever a state changes from active to inactive, or vice versa.
Condition cards
NO STATES ACTIVE
Arguments: set
Considered true when no states are active in set
STATES ACTIVE
Arguments: set
Considered true when some or all states are active in set
ALL STATES ACTIVE
Arguments: set
Considered true when all states are active in set
NOT ALL STATES ACTIVE
Arguments: set
Considered true when some or no states are active in set
STATE ACTIVE
Arguments: set, state
Considered true when the given state is active in set
STATE NOT ACTIVE
Arguments: set, state
Considered true when the given state is not active in set
Acknowledgements
App icon and store images made with icons by Freepik from www.flaticon.com
Read more ›