Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInvalidResponse = errors.New("invalid response")
Functions ¶
This section is empty.
Types ¶
type HassClient ¶
type HassClient struct {
// contains filtered or unexported fields
}
func Connect ¶
func Connect(url, token string) *HassClient
func (*HassClient) Close ¶
func (client *HassClient) Close()
func (*HassClient) SendNotification ¶
func (client *HassClient) SendNotification(deviceId, title, message string, config NotificationConfig) error
func (*HassClient) SubscribeStateChanges ¶
func (client *HassClient) SubscribeStateChanges() (<-chan StateChange, func())
type NotificationConfig ¶
type StateChange ¶
Click to show internal directories.
Click to hide internal directories.