alarm

package
v0.0.0-...-1d33483 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2025 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Plugins map[string]plugininterface.Plugin

Functions

func Alarm

func Alarm(mqttMessage types.Z2MSmoke, smokeDetector tables.SmokeDetector)

func GetAllPlugins

func GetAllPlugins() []string

func Init

func Init()

Types

type PluginConfig

type PluginConfig struct {
	PluginName string
}

func (*PluginConfig) DeleteConfig

func (p *PluginConfig) DeleteConfig(config types.AlarmConfig) error

func (*PluginConfig) GetConfig

func (p *PluginConfig) GetConfig(id uint) types.AlarmConfig

func (*PluginConfig) ListConfig

func (p *PluginConfig) ListConfig(filter types.AlarmConfig) []types.AlarmConfig

func (*PluginConfig) SetConfig

func (p *PluginConfig) SetConfig(config types.AlarmConfig) error

Source Files

  • alarm.go
  • getPlugins.go
  • init.go
  • pluginConfig.go

Jump to

Keyboard shortcuts

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