Skip to main content
Version: Next

Entity State

Smart home

Display the state of an entity and toggle it optionally

The entity state enables you to display the current state of an entity. This works with most entities and enables you display almost any data. It is recommended that you transform data on the integration as much as possible since Homarr's capabilities in transformation are very limited.

Screenshots​

smart-home-entity-state sun smart-home-entity-state light-switch smart-home-entity-state temperature

Supported Integrations​

Home Assistant icon
Home AssistantHome Assistant is an open-source home automation platform that focuses on privacy and local control, allowing you to automate and control your smart home devices.
Details

Interactions​

  • Toggle entity state by clicking on the entity (only when clickable enabled).

Adding the widget​

You can find how to add the widget on the Widgets documentation page.

Configuration​

NameDescriptionValuesDefault value
Entity IDThe ID of the entity to display. This can be any entity that is available in your smart home integration.Stringsun.sun
Display NameDisplay name for the entity, if not set the entity ID will be used.StringSun
Entity unitOptional unit for the entity (will be displayed after the value).String
ClickableIf enabled, the entity will be clickable and will toggle the state of the entity.yes / nono

How to find the entity ID​

To find the entity ID in Home Assistant, follow these steps:

  1. Open Home Assistant and go to the Developer Tools section (usually found in the sidebar).
  2. Click on the States tab.
  3. In the list of entities, find the entity you want to use.
  4. The entity ID will be displayed in the format domain.object_id (e.g., light.living_room_light).
  5. Copy the entity ID and paste it into the widget configuration in Homarr. It will then show the State that is visible in Home Assistant.
homeassistant retrieve-entity-id