I have built a Homegear test system for HomeMatics devices on a Rpi to evaluate. I am trying to achieve heating control with HM radiator valves and HM wall thermostats and importantly only switch on the boiler when there is a demand for heat (therefore when one or more valves are partially open.
I used the stock image with Homegear and OpenHAB and bound to a COC. I followed the install instructions and with the exception of some permission problems (possibly due to my unfamiliarity with UNIX) have managed to get the hardware running ok.
I have two test devices, a wall thermostat (HM-TC-IT-WM-W-EU) and a radiator valve (HM-CC-RT-DN). I can pair the two together, and then pair the wall thermostat to the Rpi controller (using command-line pairing. The Test.php script identifies the two devices ok.
However I am having trouble moving forward with the scripts and being able to talk to the valves to read the valve status (0% - 100%).
Before I get into XML-RPC or anything more complicated I wanted to test the basics from the command-line. After much trial & error I can read the status of the valve by issuing a
print_r($Client->send(“getValue”, array(2, 4, “VALVE_STATE”)));
…however this always reads 100 even after changing the temperature (and hearing that the valve motor has moved). The documentation gives an option to read directly from the device (rather than a cache) by adding a TRUE parameter. However this fails
[faultCode] => -6
[faultString] => Parameter can’t be requested actively.
Can anyone suggest how I can read the valve status in real time?
I guess I would need to poll all of the valves in the house (20) every few minutes to test whether any of the valves were open and if so switch on the boiler (and continue polling to test whether the valves close to switch off the boiler. Does this seem like the correct concept?
Sorry I can’t speak/read German and so cannot pickup many of the HM / Home Automation tips on the Internet.
Are there any sample scripts available that I can ‘decompile’ to understand the scripting methodology?
How can I activate OpenHAB?
Thanks in advance.