Type alias THomeassistantEntity<TAttributes, TState>

THomeassistantEntity<TAttributes, TState>: HassEntity & {
    attributes: TAttributes;
    state: TState;
}

Type of single entity data returned by API

type LightAttributes = { brightness: number }
type LightState = 'on' | 'off'
type LightEntity = THomeassistantEntity<LightAttributes, LightState>

Type Parameters

  • TAttributes

    Type of entity attributes attribute.

  • TState

    Type of entity state attribute.

Generated using TypeDoc