Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface HomeAssistant

Hierarchy

  • HomeAssistant

Index

Properties

auth

auth: Auth

config

config: HassConfig

connected

connected: boolean

connection

connection: Connection

dockedSidebar

dockedSidebar: boolean

language

language: string
deprecated

Use locale.language instead

Optional locale

localize

localize: LocalizeFunc

moreInfoEntityId

moreInfoEntityId: string

panelUrl

panelUrl: string

panels

panels: Panels

resources

resources: Resources

selectedLanguage

selectedLanguage: string

Optional selectedTheme

selectedTheme?: null | string

services

services: HassServices

states

states: HassEntities

themes

themes: Themes

translationMetadata

translationMetadata: { fragments: string[]; translations: {} }

Type declaration

  • fragments: string[]
  • translations: {}

user

Methods

callApi

  • callApi<T>(method: "GET" | "POST" | "PUT" | "DELETE", path: string, parameters?: {}): Promise<T>
  • Type parameters

    • T

    Parameters

    • method: "GET" | "POST" | "PUT" | "DELETE"
    • path: string
    • Optional parameters: {}
      • [key: string]: any

    Returns Promise<T>

callService

  • callService(domain: string, service: string, serviceData?: {}): Promise<void>
  • Parameters

    • domain: string
    • service: string
    • Optional serviceData: {}
      • [key: string]: any

    Returns Promise<void>

callWS

  • callWS<T>(msg: MessageBase): Promise<T>
  • Type parameters

    • T

    Parameters

    • msg: MessageBase

    Returns Promise<T>

fetchWithAuth

  • fetchWithAuth(path: string, init?: {}): Promise<Response>
  • Parameters

    • path: string
    • Optional init: {}
      • [key: string]: any

    Returns Promise<Response>

sendWS

  • sendWS(msg: MessageBase): Promise<void>

Generated using TypeDoc