Skip to content

Sets 1.12.0+

Sets are collections of boolean states that can be evaluated as a group.
A set is active when any of its states is active, making it easy to coordinate related conditions without complex logic.

Think of a set as a named group of on/off switches where you can check if any switch is on, if all switches are on, or trigger flows when specific switches change.

How it works

Sets help you organize related boolean values into logical groups.
Each set has a name, and within that set you define multiple states that are either active or inactive.

Sets are useful for:

  • Grouping related conditions that you want to evaluate together
  • Managing presence detection across multiple rooms
  • Tracking which devices or zones are currently in use
  • Coordinating multiple boolean states with a single check
  • Building flexible automation without creating many individual flags

For example, a presence set could contain states for each room: living_room, kitchen, bedroom.
You can then check if anyone is home by seeing if any state in the set is active, or check if everyone is home by seeing if all states are active.

Flow cards

These flow cards let you activate, deactivate, toggle, or check states within your sets, enabling powerful group-based logic.

Actions

FlowBits
Activate all states in set Presence
Activates all states in the set.
FlowBits
Activate state Living room in set Presence
Activates a single state within the set.
FlowBits
Activate state Kitchen exclusively in set Presence
Activates a state exclusively, deactivating all other states in the set.
FlowBits
Activate state Office exclusively in set Presence for 30 minutes
Activates a state exclusively for a specified duration, then deactivates it.
FlowBits
Activate state Bathroom in set Presence for 15 minutes
Activates a state for a specified duration, then automatically deactivates it.
FlowBits
Deactivate all states in set Presence
Deactivates all states in the set.
FlowBits
Deactivate state Bedroom in set Presence
Deactivates a single state within the set.
FlowBits
Toggle state Garage in set Presence
Toggles a state between active and inactive.
FlowBits
Toggle state Hall in set Presence for 5 minutes
Toggles a state, and if activated, automatically deactivates it after the specified duration.

Conditions

FlowBits
All states in set Presence are active
Checks if all states in the set are active.
FlowBits
Any state in set Presence is active
Checks if any state in the set is active.
FlowBits
Set Presence is inactive
Checks if all states in the set are inactive.
FlowBits
State Living room in set Presence is active
Checks if a specific state within the set is active.

Triggers

FlowBits
All states in set Presence become active
Triggers when all states in the set become active.
FlowBits
Any state in set Presence becomes active
Triggers when at least one state in the set becomes active (transitioning from all inactive to at least one active).
FlowBits
State in set Presence becomes inactive
Triggers when a previously active state becomes inactive.
FlowBits
Set Presence becomes inactive
Triggers when all states in the set become inactive (transitioning from at least one active to all inactive).
FlowBits
Not all states in set Presence are active anymore
Triggers when not all states in the set are active anymore.
FlowBits
Set Presence changed
Triggers when any state in the set changes.
FlowBits
State Living room in set Presence is activated
Triggers when a specific state is activated.
FlowBits
State Kitchen in set Presence changed
Triggers when a specific state changes.
FlowBits
State Bedroom in set Presence is deactivated
Triggers when a specific state is deactivated.

Examples

Room presence tracking

Create a presence set with states for each room: living_room, kitchen, bedroom, office.
Activate the corresponding state when motion is detected in a room.
Check if any state is active to know if someone is home, or use all states inactive to trigger "away" mode.

Device status monitoring

Use a charging set to track which devices are currently charging: phone, tablet, laptop.
Activate states when devices start charging, deactivate when they finish.
Get a notification when all devices are fully charged.

Zone management

Create a security set with states for each zone: ground_floor, first_floor, garage, garden.
Activate states when a zone is armed, deactivate when disarmed.
Check if all zones are armed before activating full security mode.

Multi-room audio

Use a playing set to track which rooms are playing audio: living_room, kitchen, bedroom.
When music starts in a room, activate that state exclusively to pause other rooms automatically.

Notes

  • Sets are global and can be used in any flow.
  • States persist across reboots.
  • You can activate multiple states simultaneously or use exclusive activation for mutual exclusion.
  • States can automatically deactivate after a duration, useful for temporary activations.
  • Use descriptive names for both sets and states to keep your system organized.
  • Customize set icons and colors from app settings for better visualization.