Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Brightness ¶
func NewBrightness ¶
func NewBrightness() *Brightness
type ColorTemp ¶
func NewColorTemp ¶
func NewColorTemp() *ColorTemp
type Curtain ¶
type Curtain struct {
CurrentPosition *Position `tag:"required"` // 当前位置 0-100 TODO 不可写字段
TargetPosition *Position `tag:"required"` // 目标位置 0-100
State *State `tag:"required"` // 0关1开2暂停
Style *Style // 0左右1左开2右开3上下
// TODO 考虑窗帘和窗帘控制器分开定义
Direction *Direction // 0默认方向1反方向
UpperLimit *Limit // 0删除1设置
LowerLimit *Limit // 0删除1设置
}
Curtain 窗帘
func (Curtain) InstanceName ¶
type Info ¶
type Info struct {
Name *attribute.Name
Identity *attribute.Identity `tag:"required"`
Model *attribute.Model `tag:"required"`
Manufacturer *attribute.Manufacturer `tag:"required"`
Version *attribute.Version
}
func (Info) InstanceName ¶
type LightBulb ¶
type LightBulb struct {
Power *attribute.Power `tag:"required"`
ColorTemp *ColorTemp
Brightness *Brightness
Hue *Hue
Saturation *Saturation
RGB *RGB
}
func (LightBulb) InstanceName ¶
type Outlet ¶
func (Outlet) InstanceName ¶
type Saturation ¶
func NewSaturation ¶
func NewSaturation() *Saturation
Click to show internal directories.
Click to hide internal directories.