fritz

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const BatterylowAlertDuration = 5 * time.Minute
View Source
const BatterylowSeverity = 5
View Source
const WindowOpenSeverity = 2

Variables

This section is empty.

Functions

This section is empty.

Types

type OpFritz

type OpFritz struct {
	CR *utils.ConfigReader
	GE *freepsgraph.GraphEngine
	// contains filtered or unexported fields
}

func (*OpFritz) DeviceSuggestions

func (m *OpFritz) DeviceSuggestions() map[string]string

DeviceSuggestions returns a map of all device names and AINs

func (*OpFritz) ExecuteDynamic

func (m *OpFritz) ExecuteDynamic(ctx *base.Context, fn string, args base.FunctionArguments, input *base.OperatorIO) *base.OperatorIO

ExecuteDynamic executes a dynamic function

func (*OpFritz) GetDefaultConfig

func (m *OpFritz) GetDefaultConfig() interface{}

GetDefaultConfig returns the default config for the http connector

func (*OpFritz) GetDeviceByAIN

func (m *OpFritz) GetDeviceByAIN(ctx *base.Context, AIN string) (*freepslib.AvmDevice, error)

GetDeviceByAIN returns the device object for the device with the given AIN

func (*OpFritz) GetDeviceMap

func (m *OpFritz) GetDeviceMap(ctx *base.Context) (map[string]freepslib.AvmDevice, error)

GetDeviceMap returns all devices by AIN

func (*OpFritz) GetDeviceNamespace

func (m *OpFritz) GetDeviceNamespace() freepsstore.StoreNamespace

GetDeviceNamespace returns the namespace for the device cache

func (*OpFritz) GetDevices

func (m *OpFritz) GetDevices(ctx *base.Context) *base.OperatorIO

GetDevices returns a map of all device AINs

func (*OpFritz) GetDynamicArgSuggestions

func (m *OpFritz) GetDynamicArgSuggestions(fn string, arg string, otherArgs base.FunctionArguments) map[string]string

func (*OpFritz) GetDynamicFunctions

func (m *OpFritz) GetDynamicFunctions() []string

func (*OpFritz) GetDynamicPossibleArgs

func (m *OpFritz) GetDynamicPossibleArgs(fn string) []string

func (*OpFritz) GetNetworkDeviceNamespace

func (m *OpFritz) GetNetworkDeviceNamespace() freepsstore.StoreNamespace

GetNetworkDeviceNamespace returns the namespace for the network device cache

func (*OpFritz) GetTemplateNamespace

func (m *OpFritz) GetTemplateNamespace() freepsstore.StoreNamespace

GetTemplateNamespace returns the namespace for the template cache

func (*OpFritz) GetTemplates

func (m *OpFritz) GetTemplates() map[string]string

GetTemplates returns a map of all templates IDs

func (*OpFritz) InitCopyOfOperator

func (m *OpFritz) InitCopyOfOperator(ctx *base.Context, config interface{}, name string) (base.FreepsOperatorWithConfig, error)

InitCopyOfOperator creates a copy of the operator

func (*OpFritz) Shutdown

func (o *OpFritz) Shutdown(ctx *base.Context)

Shutdown (noOp)

func (*OpFritz) StartListening

func (o *OpFritz) StartListening(ctx *base.Context)

StartListening currently only tries to log in and catches the initial device state

Jump to

Keyboard shortcuts

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