BeeeOn Gateway  v2020.3.1-2-g6f737dc
Platform to interconnect the IoT world
PowerMeterSwitch.h
1 #pragma once
2 
3 #include <Poco/SharedPtr.h>
4 
5 #include "model/SensorData.h"
6 #include "conrad/ConradDevice.h"
7 
8 namespace BeeeOn {
9 
15 public:
16  typedef Poco::SharedPtr<PowerMeterSwitch> Ptr;
17 
18  static const std::string PRODUCT_NAME;
19 
20  PowerMeterSwitch(const DeviceID& id, const RefreshTime &refresh);
22 
23  void requestModifyState(
24  const ModuleID& moduleID,
25  const double value,
26  FHEMClient::Ptr fhemClient) override;
27 
32  SensorData parseMessage(const Poco::JSON::Object::Ptr message) override;
33 };
34 
35 }
RefreshTime represents time of refreshing values from sensors. E.g. sensors are polled periodically o...
Definition: RefreshTime.h:24
Definition: SensorData.h:20
SensorData parseMessage(const Poco::JSON::Object::Ptr message) override
Parses the message from Conrad interface and creates from it SensorData.
Definition: PowerMeterSwitch.cpp:82
Definition: ModuleID.h:12
Abstract class representing generic Conrad device.
Definition: ConradDevice.h:21
The class represents a standalone device Conrad Power meter switch. It allows to communicate with the...
Definition: PowerMeterSwitch.h:14
Definition: DeviceID.h:17