Integrations

Groups

Spook adds actions to change the members of a group from an automation, and tells you when a group has members that no longer exist.

The group helper integration lets you combine multiple entities into a single entity. Entities that are members of a group can be controlled and monitored as a whole.

Useful to control the bulbs in a light fixture as a single light in Home Assistant, for example. Or to combine all the wall plugs behind your Christmas decorations into a single switch entity.

An repair raised by Spook for a group that has an unknown member entity.
Spook found an issue with a group that has a non-existing entity as a member.

Actions

Spook adds three actions for groups. You find them wherever you add an action, marked with a 👻. They work on groups you made in the interface, under Settings > Devices & services > Helpers.

Add members to a group

Adds entities to a group, while Home Assistant is running.

Guests staying for the weekend? Put their phones in the group that says somebody is home. Moved a lamp to the hallway? Add it to the hallway lights. Changing who is in a group used to mean opening the helper settings. Now an automation can do it. Entities already in the group stay where they are, and the new ones join at the end.

How to use it

  1. Open the automation or script that should do this, and select Add action.
  2. Search for add members, and select Group: Add members to a group 👻.
  3. Under Group, choose the group.
  4. Under Members, choose the entities that should join it.
  5. Select Save.

Just want to see it work? Try this action opens it in your Home Assistant, ready to run once.

The Actions tool with Add members to a group 👻 picked and filled in with an example.
What Try this action opens, filled in with an example.

Remove members from a group

Takes entities out of a group, while Home Assistant is running.

The other way round from Add members to a group: the guest goes home, the window closes, the lamp moves to another room. Naming something that is not in the group does nothing, and is not an error. So this is also how you clear out a member that no longer exists.

How to use it

  1. Open the automation or script that should do this, and select Add action.
  2. Search for remove members, and select Group: Remove members from a group 👻.
  3. Under Group, choose the group.
  4. Under Members, choose the entities that should leave it.
  5. Select Save.

Just want to see it work? Try this action opens it in your Home Assistant, ready to run once.

The Actions tool with Remove members from a group 👻 picked and filled in with an example.
What Try this action opens, filled in with an example.

Set the members of a group

Replaces the members of a group with the ones you give, while Home Assistant is running.

For when you know the whole list, not just what changed: a scene that decides which lights make up "the reading corner", or an automation that rebuilds a group from scratch every evening.

How to use it

  1. Open the automation or script that should do this, and select Add action.
  2. Search for set the members, and select Group: Set the members of a group 👻.
  3. Under Group, choose the group.
  4. Under Members, choose every entity the group should hold from now on.
  5. Select Save.

Just want to see it work? Try this action opens it in your Home Assistant, ready to run once.

The Actions tool with Set the members of a group 👻 picked and filled in with an example.
What Try this action opens, filled in with an example.

Repairs

Spook looks through your groups for members that no longer exist, and tells you in the repairs dashboard. New to repairs? Follow Fix your first repair.

Want Spook to leave one group alone? Keep it out on the Exclusions page of Spook's panel, or put the Excluded from Spook label on it. How that works.

Unknown source entity

A group has a member that no longer exists, usually because the entity was renamed or removed. The group carries on with the members it has left, so it does less than you think.

How to fix it: Select the repair. Spook offers to Remove the deleted members from the group for you: the ones the repair marks as deleted, which Home Assistant removed. Choose Let me fix it myself to change the group under Settings > Devices & services > Helpers instead, or Keep them, stop telling me if they are meant to come back. For a group set up in YAML, edit the group in your configuration. The repair disappears by itself once it is fixed.

Missing something here?

An action, an entity or a repair this integration should have? Say so. Stuck, or found a bug? There is help.