BeeeOn Gateway
v2020.3.1-2-g6f737dc
Platform to interconnect the IoT world
|
The class represents a standalone device Conrad Wireless shutter contact. It allows to communicate with the device via Conrad interface. More...
#include <WirelessShutterContact.h>
Public Types | |
typedef Poco::SharedPtr < WirelessShutterContact > | Ptr |
Public Types inherited from BeeeOn::ConradDevice | |
typedef Poco::SharedPtr < ConradDevice > | Ptr |
Public Member Functions | |
WirelessShutterContact (const DeviceID &id, const RefreshTime &refresh) | |
SensorData | parseMessage (const Poco::JSON::Object::Ptr message) override |
Parses the message from Conrad interface and creates from it SensorData. More... | |
Public Member Functions inherited from BeeeOn::ConradDevice | |
ConradDevice (const DeviceID &id, const RefreshTime &refresh, const std::string &productName, const std::list< ModuleType > &moduleTypes) | |
DeviceID | id () const |
RefreshTime | refreshTime () const |
std::list< ModuleType > | moduleTypes () const |
std::string | vendor () const |
std::string | productName () const |
virtual void | requestModifyState (const ModuleID &moduleID, const double value, FHEMClient::Ptr fhemClient) |
Static Public Attributes | |
static const std::string | PRODUCT_NAME = "HM-Sec-SC-2" |
Static Public Attributes inherited from BeeeOn::ConradDevice | |
static const std::string | VENDOR_NAME = "Conrad" |
Additional Inherited Members | |
Static Public Member Functions inherited from BeeeOn::ConradDevice | |
static std::string | constructFHEMDeviceId (const DeviceID &id) |
Returns FHEM device id constructed from a given DeviceID. | |
Protected Member Functions inherited from BeeeOn::ConradDevice | |
bool | isNumber (const std::string &s) |
Returns true or false depending if the string is number or not. | |
Protected Member Functions inherited from BeeeOn::Loggable | |
void | setupLogger (Poco::Logger *logger=0) const |
Poco::Logger & | logger () const |
Loggable (const ClassInfo &info) | |
Loggable (const std::type_info &info) | |
Static Protected Member Functions inherited from BeeeOn::Loggable | |
static Poco::Logger & | forMethod (const char *name) |
static Poco::Logger & | forClass (const ClassInfo &info) |
static Poco::Logger & | forClass (const std::type_info &info) |
template<typename T > | |
static Poco::Logger & | forInstance (const T *i) |
static void | configureSimple (Poco::Logger &logger, const std::string &level) |
static void | logException (Poco::Logger &logger, const Poco::Message::Priority priority, const Poco::Exception &e, const char *file, size_t line) |
Protected Attributes inherited from BeeeOn::ConradDevice | |
const DeviceID | m_deviceId |
RefreshTime | m_refresh |
std::string | m_productName |
std::list< ModuleType > | m_moduleTypes |
The class represents a standalone device Conrad Wireless shutter contact. It allows to communicate with the device via Conrad interface.
|
overridevirtual |
Parses the message from Conrad interface and creates from it SensorData.
Message example: { "channels" : { "Main" : "open" }, "dev" : "HM_30B0BE", "event" : "message", "model" : "HM-SEC-SC-2", "raw" : "A0C44A64130B0BEF11034013FC8", "rssi" : -52, "serial" : "LEQ1101988", "type" : "threeStateSensor" }
Implements BeeeOn::ConradDevice.