Documentation ¶
Index ¶
Constants ¶
View Source
const ( Sensor = "sensor" BinarySensor = "binary_sensor" AlarmPanel = "alarm_control_panel" Light = "light" Switch = "switch" Script = "script" )
Variables ¶
View Source
var StatePath = "states/%s.%s"
Functions ¶
This section is empty.
Types ¶
type HomeAssistant ¶
type HomeAssistant struct { URL string // contains filtered or unexported fields }
HomeAssistant - main struct that the user will use
func NewHomeAssistant ¶
func NewHomeAssistant(host string, port int, bearer string) (ha *HomeAssistant)
Creates Home Asisstnat object, initialize httpClient
func (*HomeAssistant) Connect ¶
func (ha *HomeAssistant) Connect() error
Connect - Checks connection with HomeAssistant and its availability
Click to show internal directories.
Click to hide internal directories.