BeeeOn Gateway  v2020.3.1-2-g6f737dc
Platform to interconnect the IoT world
Public Member Functions
BeeeOn::ZWaveDeviceManager::Device Class Reference

High-level representation of a Z-Wave device. It enriches the ZWaveNode for information needed by the manager and the BeeeOn system. This means especially the Mapper instance. More...

#include <ZWaveDeviceManager.h>

Public Member Functions

 Device (const ZWaveNode &node)
 
DeviceID id () const
 
std::string product () const
 
std::string vendor () const
 
void updateNode (const ZWaveNode &node)
 Update the underlying ZWaveNode instance by the given one. Their identities must match. More...
 
const ZWaveNodenode () const
 
bool resolveMapper (ZWaveMapperRegistry::Ptr registry)
 Try to resolve Mapper for this Device based on the ZWaveNode contents unless a mapper is already resolved. More...
 
ZWaveMapperRegistry::Mapper::Ptr mapper () const
 
void setRefresh (const RefreshTime &refresh)
 
RefreshTime refresh () const
 
std::list< ModuleTypetypes () const
 
SensorValue convert (const ZWaveNode::Value &value) const
 
std::string toString () const
 

Detailed Description

High-level representation of a Z-Wave device. It enriches the ZWaveNode for information needed by the manager and the BeeeOn system. This means especially the Mapper instance.

Member Function Documentation

SensorValue ZWaveDeviceManager::Device::convert ( const ZWaveNode::Value value) const
Returns
convert the given Z-Wave value to BeeeOn sensor value
bool ZWaveDeviceManager::Device::resolveMapper ( ZWaveMapperRegistry::Ptr  registry)

Try to resolve Mapper for this Device based on the ZWaveNode contents unless a mapper is already resolved.

Returns
true if a mapper is available
list< ModuleType > ZWaveDeviceManager::Device::types ( ) const
Returns
list of types the devices provides to the BeeeOn system
void ZWaveDeviceManager::Device::updateNode ( const ZWaveNode node)

Update the underlying ZWaveNode instance by the given one. Their identities must match.

If the underlying node is already queried, any attempt to update it by a ZWaveNode instance which is not queried would be ignored.


The documentation for this class was generated from the following files: