callApi
callApi: <T>(
method: "GET" | "POST" | "PUT" | "DELETE",
path: string,
parameters?: { [key: string]: any },
) => Promise<T>
callService
callService: (
domain: string,
service: string,
serviceData?: Record<string, any>,
target?: HassServiceTarget,
) => Promise<void>
callWS
callWS: <T>(msg: MessageBase) => Promise<T>
connected
connected: boolean
connection
connection: Connection
fetchWithAuth
fetchWithAuth: (
path: string,
init?: { [key: string]: any },
) => Promise<Response>
moreInfoEntityId
moreInfoEntityId: string
selectedLanguage
selectedLanguage: string | null
OptionalselectedTheme
selectedTheme?: string | null
sendWS
sendWS: (msg: MessageBase) => Promise<void>
services
services: HassServices
states
states: HassEntities
translationMetadata: { fragments: string[]; translations: { [lang: string]: Translation };}