switchmultilevelv3

package
v0.0.0-...-eab7a3e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 24, 2019 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const CommandGet cc.CommandID = 0x02
View Source
const CommandReport cc.CommandID = 0x03
View Source
const CommandSet cc.CommandID = 0x01
View Source
const CommandStartLevelChange cc.CommandID = 0x04
View Source
const CommandStopLevelChange cc.CommandID = 0x05
View Source
const CommandSupportedGet cc.CommandID = 0x06
View Source
const CommandSupportedReport cc.CommandID = 0x07

Variables

This section is empty.

Functions

func NewGet

func NewGet() cc.Command

func NewReport

func NewReport() cc.Command

func NewSet

func NewSet() cc.Command

func NewStartLevelChange

func NewStartLevelChange() cc.Command

func NewStopLevelChange

func NewStopLevelChange() cc.Command

func NewSupportedGet

func NewSupportedGet() cc.Command

func NewSupportedReport

func NewSupportedReport() cc.Command

func Noop

func Noop()

Types

type Get

type Get struct {
}

<no value>

func (Get) CommandClassID

func (cmd Get) CommandClassID() cc.CommandClassID

func (Get) CommandID

func (cmd Get) CommandID() cc.CommandID

func (Get) CommandIDString

func (cmd Get) CommandIDString() string

func (*Get) MarshalBinary

func (cmd *Get) MarshalBinary() (payload []byte, err error)

func (*Get) UnmarshalBinary

func (cmd *Get) UnmarshalBinary(data []byte) error

type Report

type Report struct {
	Value byte
}

<no value>

func (Report) CommandClassID

func (cmd Report) CommandClassID() cc.CommandClassID

func (Report) CommandID

func (cmd Report) CommandID() cc.CommandID

func (Report) CommandIDString

func (cmd Report) CommandIDString() string

func (*Report) MarshalBinary

func (cmd *Report) MarshalBinary() (payload []byte, err error)

func (*Report) UnmarshalBinary

func (cmd *Report) UnmarshalBinary(data []byte) error

type Set

type Set struct {
	Value byte

	DimmingDuration byte
}

<no value>

func (Set) CommandClassID

func (cmd Set) CommandClassID() cc.CommandClassID

func (Set) CommandID

func (cmd Set) CommandID() cc.CommandID

func (Set) CommandIDString

func (cmd Set) CommandIDString() string

func (*Set) MarshalBinary

func (cmd *Set) MarshalBinary() (payload []byte, err error)

func (*Set) UnmarshalBinary

func (cmd *Set) UnmarshalBinary(data []byte) error

type StartLevelChange

type StartLevelChange struct {
	Properties1 struct {
		IgnoreStartLevel bool

		IncDec byte

		UpDown byte
	}

	StartLevel byte

	DimmingDuration byte

	StepSize byte
}

<no value>

func (StartLevelChange) CommandClassID

func (cmd StartLevelChange) CommandClassID() cc.CommandClassID

func (StartLevelChange) CommandID

func (cmd StartLevelChange) CommandID() cc.CommandID

func (StartLevelChange) CommandIDString

func (cmd StartLevelChange) CommandIDString() string

func (*StartLevelChange) MarshalBinary

func (cmd *StartLevelChange) MarshalBinary() (payload []byte, err error)

func (*StartLevelChange) UnmarshalBinary

func (cmd *StartLevelChange) UnmarshalBinary(data []byte) error

type StopLevelChange

type StopLevelChange struct {
}

<no value>

func (StopLevelChange) CommandClassID

func (cmd StopLevelChange) CommandClassID() cc.CommandClassID

func (StopLevelChange) CommandID

func (cmd StopLevelChange) CommandID() cc.CommandID

func (StopLevelChange) CommandIDString

func (cmd StopLevelChange) CommandIDString() string

func (*StopLevelChange) MarshalBinary

func (cmd *StopLevelChange) MarshalBinary() (payload []byte, err error)

func (*StopLevelChange) UnmarshalBinary

func (cmd *StopLevelChange) UnmarshalBinary(data []byte) error

type SupportedGet

type SupportedGet struct {
}

<no value>

func (SupportedGet) CommandClassID

func (cmd SupportedGet) CommandClassID() cc.CommandClassID

func (SupportedGet) CommandID

func (cmd SupportedGet) CommandID() cc.CommandID

func (SupportedGet) CommandIDString

func (cmd SupportedGet) CommandIDString() string

func (*SupportedGet) MarshalBinary

func (cmd *SupportedGet) MarshalBinary() (payload []byte, err error)

func (*SupportedGet) UnmarshalBinary

func (cmd *SupportedGet) UnmarshalBinary(data []byte) error

type SupportedReport

type SupportedReport struct {
	Properties1 struct {
		PrimarySwitchType byte
	}

	Properties2 struct {
		SecondarySwitchType byte
	}
}

<no value>

func (SupportedReport) CommandClassID

func (cmd SupportedReport) CommandClassID() cc.CommandClassID

func (SupportedReport) CommandID

func (cmd SupportedReport) CommandID() cc.CommandID

func (SupportedReport) CommandIDString

func (cmd SupportedReport) CommandIDString() string

func (*SupportedReport) MarshalBinary

func (cmd *SupportedReport) MarshalBinary() (payload []byte, err error)

func (*SupportedReport) UnmarshalBinary

func (cmd *SupportedReport) UnmarshalBinary(data []byte) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL