150 static Manager*
Get(){
return s_instance; }
156 static void Destroy();
162 static std::string getVersionAsString();
168 static std::string getVersionLongAsString();
203 void WriteConfig(
uint32 const _homeId );
248 bool RemoveDriver(
string const& _controllerPath );
278 bool IsPrimaryController(
uint32 const _homeId );
287 bool IsStaticUpdateController(
uint32 const _homeId );
296 bool IsBridgeController(
uint32 const _homeId );
303 string GetLibraryVersion(
uint32 const _homeId );
324 string GetLibraryTypeName(
uint32 const _homeId );
337 void LogDriverStatistics(
uint32 const _homeId );
349 string GetControllerPath(
uint32 const _homeId );
354 void SetDriverReady(
Driver* _driver,
bool success );
357 list<Driver*> m_pendingDrivers;
358 map<uint32,Driver*> m_readyDrivers;
374 int32 GetPollInterval();
387 void SetPollInterval(
int32 _milliseconds,
bool _bIntervalBetweenPolls );
395 bool EnablePoll(
ValueID const &_valueId,
uint8 const _intensity = 1 );
402 bool DisablePoll(
ValueID const &_valueId );
409 bool isPolled(
ValueID const &_valueId );
415 void SetPollIntensity(
ValueID const &_valueId,
uint8 const _intensity );
447 bool RefreshNodeInfo(
uint32 const _homeId,
uint8 const _nodeId );
457 bool RequestNodeState(
uint32 const _homeId,
uint8 const _nodeId );
467 bool RequestNodeDynamic(
uint32 const _homeId,
uint8 const _nodeId );
475 bool IsNodeListeningDevice(
uint32 const _homeId,
uint8 const _nodeId );
484 bool IsNodeFrequentListeningDevice(
uint32 const _homeId,
uint8 const _nodeId );
492 bool IsNodeBeamingDevice(
uint32 const _homeId,
uint8 const _nodeId );
500 bool IsNodeRoutingDevice(
uint32 const _homeId,
uint8 const _nodeId );
508 bool IsNodeSecurityDevice(
uint32 const _homeId,
uint8 const _nodeId );
541 bool IsNodeZWavePlus(
uint32 const _homeId,
uint8 const _nodeId );
574 string GetNodeType(
uint32 const _homeId,
uint8 const _nodeId );
598 string GetNodeManufacturerName(
uint32 const _homeId,
uint8 const _nodeId );
613 string GetNodeProductName(
uint32 const _homeId,
uint8 const _nodeId );
627 string GetNodeName(
uint32 const _homeId,
uint8 const _nodeId );
640 string GetNodeLocation(
uint32 const _homeId,
uint8 const _nodeId );
656 string GetNodeManufacturerId(
uint32 const _homeId,
uint8 const _nodeId );
672 string GetNodeProductType(
uint32 const _homeId,
uint8 const _nodeId );
688 string GetNodeProductId(
uint32 const _homeId,
uint8 const _nodeId );
703 void SetNodeManufacturerName(
uint32 const _homeId,
uint8 const _nodeId,
string const& _manufacturerName );
718 void SetNodeProductName(
uint32 const _homeId,
uint8 const _nodeId,
string const& _productName );
733 void SetNodeName(
uint32 const _homeId,
uint8 const _nodeId,
string const& _nodeName );
747 void SetNodeLocation(
uint32 const _homeId,
uint8 const _nodeId,
string const& _location );
759 void SetNodeOn(
uint32 const _homeId,
uint8 const _nodeId );
770 void SetNodeOff(
uint32 const _homeId,
uint8 const _nodeId );
783 void SetNodeLevel(
uint32 const _homeId,
uint8 const _nodeId,
uint8 const _level );
791 bool IsNodeInfoReceived(
uint32 const _homeId,
uint8 const _nodeId );
800 bool GetNodeClassInformation(
uint32 const _homeId,
uint8 const _nodeId,
uint8 const _commandClassId,
808 bool IsNodeAwake(
uint32 const _homeId,
uint8 const _nodeId );
816 bool IsNodeFailed(
uint32 const _homeId,
uint8 const _nodeId );
824 string GetNodeQueryStage(
uint32 const _homeId,
uint8 const _nodeId );
841 string GetNodeDeviceTypeString(
uint32 const _homeId,
uint8 const _nodeId );
857 string GetNodeRoleString(
uint32 const _homeId,
uint8 const _nodeId );
872 string GetNodePlusTypeString (
uint32 const _homeId,
uint8 const _nodeId );
895 string GetValueLabel(
ValueID const& _id );
905 void SetValueLabel(
ValueID const& _id,
string const& _value );
915 string GetValueUnits(
ValueID const& _id );
925 void SetValueUnits(
ValueID const& _id,
string const& _value );
935 string GetValueHelp(
ValueID const& _id );
945 void SetValueHelp(
ValueID const& _id,
string const& _value );
975 bool IsValueReadOnly(
ValueID const& _id );
985 bool IsValueWriteOnly(
ValueID const& _id );
995 bool IsValueSet(
ValueID const& _id );
1005 bool IsValuePolled(
ValueID const& _id );
1017 bool GetValueAsBool(
ValueID const& _id,
bool* o_value );
1029 bool GetValueAsByte(
ValueID const& _id,
uint8* o_value );
1041 bool GetValueAsFloat(
ValueID const& _id,
float* o_value );
1053 bool GetValueAsInt(
ValueID const& _id,
int32* o_value );
1065 bool GetValueAsShort(
ValueID const& _id,
int16* o_value );
1078 bool GetValueAsString(
ValueID const& _id,
string* o_value );
1103 bool GetValueListSelection(
ValueID const& _id,
string* o_value );
1115 bool GetValueListSelection(
ValueID const& _id,
int32* o_value );
1127 bool GetValueListItems(
ValueID const& _id, vector<string>* o_value );
1139 bool GetValueListValues(
ValueID const& _id, vector<int32>* o_value );
1151 bool GetValueFloatPrecision(
ValueID const& _id,
uint8* o_value );
1166 bool SetValue(
ValueID const& _id,
bool const _value );
1180 bool SetValue(
ValueID const& _id,
uint8 const _value );
1195 bool SetValue(
ValueID const& _id,
float const _value );
1209 bool SetValue(
ValueID const& _id,
int32 const _value );
1223 bool SetValue(
ValueID const& _id,
int16 const _value );
1251 bool SetValue(
ValueID const& _id,
string const& _value );
1266 bool SetValueListSelection(
ValueID const& _id,
string const& _selectedItem );
1277 bool RefreshValue(
ValueID const& _id);
1289 void SetChangeVerified(
ValueID const& _id,
bool _verify );
1300 bool GetChangeVerified(
ValueID const& _id );
1311 bool PressButton(
ValueID const& _id );
1322 bool ReleaseButton(
ValueID const& _id );
1371 bool SetSwitchPoint(
ValueID const& _id,
uint8 const _hours,
uint8 const _minutes,
int8 const _setback );
1388 bool RemoveSwitchPoint(
ValueID const& _id,
uint8 const _hours,
uint8 const _minutes );
1398 void ClearSwitchPoints(
ValueID const& _id );
1436 void SwitchAllOn(
uint32 const _homeId );
1442 void SwitchAllOff(
uint32 const _homeId );
1491 void RequestConfigParam(
uint32 const _homeId,
uint8 const _nodeId,
uint8 const _param );
1499 void RequestAllConfigParams(
uint32 const _homeId,
uint8 const _nodeId );
1565 string GetGroupLabel(
uint32 const _homeId,
uint8 const _nodeId,
uint8 const _groupIdx );
1579 void AddAssociation(
uint32 const _homeId,
uint8 const _nodeId,
uint8 const _groupIdx,
uint8 const _targetNodeId,
uint8 const _instance = 0x00 );
1593 void RemoveAssociation(
uint32 const _homeId,
uint8 const _nodeId,
uint8 const _groupIdx,
uint8 const _targetNodeId,
uint8 const _instance = 0x00 );
1615 bool AddWatcher( pfnOnNotification_t _watcher,
void* _context );
1624 bool RemoveWatcher( pfnOnNotification_t _watcher,
void* _context );
1632 pfnOnNotification_t m_callback;
1637 pfnOnNotification_t _callback,
1640 m_callback( _callback ),
1641 m_context( _context )
1647 list<Watcher*> m_watchers;
1648 list<list<Watcher*>::iterator*> m_watcherIterators;
1650 Mutex* m_notificationMutex;
1666 void ResetController(
uint32 const _homeId );
1674 void SoftReset(
uint32 const _homeId );
1732 DEPRECATED bool BeginControllerCommand(
uint32 const _homeId, Driver::ControllerCommand _command, Driver::pfnControllerCallback_t _callback =
NULL,
void* _context =
NULL,
bool _highPower =
false,
uint8 _nodeId = 0xff,
uint8 _arg = 0 );
1740 bool CancelControllerCommand(
uint32 const _homeId );
1759 void TestNetworkNode(
uint32 const _homeId,
uint8 const _nodeId,
uint32 const _count );
1768 void TestNetwork(
uint32 const _homeId,
uint32 const _count );
1777 void HealNetworkNode(
uint32 const _homeId,
uint8 const _nodeId,
bool _doRR );
1786 void HealNetwork(
uint32 const _homeId,
bool _doRR );
1801 bool AddNode(
uint32 const _homeId,
bool _doSecurity =
true );
1815 bool RemoveNode(
uint32 const _homeId);
1833 bool RemoveFailedNode(
uint32 const _homeId,
uint8 const _nodeId);
1849 bool HasNodeFailed(
uint32 const _homeId,
uint8 const _nodeId);
1863 bool RequestNodeNeighborUpdate(
uint32 const _homeId,
uint8 const _nodeId);
1877 bool AssignReturnRoute(
uint32 const _homeId,
uint8 const _nodeId);
1891 bool DeleteAllReturnRoutes(
uint32 const _homeId,
uint8 const _nodeId);
1902 bool SendNodeInformation(
uint32 const _homeId,
uint8 const _nodeId);
1915 bool CreateNewPrimary(
uint32 const _homeId);
1928 bool ReceiveConfiguration (
uint32 const _homeId);
1944 bool ReplaceFailedNode(
uint32 const _homeId,
uint8 const _nodeId);
1957 bool TransferPrimaryRole(
uint32 const _homeId);
1970 bool RequestNetworkUpdate(
uint32 const _homeId,
uint8 const _nodeId);
1983 bool ReplicationSend(
uint32 const _homeId,
uint8 const _nodeId);
1999 bool CreateButton(
uint32 const _homeId,
uint8 const _nodeId,
uint8 const _buttonid);
2015 bool DeleteButton(
uint32 const _homeId,
uint8 const _nodeId,
uint8 const _buttonid);
2032 uint8 GetNumScenes( );
2047 void RemoveAllScenes(
uint32 const _homeId );
2055 uint8 CreateScene();
2063 bool RemoveScene(
uint8 const _sceneId );
2073 bool AddSceneValue(
uint8 const _sceneId, ValueID
const& _valueId,
bool const _value );
2083 bool AddSceneValue(
uint8 const _sceneId, ValueID
const& _valueId,
uint8 const _value );
2093 bool AddSceneValue(
uint8 const _sceneId, ValueID
const& _valueId,
float const _value );
2103 bool AddSceneValue(
uint8 const _sceneId, ValueID
const& _valueId,
int32 const _value );
2113 bool AddSceneValue(
uint8 const _sceneId, ValueID
const& _valueId,
int16 const _value );
2123 bool AddSceneValue(
uint8 const _sceneId, ValueID
const& _valueId,
string const& _value );
2133 bool AddSceneValueListSelection(
uint8 const _sceneId, ValueID
const& _valueId,
string const& _value );
2143 bool AddSceneValueListSelection(
uint8 const _sceneId, ValueID
const& _valueId,
int32 const _value );
2152 bool RemoveSceneValue(
uint8 const _sceneId, ValueID
const& _valueId );
2161 int SceneGetValues(
uint8 const _sceneId, vector<ValueID>* o_value );
2171 bool SceneGetValueAsBool(
uint8 const _sceneId, ValueID
const& _valueId,
bool* o_value );
2181 bool SceneGetValueAsByte(
uint8 const _sceneId, ValueID
const& _valueId,
uint8* o_value );
2191 bool SceneGetValueAsFloat(
uint8 const _sceneId, ValueID
const& _valueId,
float* o_value );
2201 bool SceneGetValueAsInt(
uint8 const _sceneId, ValueID
const& _valueId,
int32* o_value );
2211 bool SceneGetValueAsShort(
uint8 const _sceneId, ValueID
const& _valueId,
int16* o_value );
2221 bool SceneGetValueAsString(
uint8 const _sceneId, ValueID
const& _valueId,
string* o_value );
2231 bool SceneGetValueListSelection(
uint8 const _sceneId, ValueID
const& _valueId,
string* o_value );
2241 bool SceneGetValueListSelection(
uint8 const _sceneId, ValueID
const& _valueId,
int32* o_value );
2251 bool SetSceneValue(
uint8 const _sceneId, ValueID
const& _valueId,
bool const _value );
2261 bool SetSceneValue(
uint8 const _sceneId, ValueID
const& _valueId,
uint8 const _value );
2271 bool SetSceneValue(
uint8 const _sceneId, ValueID
const& _valueId,
float const _value );
2281 bool SetSceneValue(
uint8 const _sceneId, ValueID
const& _valueId,
int32 const _value );
2291 bool SetSceneValue(
uint8 const _sceneId, ValueID
const& _valueId,
int16 const _value );
2301 bool SetSceneValue(
uint8 const _sceneId, ValueID
const& _valueId,
string const& _value );
2311 bool SetSceneValueListSelection(
uint8 const _sceneId, ValueID
const& _valueId,
string const& _value );
2321 bool SetSceneValueListSelection(
uint8 const _sceneId, ValueID
const& _valueId,
int32 const _value );
2329 string GetSceneLabel(
uint8 const _sceneId );
2337 void SetSceneLabel(
uint8 const _sceneId,
string const& _value );
2345 bool SceneExists(
uint8 const _sceneId );
2353 bool ActivateScene(
uint8 const _sceneId );
2370 void GetDriverStatistics(
uint32 const _homeId, Driver::DriverData* _data );
2378 void GetNodeStatistics(
uint32 const _homeId,
uint8 const _nodeId, Node::NodeData* _data );
unsigned short uint16
Definition Defs.h:77
#define NULL
Definition Defs.h:70
unsigned int uint32
Definition Defs.h:80
signed char int8
Definition Defs.h:73
signed short int16
Definition Defs.h:76
signed int int32
Definition Defs.h:79
#define OPENZWAVE_EXPORT_WARNINGS_ON
Definition Defs.h:54
#define OPENZWAVE_EXPORT
Definition Defs.h:52
#define OPENZWAVE_EXPORT_WARNINGS_OFF
Definition Defs.h:53
#define DEPRECATED
Definition Defs.h:63
unsigned char uint8
Definition Defs.h:74
The Driver class handles communication between OpenZWave and a device attached via a serial port (typ...
Definition Driver.h:59
ControllerInterface
Definition Driver.h:84
@ ControllerInterface_Serial
Definition Driver.h:86
Platform-independent definition of event objects.
Definition Event.h:40
The main public interface to OpenZWave.
Definition Manager.h:110
void(* pfnOnNotification_t)(Notification const *_pNotification, void *_context)
Definition Manager.h:121
friend class CommandClass
Definition Manager.h:112
friend class Group
Definition Manager.h:113
static Manager * Create()
Creates the Manager singleton object. The Manager provides the public interface to OpenZWave,...
Definition Manager.cpp:79
Options * GetOptions() const
Gets a pointer to the locked Options object.
Definition Manager.h:210
friend class Node
Definition Manager.h:114
friend class Msg
Definition Manager.h:118
friend class Driver
Definition Manager.h:111
friend class ValueStore
Definition Manager.h:116
static Manager * Get()
Gets a pointer to the Manager object.
Definition Manager.h:150
friend class Value
Definition Manager.h:115
friend class ValueButton
Definition Manager.h:117
Message object to be passed to and from devices on the Z-Wave network.
Definition Msg.h:45
Implements a platform-independent mutex–for serializing access to a shared resource.
Definition Mutex.h:40
The Node class describes a Z-Wave node object...typically a device on the Z-Wave network.
Definition Node.h:65
Provides a container for data sent via the notification callback handler installed by a call to Manag...
Definition Notification.h:43
Manages library options read from XML files or the command line.
Definition Options.h:67
Implements a platform-independent thread management class.
Definition Thread.h:43
Boolean value sent to/received from a node.
Definition ValueBool.h:46
Byte value sent to/received from a node.
Definition ValueByte.h:45
Decimal value sent to/received from a node.
Definition ValueDecimal.h:45
Provides a unique ID for a value reported by a Z-Wave device.
Definition ValueID.h:54
Integer value sent to/received from a node.
Definition ValueInt.h:45
List of values sent to/received from a node.
Definition ValueList.h:46
A collection of bytes sent to/received from a node.
Definition ValueRaw.h:45
Short value sent to/received from a node.
Definition ValueShort.h:45
String value sent to/received from a node.
Definition ValueString.h:45
Base class for values associated with a node.
Definition Value.h:48