Documentation ¶
Index ¶
- type Action
- type Device
- type Devices
- func (d *Devices) ActionForDevice(name, cmd string) (*Action, error)
- func (d *Devices) Create(def []string, enabled bool, icon string) (*Device, error)
- func (d *Devices) Device(name string) *Device
- func (d *Devices) Devices() []*Device
- func (d *Devices) EnableDisable(name string, val bool)
- func (d *Devices) Relays() []string
- func (d *Devices) Types() []string
- func (d *Devices) Update(n Device)
- type RelayType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Device ¶
func (*Device) DiscoveryMessage ¶
type Devices ¶
type Devices struct {
// contains filtered or unexported fields
}
func NewDevices ¶
func NewDevices(udins map[string]*udin.UdinDevice) *Devices
func (*Devices) ActionForDevice ¶
func (*Devices) EnableDisable ¶
Click to show internal directories.
Click to hide internal directories.