BeeeOn Gateway  v2020.3.1-2-g6f737dc
Platform to interconnect the IoT world
RadiatorThermostat.h
1 #pragma once
2 
3 #include <Poco/SharedPtr.h>
4 
5 #include "conrad/ConradDevice.h"
6 #include "model/SensorData.h"
7 
8 namespace BeeeOn {
9 
15 public:
16  typedef Poco::SharedPtr<RadiatorThermostat> Ptr;
17 
18  static const std::string PRODUCT_NAME;
19 
20  RadiatorThermostat(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
The class represents a standalone device Conrad Radiator thermostat. It allows to communicate with th...
Definition: RadiatorThermostat.h:14
Definition: SensorData.h:20
Definition: ModuleID.h:12
SensorData parseMessage(const Poco::JSON::Object::Ptr message) override
Parses the message from Conrad interface and creates from it SensorData.
Definition: RadiatorThermostat.cpp:84
Abstract class representing generic Conrad device.
Definition: ConradDevice.h:21
Definition: DeviceID.h:17