api

package
v0.24.3 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2024 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const (
	HA_STATE_PREFIX = "homeassistant.states"
)

Variables

This section is empty.

Functions

func Close

func Close()

func InitAPI added in v0.23.0

func InitAPI(parentLogger *slog.Logger, parentConfig *config.HatsConfig, readme []byte)

func Listen

func Listen(parentLogger *slog.Logger, parentConfig *config.HatsConfig, readme []byte) error

Types

type CreateScheduleData

type CreateScheduleData struct {
	Cron string `json:"cron"`
}

type StartTimerData

type StartTimerData struct {
	Duration string `json:"duration"`
	Force    bool   `json:"force"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳