engine

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2026 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadEntities

func LoadEntities() []*entity.Entity

func SetupMQTT

func SetupMQTT(onConn mqtt.OnConnectHandler) func()

func SetupScheduler

func SetupScheduler() (gocron.Scheduler, func())

Types

type EntitiesConfig

type EntitiesConfig struct {
	Buttons       []buttons.Config        `yaml:"buttons"`
	Sensors       []sensors.Config        `yaml:"sensors"`
	BinarySensors []binary_sensors.Config `yaml:"binary_sensors"`
	Switches      []switches.Config       `yaml:"switches"`
	Updaters      []updaters.Config       `yaml:"updaters"`
	Locks         []locks.Config          `yaml:"locks"`
	Images        []images.Config         `yaml:"images"`
}

func (*EntitiesConfig) LoadEntities

func (c *EntitiesConfig) LoadEntities() []*entity.Entity

type MQTTHelpers

type MQTTHelpers struct {
	Client mqtt.Client
}

func (*MQTTHelpers) Connect

func (c *MQTTHelpers) Connect()

func (*MQTTHelpers) Disconnect

func (c *MQTTHelpers) Disconnect()

func (*MQTTHelpers) SendConnect

func (c *MQTTHelpers) SendConnect()

func (*MQTTHelpers) SendDisconnect

func (c *MQTTHelpers) SendDisconnect()

Jump to

Keyboard shortcuts

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