Versions in this module Expand all Collapse all v0 v0.2.0 Oct 16, 2019 Changes in this version + type UStrHomeNodeFunc = func(uint32, uint8) (string, error) + type Uint8HomeNodeFunc = func(uint32, uint8) (uint8, error) v0.1.0 Oct 11, 2019 Changes in this version + const LogLevelAlert + const LogLevelAlways + const LogLevelDebug + const LogLevelDetail + const LogLevelError + const LogLevelFatal + const LogLevelInfo + const LogLevelInternal + const LogLevelInvalid + const LogLevelNone + const LogLevelStreamdetail + const LogLevelWarning + func AddAssociation(homeID uint32, nodeID uint8, groupIDx uint8, targetNodeID uint8, ...) + func AddDriver(controllerPath string) error + func AddNode(homeID uint32, doSecurity bool) bool + func AssignReturnRoute(homeID uint32, nodeID uint8) bool + func CancelControllerCommand(homeID uint32) + func ClearSwitchPoints(homeID uint32, valueID uint64) + func CreateButton(homeID uint32, nodeID uint8, buttonID uint8) bool + func CreateNewPrimary(homeID uint32) bool + func DeleteAllReturnRoutes(homeID uint32, nodeID uint8) bool + func DeleteButton(homeID uint32, nodeID uint8, buttonID uint8) bool + func DestroyOptions() bool + func DisablePoll(homeID uint32, valueID uint64) bool + func EnablePoll(homeID uint32, valueID uint64, intensity uint8) bool + func GetChangeVerified(homeID uint32, valueID uint64) bool + func GetControllerNodeID(homeID uint32) uint8 + func GetControllerPath(homeID uint32) string + func GetGroupLabel(homeID uint32, nodeID uint8, groupIDx uint8) string + func GetLibraryTypeName(homeID uint32) string + func GetLibraryVersion(homeID uint32) string + func GetMaxAssociations(homeID uint32, nodeID uint8, groupIDx uint8) uint8 + func GetNodeBasicType(homeID uint32, nodeID uint8) uint8 + func GetNodeClassInformation(homeID uint32, nodeID uint8, commandClassID uint8) (bool, string, uint8) + func GetNodeDeviceType(homeID uint32, nodeID uint8) uint16 + func GetNodeDeviceTypeString(homeID uint32, nodeID uint8) string + func GetNodeGenericType(homeID uint32, nodeID uint8) uint8 + func GetNodeLocation(homeID uint32, nodeID uint8) string + func GetNodeManufacturerID(homeID uint32, nodeID uint8) string + func GetNodeManufacturerName(homeID uint32, nodeID uint8) string + func GetNodeMaxBaudRate(homeID uint32, nodeID uint8) uint32 + func GetNodeName(homeID uint32, nodeID uint8) string + func GetNodePlusType(homeID uint32, nodeID uint8) uint8 + func GetNodePlusTypeString(homeID uint32, nodeID uint8) string + func GetNodeProductID(homeID uint32, nodeID uint8) string + func GetNodeProductName(homeID uint32, nodeID uint8) string + func GetNodeProductType(homeID uint32, nodeID uint8) string + func GetNodeQueryStage(homeID uint32, nodeID uint8) string + func GetNodeRole(homeID uint32, nodeID uint8) uint8 + func GetNodeRoleString(homeID uint32, nodeID uint8) string + func GetNodeSecurity(homeID uint32, nodeID uint8) uint8 + func GetNodeSpecificType(homeID uint32, nodeID uint8) uint8 + func GetNodeType(homeID uint32, nodeID uint8) string + func GetNodeVersion(homeID uint32, nodeID uint8) uint8 + func GetNumGroups(homeID uint32, nodeID uint8) uint8 + func GetNumSwitchPoints(homeID uint32, valueID uint64) (uint8, error) + func GetPollIntensity(homeID uint32, valueID uint64) uint8 + func GetPollInterval() int32 + func GetSUCNodeID(homeID uint32) uint8 + func GetSendQueueCount(homeID uint32) int32 + func GetSwitchPoint(homeID uint32, valueID uint64, idx uint8) (uint8, uint8, int8, error) + func GetValueAsBool(homeID uint32, valueID uint64) (bool, error) + func GetValueAsByte(homeID uint32, valueID uint64) (byte, error) + func GetValueAsFloat(homeID uint32, valueID uint64) (float32, error) + func GetValueAsInt(homeID uint32, valueID uint64) (int32, error) + func GetValueAsRaw(homeID uint32, valueID uint64) ([]byte, error) + func GetValueAsShort(homeID uint32, valueID uint64) (int16, error) + func GetValueAsString(homeID uint32, valueID uint64) string + func GetValueFloatPrecision(homeID uint32, valueID uint64) (uint8, error) + func GetValueHelp(homeID uint32, valueID uint64) string + func GetValueLabel(homeID uint32, valueID uint64) string + func GetValueListItems(homeID uint32, valueID uint64) ([]string, error) + func GetValueListSelectionAsInt32(homeID uint32, valueID uint64) (int32, error) + func GetValueListSelectionAsString(homeID uint32, valueID uint64) (string, error) + func GetValueMax(homeID uint32, valueID uint64) int32 + func GetValueMin(homeID uint32, valueID uint64) int32 + func GetValueUnits(homeID uint32, valueID uint64) string + func GetVersionAsString() string + func GetVersionLongAsString() string + func HasNodeFailed(homeID uint32, nodeID uint8) bool + func HealNetwork(homeID uint32, doRR bool) + func HealNetworkNode(homeID uint32, nodeID uint8, doRR bool) + func IsBridgeController(homeID uint32) bool + func IsNodeAwake(homeID uint32, nodeID uint8) bool + func IsNodeBeamingDevice(homeID uint32, nodeID uint8) bool + func IsNodeFailed(homeID uint32, nodeID uint8) bool + func IsNodeFrequentListeningDevice(homeID uint32, nodeID uint8) bool + func IsNodeInfoReceived(homeID uint32, nodeID uint8) bool + func IsNodeListeningDevice(homeID uint32, nodeID uint8) bool + func IsNodeRoutingDevice(homeID uint32, nodeID uint8) bool + func IsNodeSecurityDevice(homeID uint32, nodeID uint8) bool + func IsNodeZWavePlus(homeID uint32, nodeID uint8) bool + func IsPolled(homeID uint32, valueID uint64) bool + func IsPrimaryController(homeID uint32) bool + func IsStaticUpdateController(homeID uint32) bool + func IsValuePolled(homeID uint32, valueID uint64) bool + func IsValueReadOnly(homeID uint32, valueID uint64) bool + func IsValueSet(homeID uint32, valueID uint64) bool + func IsValueWriteOnly(homeID uint32, valueID uint64) bool + func LogDriverStatistics(homeID uint32) + func PressButton(homeID uint32, valueID uint64) error + func ReceiveConfiguration(homeID uint32) bool + func RefreshNodeInfo(homeID uint32, nodeID uint8) bool + func RefreshValue(homeID uint32, valueID uint64) bool + func ReleaseButton(homeID uint32, valueID uint64) error + func RemoveAssociation(homeID uint32, nodeID uint8, groupIDx uint8, targetNodeID uint8, ...) + func RemoveDriver(controllerPath string) error + func RemoveFailedNode(homeID uint32, nodeID uint8) bool + func RemoveNode(homeID uint32) bool + func RemoveSwitchPoint(homeID uint32, valueID uint64, hours, minutes uint8) error + func ReplaceFailedNode(homeID uint32, nodeID uint8) bool + func ReplicationSend(homeID uint32, nodeID uint8) bool + func RequestNetworkUpdate(homeID uint32, nodeID uint8) bool + func RequestNodeAllConfigParam(homeID uint32, nodeID uint8) + func RequestNodeConfigParam(homeID uint32, nodeID uint8, param uint8) + func RequestNodeDynamic(homeID uint32, nodeID uint8) bool + func RequestNodeNeighborUpdate(homeID uint32, nodeID uint8) bool + func RequestNodeState(homeID uint32, nodeID uint8) bool + func ResetController(homeID uint32) + func SendNodeInformation(homeID uint32, nodeID uint8) bool + func SetChangeVerified(homeID uint32, valueID uint64, verify bool) + func SetNodeConfigParam(homeID uint32, nodeID uint8, param uint8, value int32, size uint8) bool + func SetNodeLevel(homeID uint32, nodeID uint8, level uint8) + func SetNodeLocation(homeID uint32, nodeID uint8, location string) + func SetNodeManufacturerName(homeID uint32, nodeID uint8, manufacturerName string) + func SetNodeName(homeID uint32, nodeID uint8, nodeName string) + func SetNodeOff(homeID uint32, nodeID uint8) + func SetNodeOn(homeID uint32, nodeID uint8) + func SetNodeProductName(homeID uint32, nodeID uint8, productName string) + func SetPollIntensity(homeID uint32, valueID uint64, intensity uint8) + func SetPollInterval(milliseconds int32, intervalBetweenPolls bool) + func SetSwitchPoint(homeID uint32, valueID uint64, hours, minutes uint8, setback int8) error + func SetValueBool(homeID uint32, valueID uint64, value bool) error + func SetValueBytes(homeID uint32, valueID uint64, value []byte) error + func SetValueFloat(homeID uint32, valueID uint64, value float32) error + func SetValueHelp(homeID uint32, valueID uint64, value string) + func SetValueInt16(homeID uint32, valueID uint64, value int16) error + func SetValueInt32(homeID uint32, valueID uint64, value int32) error + func SetValueLabel(homeID uint32, valueID uint64, value string) + func SetValueListSelection(homeID uint32, valueID uint64, selection string) error + func SetValueString(homeID uint32, valueID uint64, value string) error + func SetValueUint8(homeID uint32, valueID uint64, value uint8) error + func SetValueUnits(homeID uint32, valueID uint64, value string) + func SoftReset(homeID uint32) + func Start(handler NotificationHandler) error + func Stop() error + func TestNetwork(homeID uint32, count uint32) + func TestNetworkNode(homeID uint32, nodeID uint8, count uint32) + func TransferPrimaryRole(homeID uint32) bool + type LogLevel int32 + type Node struct + HomeID uint32 + NodeID uint8 + func NewNode(homeID uint32, nodeID uint8) *Node + func (n *Node) GetBasicType() uint8 + func (n *Node) GetClassInformation(commandClassID uint8) (bool, string, uint8) + func (n *Node) GetDeviceType() uint16 + func (n *Node) GetDeviceTypeString() string + func (n *Node) GetGenericType() uint8 + func (n *Node) GetLocation() string + func (n *Node) GetManufacturerID() string + func (n *Node) GetManufacturerName() string + func (n *Node) GetMaxBaudRate() uint32 + func (n *Node) GetName() string + func (n *Node) GetPlusType() uint8 + func (n *Node) GetPlusTypeString() string + func (n *Node) GetProductID() string + func (n *Node) GetProductName() string + func (n *Node) GetProductType() string + func (n *Node) GetQueryStage() string + func (n *Node) GetRole() uint8 + func (n *Node) GetRoleString() string + func (n *Node) GetSecurity() uint8 + func (n *Node) GetSpecificType() uint8 + func (n *Node) GetType() string + func (n *Node) GetVersion() uint8 + func (n *Node) IsAwake() bool + func (n *Node) IsBeamingDevice() bool + func (n *Node) IsFailed() bool + func (n *Node) IsFrequentListeningDevice() bool + func (n *Node) IsInfoReceived() bool + func (n *Node) IsListeningDevice() bool + func (n *Node) IsRoutingDevice() bool + func (n *Node) IsSecurityDevice() bool + func (n *Node) IsZWavePlus() bool + func (n *Node) RefeshInfo() bool + func (n *Node) RequestDynamic() bool + func (n *Node) RequestState() bool + func (n *Node) SetLevel(level uint8) + func (n *Node) SetLocation(location string) + func (n *Node) SetManufacturerName(name string) + func (n *Node) SetName(name string) + func (n *Node) SetOff() + func (n *Node) SetOn() + func (n *Node) SetProductName(name string) + func (n *Node) String() string + type Notification struct + ButtonID *uint8 + Event *uint8 + GroupIDX *uint8 + HomeID uint32 + NodeID uint8 + Notification *NotificationCode + SceneID *uint8 + Type NotificationType + ValueID *ValueID + func (n *Notification) String() string + type NotificationCode int + const NotificationCodeAlive + const NotificationCodeAwake + const NotificationCodeDead + const NotificationCodeMsgComplete + const NotificationCodeNoOperation + const NotificationCodeSleep + const NotificationCodeTimeout + func (nc NotificationCode) String() string + type NotificationHandler func(notification *Notification) + type NotificationType int + const NotificationTypeAllNodesQueried + const NotificationTypeAllNodesQueriedSomeDead + const NotificationTypeAwakeNodesQueried + const NotificationTypeButtonOff + const NotificationTypeButtonOn + const NotificationTypeControllerCommand + const NotificationTypeCreateButton + const NotificationTypeDeleteButton + const NotificationTypeDriverFailed + const NotificationTypeDriverReady + const NotificationTypeDriverRemoved + const NotificationTypeDriverReset + const NotificationTypeEssentialNodeQueriesComplete + const NotificationTypeGroup + const NotificationTypeNodeAdded + const NotificationTypeNodeEvent + const NotificationTypeNodeNaming + const NotificationTypeNodeNew + const NotificationTypeNodeProtocolInfo + const NotificationTypeNodeQueriesComplete + const NotificationTypeNodeRemoved + const NotificationTypeNodeReset + const NotificationTypeNotification + const NotificationTypePollingDisabled + const NotificationTypePollingEnabled + const NotificationTypeValueAdded + const NotificationTypeValueChanged + const NotificationTypeValueRefreshed + const NotificationTypeValueRemoved + func (nt NotificationType) String() string + type Options struct + func CreateOptions(configPath, userPath, commandLine string) *Options + func GetOptions() *Options + func (o *Options) AddOptionBool(name string, value bool) bool + func (o *Options) AddOptionInt(name string, value int32) bool + func (o *Options) AddOptionLogLevel(name string, value LogLevel) bool + func (o *Options) AddOptionString(name string, value string, append bool) bool + func (o *Options) AreLocked() bool + func (o *Options) GetOptionAsBool(name string) (bool, bool) + func (o *Options) GetOptionAsInt(name string) (bool, int32) + func (o *Options) GetOptionAsString(name string) (bool, string) + func (o *Options) Lock() bool + type ValueID struct + CommandClassID uint8 + Genre ValueIDGenre + HomeID uint32 + ID uint64 + Index uint8 + Instance uint8 + NodeID uint8 + Type ValueIDType + func (v *ValueID) DisablePoll() bool + func (v *ValueID) EnablePoll(intensity uint8) bool + func (v *ValueID) GetAsBool() (bool, error) + func (v *ValueID) GetAsByte() (byte, error) + func (v *ValueID) GetAsFloat() (float32, error) + func (v *ValueID) GetAsInt() (int32, error) + func (v *ValueID) GetAsRaw() ([]byte, error) + func (v *ValueID) GetAsShort() (int16, error) + func (v *ValueID) GetAsString() string + func (v *ValueID) GetChangeVerified() bool + func (v *ValueID) GetFloatPrecision() (uint8, error) + func (v *ValueID) GetHelp() string + func (v *ValueID) GetLabel() string + func (v *ValueID) GetListItems() ([]string, error) + func (v *ValueID) GetListSelectionAsInt32() (int32, error) + func (v *ValueID) GetListSelectionAsString() (string, error) + func (v *ValueID) GetMax() int32 + func (v *ValueID) GetMin() int32 + func (v *ValueID) GetPollIntensity() uint8 + func (v *ValueID) GetUnits() string + func (v *ValueID) IDString() string + func (v *ValueID) IsPolled() bool + func (v *ValueID) IsReadOnly() bool + func (v *ValueID) IsSet() bool + func (v *ValueID) IsWriteOnly() bool + func (v *ValueID) PressButton() error + func (v *ValueID) Refresh() bool + func (v *ValueID) ReleaseButton() error + func (v *ValueID) SetBool(value bool) error + func (v *ValueID) SetBytes(value []byte) error + func (v *ValueID) SetChangeVerified(verify bool) + func (v *ValueID) SetFloat(value float32) error + func (v *ValueID) SetHelp(help string) + func (v *ValueID) SetInt16(value int16) error + func (v *ValueID) SetInt32(value int32) error + func (v *ValueID) SetLabel(label string) + func (v *ValueID) SetListSelection(selectedItem string) error + func (v *ValueID) SetPollIntensity(intensity uint8) + func (v *ValueID) SetString(value string) error + func (v *ValueID) SetUint8(value uint8) error + func (v *ValueID) SetUnits(units string) + func (v *ValueID) String() string + func (v *ValueID) StringFull() string + type ValueIDGenre int + const ValueIDGenreBasic + const ValueIDGenreConfig + const ValueIDGenreCount + const ValueIDGenreSystem + const ValueIDGenreUser + func (v ValueIDGenre) String() string + type ValueIDType int + const ValueIDTypeBool + const ValueIDTypeButton + const ValueIDTypeByte + const ValueIDTypeDecimal + const ValueIDTypeInt + const ValueIDTypeList + const ValueIDTypeMax + const ValueIDTypeRaw + const ValueIDTypeSchedule + const ValueIDTypeShort + const ValueIDTypeString + func (v ValueIDType) String() string + type Version struct + Major int + Minor int + func GetVersion() Version