Varmepumpe-data

Min varmepumpe er en Viessmann Vitocal 222 luft-vand.

Jeg bruger vcontrold til at hente data fra det optiske interface.

git clone https://github.com/openv/vcontrold.git
sudo apt-get install cmake libxml2-dev python3-docutils
cd vcontrold
mkdir build
cd build
cmake ..
make
sudo make install
# Indstaller konfigurationsfil:
sudo mkdir /etc/vcontrold
sudo chown pi /etc/vcontrold
cp ../xml/300/vcontrold.xml ../xml/300/vito.xml /etc/vcontrold/

 Ret /etc/vcontrold/vcontrold.xml til, specielt tty og device ID

<?xml version="1.0"?>
<V-Control xmlns:vcontrol="http://www.openv.de/vcontrol">
  <unix>
    <config>
      <!-- These are the default settings vcontrold drops privileges 
           to when started as root. Be sure to have the respective 
           user and group. If you use a serial device, be sure to 
           have read and write permissions on the corresponding 
           device file for the user/group -->
      <username>nobody</username>
      <groupname>dialout</groupname>
      <serial>
        <tty>/dev/vitocon</tty>
      </serial>
      <net>
        <port>3002</port>
        <allow ip="127.0.0.1"/>
        <allow ip="192.168.1.0/24"/>
      </net>
      <logging>
        <file>vcontrold.log</file>
        <syslog>y</syslog>
        <debug>n/debug>
      </logging>
      <device ID="204D"/>
    </config>
  </unix>