Back to Support

How to use Tags and Logic for more advanced Flows

Homey's Flow Editor is really powerful. Because Homey connects with so many devices, there are tons of possibilities to create. To make Homey even more powerful, you can use tags and a logic block in the Flow Editor. Warning: this is slightly more advanced. Let's get started!

Using tags from a 'when'-card

When a Flow is started by an event, e.g. someone coming home, the event may contain additional information. These are colored labels, 'tags', hanging on the 'when'-card. It is possible to use these throughout your 'and' and 'then' cards.

Simply drag the tag from the 'when'-card to a blue glowing input field in a 'and' or 'then' card.

When John comes home, Homey will say 'Welcome home, John!'.

Using tags from the Tags-list

Additionally to the 'when'-card, some tags are available at all times. E.g. the current time or the current temperature from a thermostat. It is possible to use these throughout your 'when', 'and' and 'then' cards.

To do so, click 'Tags' in the top bar, and drag a tag to a blue glowing input field.

The color of the tag identifies what kind of type a tag is (text, number or yes/no). Fields in a Flow card can accept none, one or multiple of these types. When dragging a tag compatible fields in a card will glow blue.

When the sun rises, Homey will (for example) say 'The time is 08:24'.

Using Logic in a Flow

If you're not scared of a little programming, add a Logic card to your Flow to create really advanced Flows.

At 18:00, when the current temperature is less than 22°, set the thermostat to 25°.

You can even create your own tags by creating a variable, and use them later on. For example: when the last person leaves home, set this in our own Last person variable.

And when you ask who was the last person to leave, Homey will say the name of that person.

It is even possible to use math in your Flows! Enclose an equation by {{ ... }}. For example, {{ 2 * 3 }} will result in 6. Of course, you can drag any tag in this equation. For example to calculate the total energy costs, multiply your energy meter's value by 0.22, or whichever your energy price is.