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: 7 Imported by: 0

Documentation

Overview

Package homeassistant provides a destination which submits events to mqtt queues for consumption by home assistant.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(options Options) destination.Destination

New creates a new Home Assistant destination.

Types

type HomeAssistant

type HomeAssistant struct {
	destination.Destination
	// contains filtered or unexported fields
}

HomeAssistant is a destination for home assistant events.

func (*HomeAssistant) Publish

func (h *HomeAssistant) Publish(device *tplink.Device, client mqtt.Client) error

Publish publishes the device state to Home Assistant

type Options

type Options struct {
}

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

Jump to

Keyboard shortcuts

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