mirror of
https://github.com/home-assistant/developers.home-assistant.git
synced 2025-11-16 22:40:49 +00:00
897 B
897 B
title, id, original_id
| title | id | original_id |
|---|---|---|
| Handling states | version-0.72-creating_component_states | creating_component_states |
It is the responsibility of the component to maintain the states of the devices in your domain. Each device should be a single state and, if possible, a group should be provided that tracks the combined state of the devices.
A state can have several attributes that will help the frontend in displaying your state:
friendly_name: this name will be used as the name of the deviceentity_picture: this picture will be shown instead of the domain iconunit_of_measurement: this will be appended to the state in the interfacehidden: This is a suggestion to the frontend on if the state should be hidden
These attributes are defined in homeassistant.helpers.entity.