Dear all,

I am new to openHAB. I even have not installed it yet on my Raspberry. So far I was playing arounfd with FHEM but from what I’ve read s far about OpenHAB, I want to have a lokk at it for sure, for various reasons.
One thing I would like to understand is weather I could use OpenHAB to readout/control my central heating. The heating is a SOLVIS Max and I have a webinterface (SolvisRemote) to communicate with it.
IN FHEM there seems t be a rather simple method to communicate but I haven’t tried it out, since I’m recently found OpenHAB and now I do not know which platform I want to use in the future.
Certainly the Heating control would be one of the things for making this decision. Apart from taht I want to control my Harmony remote control, several homematic actors (wia a USB CUL) and other low frequency (FS) devices. I also have a sheepwalk one-wire board connected to my PI3 to do temperature measurements in my house.

Thanks for any help or comments

There isn’t a SOLVIS binding but if it has a REST API you can use the HTTP Binding to send commands to it and poll for changes.

There is a Harmony Binding and Homematic Binding which should work.

I don’t know anything about FS devices.

There is a OneWire binding.

It is possible to get the values from the SolvisRemote by using executeCommandLine that calls a cURL-command:

var results = executeCommandLine("/usr/bin/curl -u user:password --digest -s ip_of_solvisRemote/sc2_val.xml", 500)

You get a large string in the variable results. With the following rule you translate the string to the values of interest from the solvis.

rule "Solvis"
	Item solvisswitch received update
	if(solvisswitch.state == ON) {
        var results = executeCommandLine("/usr/bin/curl -u user:password --digest -s ip_of_solvisRemote/sc2_val.xml", 500)
		var String temp = ""
		if (Integer.parseInt(results.substring(27,29),16)>9) {
			temp = Integer.parseInt(results.substring(27,29),16).toString
			else {
				temp = "0" + Integer.parseInt(results.substring(27,29),16).toString
		if (Integer.parseInt(results.substring(25,27),16)>9) {
			temp = Integer.parseInt(results.substring(25,27),16).toString + ":" + temp
			else {
				temp = "0" + Integer.parseInt(results.substring(25,27),16).toString + ":" + temp
		if (Integer.parseInt(results.substring(23,25),16)>9) {
			temp = Integer.parseInt(results.substring(23,25),16).toString + ":" + temp
			else {
				temp = "0" + Integer.parseInt(results.substring(23,25),16).toString + ":" + temp
		if (Integer.parseInt(results.substring(141,143),16)==0) {solvis_A1v.sendCommand(OFF)}
		else solvis_A1v.sendCommand(ON)
		if (Integer.parseInt(results.substring(143,145),16)==0) {solvis_A2v.sendCommand(OFF)}
		else solvis_A2v.sendCommand(ON)
		if (Integer.parseInt(results.substring(145,147),16)==0) {solvis_A3v.sendCommand(OFF)}
		else solvis_A3v.sendCommand(ON)
		if (Integer.parseInt(results.substring(149,151),16)==0) {solvis_A5v.sendCommand(OFF)}
		else solvis_A5v.sendCommand(ON)
		if (Integer.parseInt(results.substring(155,157),16)==0) {solvis_A8v.sendCommand(OFF)}
		else solvis_A8v.sendCommand(ON)
		if (Integer.parseInt(results.substring(157,159),16)==0) {solvis_A9v.sendCommand(OFF)}
		else solvis_A9v.sendCommand(ON)
		if (Integer.parseInt(results.substring(163,165),16)==0) {solvis_A12v.sendCommand(OFF)}
		else solvis_A12v.sendCommand(ON)
		if (Integer.parseInt(results.substring(167,169),16)==0) {solvis_A14v.sendCommand(OFF)}
		else solvis_A14v.sendCommand(ON)
	if(solvisswitch.state == OFF) {
	// Führe die Anweisung erst aus, wenn die letzte Ausführung vollständig erledigt ist.

To control the solvis, you had the possibility to call the solvisRemote-URL and simulate the mouse-clicks (as you do it, when you are at keyboard and mouse).
This is a work for the http-binding.
But I don’t know how it ist possible to make a request with the needed authentification “digest”.
Does anyone knows this ?
You can find this solution in the fhem-community-board Ansteuerung SolvisMax/Solvis-Remote


Those of us who run openHAB in regions of harsh environmental conditions (ie. temperatures in winter actually drop below 0°C… :wink:) will eventually notice that Wolfgang’s code can be improved to account for the fact that java-method parseInt could also be referred to as parseUInt:

All temperature values sent by SOLVIS’s Remote-Interface are 16bit-values represented in two’s complement notation! As long as the readings are greater than zero, the code above works fine.
But if sensors located outside of the building (eg. flow temperature of solar panels (S8v) or outdoor sensor (S10v)) report values less than 0, one will have to transform the 16bit-data words in order to not end up with garbled temperature readings!

For myself, I found following solution:

// Add two temporary variables for S8v and S10v
var Integer S8v = Integer.parseInt(rawdata.substring(67,69)+rawdata.substring(65,67),16)
var Integer S10v = Integer.parseInt(rawdata.substring(75,77)+rawdata.substring(73,75),16)
// take care of two's complement representation, if applicable
if (S8v > 32767) { S8v = S8v - 65536 }
if (S10v > 32767) { S10v =  S10v - 65536 }

Then, in the postUpdate -Block of Wolfgang’s snippet, replace the update lines for the both sensors by


I’m sure there are more elegant ways to code that (I tried to implement a function, doing the math) but honestly - Xtend and me have a hard time becoming friends…


1 Like

Thank you, Bernie, for your nice addition.
In fact, temperature values <0 degrees are shown in Solvis as described by you.
Your supplement correctly displays the values in openHab.