Documentation ¶
Index ¶
- Constants
- func NewTaskManager(eventBus bus.Bus, scriptService scripts.ScriptService, ...) (manager *taskManager)
- func NewTriggerManager(eventBus bus.Bus, scriptService scripts.ScriptService, ...) (manager *triggerManager)
- type Action
- type ActionBind
- type Automation
- type Condition
- type ConditionBind
- type ConditionGroup
- type Task
- type Trigger
- type TriggerBind
- type TriggerSubscriber
Constants ¶
View Source
const ActionFunc = "automationAction"
ActionFunc ...
View Source
const ConditionFunc = "automationCondition"
ConditionFunc ...
View Source
const TriggerFunc = "automationTrigger"
TriggerFunc ...
Variables ¶
This section is empty.
Functions ¶
func NewTaskManager ¶ added in v0.12.0
func NewTaskManager( eventBus bus.Bus, scriptService scripts.ScriptService, sup supervisor.Supervisor, adaptors *adaptors.Adaptors) (manager *taskManager)
NewTaskManager ...
func NewTriggerManager ¶ added in v0.12.0
func NewTriggerManager(eventBus bus.Bus, scriptService scripts.ScriptService, sup supervisor.Supervisor, adaptors *adaptors.Adaptors) (manager *triggerManager)
Types ¶
type Action ¶
Action ...
type ActionBind ¶
type ActionBind struct {
// contains filtered or unexported fields
}
Javascript Binding
Action
.callAction(entityId, action, args)
type Automation ¶
type Automation interface { Start() (err error) Shutdown() (err error) Restart() TaskIsLoaded(id int64) bool TriggerIsLoaded(id int64) bool TaskTelemetry(id int64) telemetry.Telemetry }
Automation ...
func NewAutomation ¶
func NewAutomation(lc fx.Lifecycle, eventBus bus.Bus, scriptService scripts.ScriptService, sup supervisor.Supervisor, adaptors *adaptors.Adaptors) (auto Automation)
NewAutomation ...
type Condition ¶
type Condition struct {
// contains filtered or unexported fields
}
Condition ...
func NewCondition ¶
func NewCondition(scriptService scripts.ScriptService, model *m.Condition) (condition *Condition, err error)
NewCondition ...
type ConditionBind ¶
type ConditionBind struct {
// contains filtered or unexported fields
}
ConditionBind...
func NewConditionBind ¶
func NewConditionBind(condition *Condition) *ConditionBind
Javascript Binding
Condition
type ConditionGroup ¶
ConditionGroup ...
func NewConditionGroup ¶
func NewConditionGroup(t common.ConditionType) *ConditionGroup
NewConditionGroup ...
func (*ConditionGroup) AddCondition ¶
func (c *ConditionGroup) AddCondition(condition *Condition)
AddCondition ...
func (*ConditionGroup) Check ¶
func (c *ConditionGroup) Check(entityId *common.EntityId) (state bool, err error)
Check ...
func (*ConditionGroup) Stop ¶ added in v0.12.0
func (c *ConditionGroup) Stop()
type Trigger ¶
type Trigger struct {
// contains filtered or unexported fields
}
Trigger ...
func NewTrigger ¶
func NewTrigger( eventBus bus.Bus, scriptService scripts.ScriptService, model *m.Trigger, rawPlugin triggers.IGetTrigger) (tr *Trigger, err error)
NewTrigger ...
type TriggerBind ¶
type TriggerBind struct {
// contains filtered or unexported fields
}
Javascript Binding
Trigger
type TriggerSubscriber ¶ added in v0.13.2
type TriggerSubscriber struct { Engine *scripts.EngineWatcher Subscriber triggers.Subscriber }
Click to show internal directories.
Click to hide internal directories.