Load data about entity by ID.
type LightAttributes = { brightness: number }type LightState = 'on' | 'off'const { state, attributes: { friendly_name } } = useEntity<LightAttributes, LightState>('entity.example_light')
Entity object, if found.
Type of entity attributes attribute.
attributes
Type of entity state attribute.
state
full entity ID as displayed in Homeassistant
Generated using TypeDoc
Load data about entity by ID.
Returns
Entity object, if found.