homeassistant-vcontrol icon indicating copy to clipboard operation
homeassistant-vcontrol copied to clipboard

vcontrold.xml do not work

Open Kasper027 opened this issue 11 months ago • 7 comments

Hello everyone. First of all, great project. I have problems with the vcontrold.xml. I just can't get it to work. Unfortunately I have to adjust a few things here. Otherwise the whole thing won't work for me. I have a heat pump and would like to adjust the whole thing with the operating status, for example.

Everything works great with the vito.xml. I would also have to adjust something, but I can't test that until I can adjust the vcontrold.

The following log appears:

s6-rc: info: service legacy-services successfully started [19:54:45] INFO: vcontrol_host not set in configuration. Defaulting to 'localhost'. [19:54:45] INFO: vcontrol_port not set in configuration. Defaulting to '3002'. [19:54:45] INFO: vcontrold will be set to host: localhost and port: 3002 [19:54:45] INFO: Using custom vito.xml file. [19:54:45] INFO: Using custom vcontrold.xml file. [19:54:45] INFO: Configuring command 1: getTempA with type FLOAT [19:54:45] INFO: Configuring command 2: getTempWWist with type FLOAT [19:54:45] INFO: Configuring command 3: getTempWWsoll with type FLOAT [19:54:45] INFO: Configuring command 4: getTempVorlauf with type FLOAT [19:54:45] INFO: Configuring command 5: getTempRuecklauf with type FLOAT [19:54:45] INFO: Configuring command 6: getTempPuffer with type FLOAT [19:54:45] INFO: Configuring command 7: getTempVLsollM2 with type FLOAT [19:54:45] INFO: Configuring command 8: getTempVListM2 with type FLOAT [19:54:45] INFO: Configuring command 9: getTempVorlaufPrim with type FLOAT [19:54:45] INFO: Configuring command 10: getProzSekPump with type FLOAT [19:54:45] INFO: Configuring command 11: getProzPriPump with type FLOAT [19:54:45] INFO: Configuring command 12: getProzVerd with type FLOAT [19:54:45] INFO: Configuring command 13: getBetriebArt with type FLOAT [19:54:45] INFO: Configuring command 14: getStatusEVU with type FLOAT [19:54:45] INFO: Configuring command 15: getProzEEV with type FLOAT [19:54:45] INFO: Configuring command 16: getTempHeisgas with type FLOAT [19:54:45] INFO: Using internal MQTT Host: core-mosquitto:1883 [19:54:45] INFO: Starting local vcontrold... [19:54:45] INFO: Using custom vcontrold.xml. /config/vcontrold/vcontrold.xml:443: element include: XInclude error : failed build URL Error loading /config/vcontrold/vcontrold.xml, terminating [19:54:45] WARNING: Halting add-on due to vcontrold failure with exit code 1 s6-rc: info: service legacy-services: stopping [19:54:46] INFO: vclient_sub service completed successfully. Restarting service. [19:54:46] INFO: Restarting vlclient_pub service after normal closure s6-rc: info: service legacy-services successfully stopped s6-rc: info: service legacy-cont-init: stopping s6-rc: info: service legacy-cont-init successfully stopped s6-rc: info: service fix-attrs: stopping s6-rc: info: service fix-attrs successfully stopped s6-rc: info: service s6rc-oneshot-runner: stopping s6-rc: info: service s6rc-oneshot-runner successfully stopped

Who can help me here? Does it work for anyone? Can someone maybe provide me with their Vcontrold.xml?

Kasper027 avatar Jan 22 '25 19:01 Kasper027

same error here

s6-rc: info: service legacy-services successfully started
[18:49:03] INFO: vcontrol_host not set in configuration. Defaulting to 'localhost'.
[18:49:03] INFO: vcontrol_port not set in configuration. Defaulting to '3002'.
[18:49:03] INFO: vcontrold will be set to host: localhost and port: 3002
[18:49:04] INFO: Using custom vito.xml file.
[18:49:04] INFO: Using custom vcontrold.xml file.
[18:49:04] INFO: Configuring command 1: getTempA with type FLOAT
[18:49:04] INFO: Configuring command 2: getTempWWist with type FLOAT
[18:49:04] INFO: Configuring command 3: getTempWWsoll with type FLOAT
[18:49:04] INFO: Configuring command 4: getTempKist with type FLOAT
[18:49:04] INFO: Configuring command 5: getTempKsoll with type FLOAT
[18:49:04] INFO: Configuring command 6: getTempVListM2 with type FLOAT
[18:49:04] INFO: Configuring command 7: getTempKol with type FLOAT
[18:49:04] INFO: Configuring command 8: getTempSpu with type FLOAT
[18:49:04] INFO: Configuring command 9: getTempRaumNorSollM1 with type FLOAT
[18:49:04] INFO: Configuring command 10: getTempRaumNorSollM2 with type FLOAT
[18:49:04] INFO: Configuring command 11: getTempRaumRedSollM1 with type FLOAT
[18:49:04] INFO: Configuring command 12: getTempRaumRedSollM2 with type FLOAT
[18:49:04] INFO: Configuring command 13: getBrennerStatus with type FLOAT
[18:49:04] INFO: Configuring command 14: getBrennerStarts with type FLOAT
[18:49:04] INFO: Configuring command 15: getBrennerStunden1 with type FLOAT
[18:49:04] INFO: Configuring command 16: getBrennerStunden2 with type FLOAT
[18:49:04] INFO: Configuring command 17: getPumpeStatusM1 with type FLOAT
[18:49:04] INFO: Configuring command 18: getPumpeStatusSp with type FLOAT
[18:49:04] INFO: Configuring command 19: getPumpeStatusZirku with type FLOAT
[18:49:04] INFO: Configuring command 20: getPumpeStatusM2 with type FLOAT
[18:49:04] INFO: Configuring command 21: getMischerM1 with type FLOAT
[18:49:04] INFO: Configuring command 22: getMischerM2 with type FLOAT
[18:49:04] INFO: Configuring command 23: getMischerM3 with type FLOAT
[18:49:04] INFO: Configuring command 24: getError0 with type STRING
[18:49:05] INFO: Configuring command 25: getError1 with type STRING
[18:49:05] INFO: Configuring command 26: getError2 with type STRING
[18:49:05] INFO: Configuring command 27: getError3 with type STRING
[18:49:05] INFO: Configuring command 28: getError4 with type STRING
[18:49:05] INFO: Configuring command 29: getError5 with type STRING
[18:49:05] INFO: Using internal MQTT Host: core-mosquitto:1883
[18:49:05] INFO: Using internal MQTT Host: core-mosquitto:1883
[18:49:05] INFO: Configuring command 30: getError6 with type STRING
[18:49:05] INFO: Configuring command 31: getError7 with type STRING
[18:49:05] INFO: Configuring command 32: getError8 with type STRING
[18:49:05] INFO: Configuring command 33: getError9 with type STRING
[18:49:05] INFO: Configuring command 34: getNeigungM1 with type FLOAT
[18:49:05] INFO: Configuring command 35: getNeigungM2 with type FLOAT
[18:49:05] INFO: Configuring command 36: getNiveauM1 with type FLOAT
[18:49:05] INFO: Configuring command 37: getNiveauM2 with type FLOAT
[18:49:05] INFO: vcontrol_host not set in configuration. Defaulting to 'localhost'.
[18:49:05] INFO: vcontrol_host not set in configuration. Defaulting to 'localhost'.
[18:49:05] INFO: Starting local vcontrold...
[18:49:05] INFO: Using custom vcontrold.xml.
/config/vcontrold/vcontrold.xml:1: parser error : Document is empty
^
Error loading /config/vcontrold/vcontrold.xml, terminating
[18:49:05] WARNING: Halting add-on due to vcontrold failure with exit code 1
s6-rc: info: service legacy-services: stopping
[18:49:06] INFO: vclient_sub service completed successfully. Restarting service.
[18:49:06] INFO: Restarting vlclient_pub service after normal closure
s6-rc: info: service legacy-services successfully stopped
s6-rc: info: service legacy-cont-init: stopping
s6-rc: info: service legacy-cont-init successfully stopped
s6-rc: info: service fix-attrs: stopping
s6-rc: info: service fix-attrs successfully stopped
s6-rc: info: service s6rc-oneshot-runner: stopping
s6-rc: info: service s6rc-oneshot-runner successfully stopped

Vinshi01 avatar Jan 23 '25 17:01 Vinshi01

@Vinshi01 your error message is a little different to mine. Your vcontrold.xml is empty, mine is a problem with the include file. yours is already in line 1. What does your xml look like?

Kasper027 avatar Jan 24 '25 11:01 Kasper027

I got now the file from openV it works now.

The problem is that i don't know the commands to add this to vcontrold.

Vinshi01 avatar Jan 24 '25 11:01 Vinshi01

can you give me a link?

Kasper027 avatar Jan 24 '25 11:01 Kasper027

https://github.com/openv/vcontrold/releases/tag/v0.98.12

Vinshi01 avatar Jan 24 '25 11:01 Vinshi01

OK, now I have found a file that works for me. Unfortunately, I can no longer see what is happening in the log. With the original vcontrold.xml, I was shown all the address commands, what the result was and what should then be sent. That is no longer the case. I set the 2 two to y, but nothing happens:

<syslog>y</syslog> <debug>y</debug>

does anyone have any ideas?

Kasper027 avatar Jan 24 '25 12:01 Kasper027

same problem. When i copy original vcontrold.xml and vito.xml from repo to homeassistant/vcontrold i am gettin error /config/vcontrold/vcontrold.xml:443: element include: XInclude error : failed build URL when i use vcontrold.xml from openv repo, messages arent logging.

EDIT: with openv vcontrold.xml logging working only with <debug>y</debug>. Probably this line of code is problem. Debug settings are written only to system xml, not custom xml:

https://github.com/Alexandre-io/homeassistant-vcontrol/blob/5ada015ba592376e93c53cb9607a21f4d46dbcb5/vcontrold/rootfs/etc/services.d/vcontrold/run#L72

EDIT2 and problem from first post " failed build URL" is also same. Code handling variables works only with system xml files, no user ones:

# Configure vcontrold.xml with the user-specified values
sed -i "s/#DEVICEID#/$config_deviceid/g" /etc/vcontrold/vcontrold.xml
sed -i "s|#VITOXML#|$config_file_vito|g" /etc/vcontrold/vcontrold.xml

# Enable or disable debug mode based on user configuration
if bashio::config.true 'debug'; then
    sed -i "s/#DEBUG#/y/g" /etc/vcontrold/vcontrold.xml
else
    sed -i "s/#DEBUG#/n/g" /etc/vcontrold/vcontrold.xml
fi

votrelec avatar Apr 27 '25 19:04 votrelec