26 lines
590 B
Go
26 lines
590 B
Go
package zigbee
|
|
|
|
import (
|
|
"automation/device"
|
|
|
|
paho "github.com/eclipse/paho.mqtt.golang"
|
|
)
|
|
|
|
type Info struct {
|
|
IEEEAdress string `json:"ieee_address"`
|
|
FriendlyName device.InternalName `json:"friendly_name"`
|
|
Description string `json:"description"`
|
|
Manufacturer string `json:"manufacturer"`
|
|
ModelID string `json:"model_id"`
|
|
SoftwareBuildID string `json:"software_build_id"`
|
|
|
|
MQTTAddress string `json:"-"`
|
|
}
|
|
|
|
type Device interface {
|
|
device.Basic
|
|
|
|
IsZigbeeDevice()
|
|
Delete(client paho.Client)
|
|
}
|