---
title: "Devices & entities"
description: "Spook adds a Home Assistant device with buttons to reload and restart, and sensors that count your entities, helpers, automations, devices, integrations and more."
canonical_url: "https://spook.boo/devices-entities"
---
# Devices & entities

> Spook adds a Home Assistant device with buttons to reload and restart, and sensors that count your entities, helpers, automations, devices, integrations and more.

Besides all the new actions for Home Assistant itself, Spook adds a device with entities that are all about Home Assistant. It turns Home Assistant into an integration of its own: buttons to reload and restart it, and sensors that count what is in your setup.

To find them, go to **Settings** > **Devices & services**, select **Spook**, and open the device called **Home Assistant**.

![A new device that provides control over your Home Assistant itself.](https://spook.boo/images/screenshots/en/light/device-home-assistant.webp)

Spook added devices and entities for Home Assistant itself.

## Devices & entities

Spook adds one device, called **Home Assistant**, with the entities below. You use them like any other entity: on a dashboard, in an automation, or in a template.

### Buttons

Two buttons for the things you otherwise dig through menus for. Put them on an admin dashboard, and reloading or restarting is one tap away. On the device page, you find them under **Configuration**.

#### Reload Home Assistant

*Default entity ID: `button.homeassistant_reload`*

Reloads all of your YAML configuration that Home Assistant can reload without a restart, with a single press. It runs Home Assistant's own **Reload all** action. Handy right after you changed a YAML file.

#### Restart Home Assistant

*Default entity ID: `button.homeassistant_restart`*

Restarts Home Assistant with a single press. This is the normal, careful restart: Home Assistant checks your configuration first, and refuses to restart when it is broken. Need more force? That is the [Restart](https://spook.boo/misc#restart) action.

### Sensors

Counters, lots of them. How many lights do you have? How many automations? Did that integration you just removed really take its entities with it? These sensors tell you. They keep history too, so you can watch your setup grow over time. They are diagnostic entities, so you find them under **Diagnostic** on the device page, and add the ones you care about to a dashboard yourself.

#### Total number of entities

*Default entity ID: `sensor.entities`*

The total number of entities in your system (including this one).

**Technical details**

This counts every entity that has a state, whether it is in the entity registry or not.

- Entities from YAML, zones and the sun are counted too.
- Disabled entities have no state, so they are not counted.
- The entities page in Home Assistant filters some entities out by default, so its count can differ.

#### Total number of entities per entity type

For each type of entity, like lights or sensors, a sensor counts how many of that type you have. Good for a quick "how many lights do I have" on a dashboard.

**Technical details**

The default entity ID is listed after each sensor below.

- Number of `air_quality` entities (`sensor.air_quality`)
- Number of `alarm_control_panel` entities (`sensor.alarm_control_panels`)
- Number of `binary_sensor` entities (`sensor.binary_sensors`)
- Number of `button` entities (`sensor.buttons`)
- Number of `calendar` entities (`sensor.calendars`)
- Number of `camera` entities (`sensor.cameras`)
- Number of `climate` entities (`sensor.climate`)
- Number of `cover` entities (`sensor.covers`)
- Number of `date` entities (`sensor.dates`)
- Number of `datetime` entities (`sensor.datetimes`)
- Number of `device_tracker` entities (`sensor.device_trackers`)
- Number of `fan` entities (`sensor.fans`)
- Number of `humidifier` entities (`sensor.humidifiers`)
- Number of `image` entities (`sensor.images`)
- Number of `light` entities (`sensor.lights`)
- Number of `lock` entities (`sensor.locks`)
- Number of `media_player` entities (`sensor.media_players`)
- Number of `number` entities (`sensor.numbers`)
- Number of `remote` entities (`sensor.remotes`)
- Number of `select` entities (`sensor.selects`)
- Number of `sensor` entities (`sensor.sensors`)
- Number of `siren` entities (`sensor.sirens`)
- Number of `stt` entities (`sensor.stt`)
- Number of `switch` entities (`sensor.switches`)
- Number of `text` entities (`sensor.texts`)
- Number of `time` entities (`sensor.times`)
- Number of `todo` entities (`sensor.todos`)
- Number of `tts` entities (`sensor.tts`)
- Number of `vacuum` entities (`sensor.vacuums`)
- Number of `update` entities (`sensor.update`)
- Number of `water_heater` entities (`sensor.water_heaters`)
- Number of `weather` entities (`sensor.weather`)

#### Total number of helpers per type

For each kind of helper with its own entity type, like toggles and counters, a sensor counts how many you have.

**Technical details**

The default entity ID is listed after each sensor below.

- Number of `counter` helpers (`sensor.counters`)
- Number of `input_boolean` helpers (`sensor.input_booleans`)
- Number of `input_button` helpers (`sensor.input_buttons`)
- Number of `input_datetime` helpers (`sensor.input_datetimes`)
- Number of `input_number` helpers (`sensor.input_numbers`)
- Number of `input_select` helpers (`sensor.input_selects`)
- Number of `input_text` helpers (`sensor.input_texts`)
- Number of `timer` helpers (`sensor.timers`)

#### Other counters

But wait, there are more counters! Areas, automations, devices, integrations and more each get a sensor too.

**Technical details**

The default entity ID is listed after each sensor below.

- Number of areas (`sensor.areas`)
- Number of automations (`sensor.automations`)
- Number of custom integrations installed (`sensor.custom_integrations`)
- Number of devices (`sensor.devices`)
- Number of groups (`sensor.groups`)
- Number of integrations in use (`sensor.integrations`)
- Number of persistent notifications (`sensor.persistent_notifications`)
- Number of persons (`sensor.persons`)
- Number of scenes (`sensor.scenes`)
- Number of scripts (`sensor.scripts`)
- Number of suns (`sensor.suns`)
- Number of zones (`sensor.zones`)

The number of devices counts every device in the device registry, disabled ones included. The devices page in Home Assistant filters some out by default, like disabled ones, so its count can be lower.

## Blueprints & tutorials

There are no known blueprints or tutorials for these entities yet. Made one, or found one? [Let us know in our discussion forums](https://github.com/frenck/spook/discussions).

## Feature requests, ideas, and support

Got an idea to take this further, like a new action, entity or repair? [Let us know in our discussion forums](https://github.com/frenck/spook/discussions).

Stuck, or found a bug? The [Support](https://spook.boo/support) page tells you where to go for help.


## Sitemap

See the full [sitemap](https://spook.boo/sitemap.md) for all pages.
