buttonapp

package
v11.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package buttonapp demonstrates an app that displays a button in Home Assistant. When the button is pressed, the Home Assistant homepage will be opened on the device running the Go Hass Anything agent. It uses the xdg-open command-line tool.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ButtonApp

type ButtonApp struct {
	// contains filtered or unexported fields
}

func New

func New(_ context.Context) (*ButtonApp, error)

func (*ButtonApp) Configuration

func (a *ButtonApp) Configuration() []*mqttapi.Msg

func (*ButtonApp) Name

func (a *ButtonApp) Name() string

func (*ButtonApp) States

func (a *ButtonApp) States() []*mqttapi.Msg

States is unused. A button has no state.

func (*ButtonApp) Subscriptions

func (a *ButtonApp) Subscriptions() []*mqttapi.Subscription

func (*ButtonApp) Update

func (a *ButtonApp) Update(_ context.Context) error

Update is unused, there is no app data to update.

Jump to

Keyboard shortcuts

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