Skip to content

Labels 1.7.0+

Labels let you store and retrieve custom text values in your flows.
A label is a named container that holds a single string value, which you can set, check, or clear from any flow.

Labels are ideal for passing dynamic information between flows or storing state that doesn't fit into simple on/off logic.

How it works

Each label stores one text value at a time.
Setting a new value replaces the previous one. You can also clear a label to remove its value entirely.

Labels are useful for:

  • Storing the last person who triggered a motion sensor
  • Keeping track of which device was used most recently
  • Passing messages or context between different flows
  • Creating dynamic notifications based on stored information

Labels are not tied to any specific device. They hold arbitrary text values you define.

Flow cards

These flow cards let you set, clear, and check labels directly from your flows.

Actions

FlowBits
Set label Last Motion to Living Room
Set a label to a specific text value.
FlowBits
Clear label Last Motion
Clear a label, removing its stored value.

Conditions

FlowBits
Label Last Motion has value Kitchen
Checks if a label has a specific value.

Triggers

FlowBits
Label Active Room becomes Bedroom
Triggers when a label is set to a specific value.
FlowBits
Label Current User changed
Triggers only when a label's value is set. Does not trigger when the label is cleared. Provides the new value as a token.
FlowBits
Label Current User is cleared
Triggers only when a label is cleared (value removed).
FlowBits
Label Current User changed or cleared
Triggers when a label's value is set or when it is cleared. Provides the new value as a token, or the literal string '-' when the label is cleared. Use this if you need to react to any change, including clears.

Examples

Track last motion location

When motion is detected in any room, set a label to the room name. Other flows can then use this information to determine where someone is.

Dynamic greetings

Store the name of the last person who arrived home. Use this label in a greeting notification to personalize the message.

Device context

Track which remote or button was pressed last. Use this information to determine which device should respond to a follow-up action.

Notes

  • Labels store text values only—use sliders for numeric values.
  • Clearing a label removes its value; it will no longer pass the "has value" condition.
  • Use descriptive names to keep your automations easy to understand.