homeassistant

package
v1.2.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 28, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

Package homeassistant provides a listener for listening to events from home assistant mqtt channels.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(options Options) listener.Listener

New creates a new Home Assistant destination.

Types

type HomeAssistant

type HomeAssistant struct {
	listener.Listener
	// contains filtered or unexported fields
}

HomeAssistant is a listener for home assistant events.

func (*HomeAssistant) Listen

func (h *HomeAssistant) Listen(device *tplinkModel.Device, client mqtt.Client, callback listener.StateChangedCallback) error

Listen listens for events on home assistant mqtt channels.

type Options

type Options struct {
	Timeout int
	Subnet  string
}

Options is a struct for storing options for the home assistant listener.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL