Documentation
¶
Index ¶
- Constants
- type OpFritz
- func (m *OpFritz) DeviceSuggestions() map[string]string
- func (m *OpFritz) ExecuteDynamic(ctx *base.Context, fn string, args base.FunctionArguments, ...) *base.OperatorIO
- func (m *OpFritz) GetDefaultConfig() interface{}
- func (m *OpFritz) GetDeviceByAIN(ctx *base.Context, AIN string) (*freepslib.AvmDevice, error)
- func (m *OpFritz) GetDeviceMap(ctx *base.Context) (map[string]freepslib.AvmDevice, error)
- func (m *OpFritz) GetDeviceNamespace() freepsstore.StoreNamespace
- func (m *OpFritz) GetDevices(ctx *base.Context) *base.OperatorIO
- func (m *OpFritz) GetDynamicArgSuggestions(fn string, arg string, otherArgs base.FunctionArguments) map[string]string
- func (m *OpFritz) GetDynamicFunctions() []string
- func (m *OpFritz) GetDynamicPossibleArgs(fn string) []string
- func (m *OpFritz) GetNetworkDeviceNamespace() freepsstore.StoreNamespace
- func (m *OpFritz) GetTemplateNamespace() freepsstore.StoreNamespace
- func (m *OpFritz) GetTemplates() map[string]string
- func (m *OpFritz) InitCopyOfOperator(ctx *base.Context, config interface{}, name string) (base.FreepsOperatorWithConfig, error)
- func (o *OpFritz) Shutdown(ctx *base.Context)
- func (o *OpFritz) StartListening(ctx *base.Context)
Constants ¶
const BatterylowAlertDuration = 5 * time.Minute
const BatterylowSeverity = 5
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 ¶
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 ¶
GetDeviceByAIN returns the device object for the device with the given AIN
func (*OpFritz) GetDeviceMap ¶
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 (*OpFritz) GetDynamicFunctions ¶
func (*OpFritz) GetDynamicPossibleArgs ¶
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 ¶
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) StartListening ¶
StartListening currently only tries to log in and catches the initial device state