6 #include <Poco/Timespan.h>
32 Identity(
const uint32_t home,
const uint8_t node);
36 bool operator ==(
const Identity &other)
const;
37 bool operator !=(
const Identity &other)
const;
38 bool operator <(
const Identity &other)
const;
40 std::string toString()
const;
54 SENSOR_MULTILEVEL = 49,
64 const std::string &
name =
"");
74 uint8_t
index()
const;
84 std::string
name()
const;
86 std::string toString()
const;
106 const std::string &
value,
107 const std::string &
unit =
"");
111 const std::string &value,
112 const std::string &
unit =
"");
127 std::string
value()
const;
132 std::string
unit()
const;
163 int asInt(
bool floor =
false)
const;
189 Poco::Timespan
asTime()
const;
191 std::string toString()
const;
204 SUPPORT_LISTENING = 0x01,
205 SUPPORT_BEAMING = 0x02,
206 SUPPORT_ROUTING = 0x04,
207 SUPPORT_SECURITY = 0x08,
208 SUPPORT_ZWAVEPLUS = 0x10,
216 uint32_t
home()
const;
221 uint8_t
node()
const;
226 const Identity &
id()
const;
292 std::string
vendor()
const;
305 void add(
const CommandClass &cc);
306 const std::set<CommandClass> &commandClasses()
const;
308 std::string toString()
const;
309 std::string toInfoString()
const;
318 uint16_t m_productId;
319 std::string m_product;
321 std::string m_vendor;
322 uint16_t m_productType;
323 std::set<CommandClass> m_commandClasses;
std::string value() const
Definition: ZWaveNode.cpp:109
Command class representation of a Z-Wave value. We support only a subset of command classes that are ...
Definition: ZWaveNode.h:48
uint8_t index() const
Definition: ZWaveNode.cpp:31
uint16_t vendorId() const
Definition: ZWaveNode.cpp:333
void setVendor(const std::string &vendor)
Definition: ZWaveNode.cpp:338
void setProductType(uint16_t type)
Definition: ZWaveNode.cpp:318
Value coming from the Z-Wave network. It holds some data (usually sensor data) and metadata to identi...
Definition: ZWaveNode.h:102
uint16_t productType() const
Definition: ZWaveNode.cpp:323
int asInt(bool floor=false) const
Definition: ZWaveNode.cpp:134
const Identity & node() const
Definition: ZWaveNode.cpp:99
std::string vendor() const
Definition: ZWaveNode.cpp:343
void setProduct(const std::string &name)
Definition: ZWaveNode.cpp:308
double asDouble() const
Definition: ZWaveNode.cpp:129
uint32_t home() const
Definition: ZWaveNode.cpp:268
void setSupport(uint32_t support)
Definition: ZWaveNode.cpp:288
void setVendorId(uint16_t id)
Definition: ZWaveNode.cpp:328
uint8_t instance() const
Definition: ZWaveNode.cpp:36
std::string product() const
Definition: ZWaveNode.cpp:313
uint32_t support() const
Definition: ZWaveNode.cpp:293
uint8_t id() const
Definition: ZWaveNode.cpp:26
Poco::Timespan asTime() const
Definition: ZWaveNode.cpp:189
uint8_t node() const
Definition: ZWaveNode.cpp:273
const CommandClass & commandClass() const
Definition: ZWaveNode.cpp:104
bool controller() const
Definition: ZWaveNode.cpp:283
void setProductId(uint16_t id)
Definition: ZWaveNode.cpp:298
ZWaveNode represents information from the Z-Wave network about a particular node. Each Z-Wave node is...
Definition: ZWaveNode.h:22
std::string unit() const
Definition: ZWaveNode.cpp:114
uint16_t productId() const
Definition: ZWaveNode.cpp:303
double asLuminance() const
Definition: ZWaveNode.cpp:161
bool asBool() const
Definition: ZWaveNode.cpp:119
const Identity & id() const
Definition: ZWaveNode.cpp:278
void setQueried(bool queried)
Definition: ZWaveNode.cpp:348
bool queried() const
Definition: ZWaveNode.cpp:353
double asPM25() const
Definition: ZWaveNode.cpp:180
Support
Feature flags denoting supported features of a Z-Wave node.
Definition: ZWaveNode.h:203
std::string name() const
Definition: ZWaveNode.cpp:41
double asCelsius() const
Definition: ZWaveNode.cpp:146
uint32_t asHex32() const
Definition: ZWaveNode.cpp:124
Identity of a Z-Wave node that can be used separately without any instance of the ZWaveNode class...
Definition: ZWaveNode.h:28