get-config

Parse Home Assistant configuration from environment variables

HASS_TOKEN - access token HASS_WS_PATH - url path portion for the websocket API HASS_HTTP_PATH - url path portion for the HTTP API HASS_HOST - home assistant host HASS_PORT - home assistant port

Note - will supply the correct default values for the http and websocket path segment. When executed in the context of an addon, no environment variables need to be supplied

Name get-config
Type Function
Path packages/hass-ts/src/lib/core/get-config.ts

Signature

    getConfig: () => HassConfig 

Return Value

HassConfig