[Solved] Problems setting temperature of HM-CC-RT-DN

Hello,

I have problems with my radiator valve. I got it paired with homegear. The time and date is automagically set and the actual temperature is also received:

However, I’m not able to set the temperature. Homegear shows the following error:

03/03/16 20:39:05.488 RPC Server (Port 2001): Info: Connection from 192.168.178.28:40612 accepted. Client number: 271
03/03/16 20:39:05.488 RPC Server (Port 2001): Info: Client number 271 is calling RPC method: setValue Parameters:
(String) MEQ0527581:4
(String) SET_TEMPERATURE
(Float) 21
03/03/16 20:39:05.488 Module HomeMatic BidCoS: HM-LGW "My-HM-LGW": Info: Sending (My-HM-LGW): 1065B001DEAD793A8AE800040000000000
03/03/16 20:39:08.048 RPC Server (Port 2001): Info: Connection to client number 271 closed (3).
03/03/16 20:39:08.050 RPC Server (Port 2001): Info: Connection from 192.168.178.28:40614 accepted. Client number: 272
03/03/16 20:39:08.052 RPC Server (Port 2001): Info: Client number 272 is calling RPC method: getAllValues Parameters:
(Boolean) 1
03/03/16 20:39:08.082 RPC Server (Port 2001): Info: Connection to client number 272 closed (3).
03/03/16 20:39:08.083 RPC Server (Port 2001): Info: Connection from 192.168.178.28:40616 accepted. Client number: 273
03/03/16 20:39:08.083 RPC Server (Port 2001): Info: Client number 273 is calling RPC method: getAllSystemVariables Parameters:
03/03/16 20:39:08.086 RPC Server (Port 2001): Info: Connection to client number 273 closed (3).
03/03/16 20:39:13.113 HomeMatic BidCoS packet received (My-HM-LGW, RSSI: -86 dBm): 0F998610227F410000000AA8E40C0158
03/03/16 20:39:15.489 Module HomeMatic BidCoS: HM-LGW "My-HM-LGW": Error: No response received to packet: FD001601DD0200000065B001DEAD793A8AE800040000000000A3E0
03/03/16 20:39:15.489 Module HomeMatic BidCoS: HM-LGW "My-HM-LGW": Error: No response received to packet: FD001601DD0200000065B001DEAD793A8AE800040000000000A3E0
03/03/16 20:39:25.489 Module HomeMatic BidCoS: HM-LGW "My-HM-LGW": Error: No response received to packet: FD001601E00200000065B001DEAD793A8AE800040000000000C50F
03/03/16 20:39:25.489 Module HomeMatic BidCoS: HM-LGW "My-HM-LGW": Error: No response received to packet: FD001601E00200000065B001DEAD793A8AE800040000000000C50F
03/03/16 20:39:35.490 Module HomeMatic BidCoS: HM-LGW "My-HM-LGW": Error: No response received to packet: FD001601E30200000065B001DEAD793A8AE8000400000000004E3F
03/03/16 20:39:35.490 Module HomeMatic BidCoS: HM-LGW "My-HM-LGW": Error: No response received to packet: FD001601E30200000065B001DEAD793A8AE8000400000000004E3F
03/03/16 20:39:35.490 Module HomeMatic BidCoS: HM-LGW "My-HM-LGW": Info: No response from HM-LGW to packet 1065B001DEAD793A8AE800040000000000
03/03/16 20:39:35.490 Info (My-HM-LGW): Packet processing took longer than 1 second (22377 ms).
03/03/16 20:39:35.490 Module HomeMatic BidCoS: Error: Packet was processed more than 5 seconds after reception. If your CPU and network load is low, please report this to the Homegear developers.
03/03/16 20:39:35.490 Module HomeMatic BidCoS: Error: Packet was processed more than 5 seconds after reception. If your CPU and network load is low, please report this to the Homegear developers.
03/03/16 20:39:18.753 HomeMatic BidCoS packet received (My-HM-LGW, RSSI: -46 dBm): 148F845E3ACD1600000080039500036B004008FBFF

The device is also shown with “Config Pending”. Pairing again or resetting the device does not help.

Any hints what is wrong with my setup?

Sven

Hey Sven,

sorry for the late reply. Now I had time to test this. I experimented with the LGW communication and there was an error in some nightly versions. Could you recheck if you still have the problem with the current nightly version? Here it works now.

Cheers,

Sathya

Hello Sathya,

now appologies from my side for the late reply.
I tried to compile the latest git-version using the Arch Linux package: aur.archlinux.org/packages/homegear-git/

However, I get the following error:

In file included from DeviceDescription/HomeMatic/HmPhysicalParameter.h:35:0,
                 from DeviceDescription/HomeMatic/HmPhysicalParameter.cpp:31:
DeviceDescription/HomeMatic/../../HelperFunctions/HelperFunctions.h:285:14: error: ‘vector’ in namespace ‘std’ does not name a template type
  static std::vector<std::string> splitAll(std::string string, char delimiter);
              ^~~~~~
DeviceDescription/HomeMatic/../../HelperFunctions/HelperFunctions.h:350:14: error: ‘vector’ in namespace ‘std’ does not name a template type
  static std::vector<uint8_t> getRandomBytes(uint32_t size);
              ^~~~~~
DeviceDescription/HomeMatic/../../HelperFunctions/HelperFunctions.h:376:47: error: ‘vector’ in namespace ‘std’ does not name a template type
  void memcpyBigEndian(int32_t& to, const std::vector<uint8_t>& from);
                                               ^~~~~~
DeviceDescription/HomeMatic/../../HelperFunctions/HelperFunctions.h:376:53: error: expected ‘,’ or ‘...’ before ‘<’ token
  void memcpyBigEndian(int32_t& to, const std::vector<uint8_t>& from);
                                                     ^
DeviceDescription/HomeMatic/../../HelperFunctions/HelperFunctions.h:384:28: error: ‘std::vector’ has not been declared
  void memcpyBigEndian(std::vector<uint8_t>& to, const int32_t& from);

And so on…

Any ideas?

Adding #include solves the error. However, than I get the following:

HelperFunctions/HelperFunctions.cpp: In static member function ‘static int32_t BaseLib::HelperFunctions::getRandomNumber(int32_t, int32_t)’:
HelperFunctions/HelperFunctions.cpp:164:2: error: ‘random_device’ is not a member of ‘std’
  std::random_device rd;
  ^~~
HelperFunctions/HelperFunctions.cpp:165:2: error: ‘default_random_engine’ is not a member of ‘std’
  std::default_random_engine generator(rd());
  ^~~
HelperFunctions/HelperFunctions.cpp:167:22: error: ‘generator’ was not declared in this scope
  return distribution(generator);
                      ^~~~~~~~~
HelperFunctions/HelperFunctions.cpp: In static member function ‘static std::vector<unsigned char> BaseLib::HelperFunctions::getRandomBytes(uint32_t)’:
HelperFunctions/HelperFunctions.cpp:172:2: error: ‘random_device’ is not a member of ‘std’
  std::random_device rd;
  ^~~
HelperFunctions/HelperFunctions.cpp:173:2: error: ‘default_random_engine’ is not a member of ‘std’
  std::default_random_engine generator(rd());
  ^~~
HelperFunctions/HelperFunctions.cpp:179:32: error: ‘generator’ was not declared in this scope
   bytes.push_back(distribution(generator));
                                ^~~~~~~~~

So I guess the root of this problem is anything else…

Some other includes were missing. I created a pull request:
github.com/Homegear/libhomegear-base/pull/1

Please also consider the following pull request:
github.com/Homegear/Homegear-Ho … CoS/pull/2

Finally, I have the new version running and can confirm, that setting the temperature is now working!
Thanks for your great work.

Thanks for the pull requests!