Documentation ¶
Index ¶
- type Controller
- type DeviceConnector
- type NotificationAdapter
- type State
- type Waechter
- func (w *Waechter) AddDeviceConnector(connector DeviceConnector)
- func (w *Waechter) AddNotificationAdapter(adapter NotificationAdapter)
- func (w *Waechter) DeliverSensorValue(id device.Id, sensor device.Sensor, value any) bool
- func (w *Waechter) DeviceAvailable(id device.Id)
- func (w *Waechter) DeviceListUpdated(system DeviceConnector)
- func (w *Waechter) DeviceUnavailable(id device.Id)
- func (w *Waechter) DevicesWithTamper() []*device.Device
- func (w *Waechter) OpenContactSensors() []*device.Device
- func (w *Waechter) OperationalStateChanged(connector DeviceConnector)
- func (w *Waechter) RemoveDeviceConnector(id string)
- func (w *Waechter) SystemState() State
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Controller ¶ added in v0.0.5
type DeviceConnector ¶ added in v0.0.5
type NotificationAdapter ¶
type NotificationAdapter interface { Name() string NotifyAlarm(person config.Person, systemName string, a alarm.Type, device device.Spec, zone zone.Zone) bool NotifyRecovery(person config.Person, systemName string, device device.Spec, zone zone.Zone) bool NotifyLowBattery(person config.Person, systemName string, device device.Spec, zone zone.Zone, batteryLevel float32) bool NotifyLowLinkQuality(person config.Person, systemName string, device device.Spec, zone zone.Zone, quality float32) bool NotifyAutoArm(person config.Person, systemName string) bool NotifyAutoDisarm(person config.Person, systemName string) bool }
type State ¶
type Waechter ¶ added in v0.0.5
type Waechter struct {
// contains filtered or unexported fields
}
func NewWaechter ¶ added in v0.0.5
func NewWaechter() *Waechter
func (*Waechter) AddDeviceConnector ¶ added in v0.0.5
func (w *Waechter) AddDeviceConnector(connector DeviceConnector)
func (*Waechter) AddNotificationAdapter ¶ added in v0.0.5
func (w *Waechter) AddNotificationAdapter(adapter NotificationAdapter)
func (*Waechter) DeliverSensorValue ¶ added in v0.0.5
func (*Waechter) DeviceAvailable ¶ added in v0.0.5
func (*Waechter) DeviceListUpdated ¶ added in v0.0.5
func (w *Waechter) DeviceListUpdated(system DeviceConnector)
func (*Waechter) DeviceUnavailable ¶ added in v0.0.5
func (*Waechter) DevicesWithTamper ¶ added in v0.0.8
func (*Waechter) OpenContactSensors ¶ added in v0.0.8
func (*Waechter) OperationalStateChanged ¶ added in v0.0.5
func (w *Waechter) OperationalStateChanged(connector DeviceConnector)
func (*Waechter) RemoveDeviceConnector ¶ added in v0.0.5
func (*Waechter) SystemState ¶ added in v0.0.5
Source Files ¶
Click to show internal directories.
Click to hide internal directories.