Binding request: Viessmann (API/ViCare - not vitotronic)

The version 3.2.10 is broken since support of uom.
A PR is with the fix is in progress. You can download the new version here:
https://jenkins.smarthomej.org/job/SmartHomeJ%203.2.x%20Snapshot/lastSuccessfulBuild/org.smarthomej.addons.bundles$org.smarthomej.binding.viessmann/artifact/org.smarthomej.addons.bundles/org.smarthomej.binding.viessmann/3.2.11-20220121.033935-9/org.smarthomej.binding.viessmann-3.2.11-20220121.033935-9.jar

You also have to download the commons JAR here: https://jenkins.smarthomej.org/job/SmartHomeJ%203.2.x%20Snapshot/lastSuccessfulBuild/org.smarthomej.addons.bundles$org.smarthomej.commons/artifact/org.smarthomej.addons.bundles/org.smarthomej.commons/3.2.11-20220121.033037-9/org.smarthomej.commons-3.2.11-20220121.033037-9.jar

At first deinstall the binding. After this put at first the commons jar into the addons folder. Wait 1-2 minutes and then put the binding into addons folder.

Never install two versions of a binding.

Yes it supports control. What do you want to control?
Maybe I can assist.

I get this error :

HANDLER_INITIALIZING_ERROR

Illegal character in query at index 104: https://iam.viessmann.com/idp/v2/authorize?response_type=code&client_id=xxxxxxxxxxxxxx&code_challenge=xxxxxxxxxxxxxx&redirect_uri=http://localhost:8080/viessmann/authcode/&scope=IoT%20User%20offline_access

where is the mistake??

I did. New addons are active:

openhab> la -l|grep smarthomej
296 x Active   x  80 x 3.2.11.202201210329     x file:/usr/share/openhab/addons/org.smarthomej.commons-3.2.11-20220121.033037-9.jar
297 x Active   x  80 x 3.2.11.202201210339     x file:/usr/share/openhab/addons/org.smarthomej.binding.viessmann-3.2.11-20220121.033935-9.jar

Bit still the samer error. Some data can not be parsed correctly…

Exception occurred while initializing handler of thing 'viessmann:device:96afd7d3df:0': Invalid Quantity value: 2098.1 null

@nikos7179
Everything seems right. Pleas PM me the complete log in TCRACE mode.

log:set TRACE org.smarthomej.binding.viessmann

@Tuny I‘ll check it later. I need some time. You‘ll get response soon

ok i found the mistake. i think it was wrong my Client ID.
now it is online but i have the same error like @Tuny

2022-01-21 18:19:24.566 [ERROR] [core.thing.internal.ThingManagerImpl] - Exception occurred while initializing handler of thing ‘viessmann:device:acac21cdf6:0’: Invalid Quantity value: 11.4 null

java.lang.IllegalArgumentException: Invalid Quantity value: 11.4 null

Thank you. In my case the value shows the runtime of the compressor.
So maybe the channel “Compressor statistics (Circuit: 0) hours” is the problem?

Yes, thats right. The problem is the naming of the unit. Sometimes viessmann calls it hour or hours
I’am working on a fix for that issue.

I have fixed the issue. You can download the new version here: https://jenkins.smarthomej.org/job/SmartHomeJ%20PR%20Builds/693/org.smarthomej.addons.bundles$org.smarthomej.binding.viessmann/artifact/org.smarthomej.addons.bundles/org.smarthomej.binding.viessmann/3.2.10-SNAPSHOT/org.smarthomej.binding.viessmann-3.2.10-SNAPSHOT.jar

Please don’t be surprised about the version number, that’s correct, so the version number is smaller.

Please delete the old version before copying it to the addons folder.

Hi Ronny,

I have try the new version but again the same error:
[ERROR] [core.thing.internal.ThingManagerImpl] - Exception occurred while initializing handler of thing ‘viessmann:device:9de7da11c2:0’: Invalid Quantity value: 3.8000000000000003 null
java.lang.IllegalArgumentException: Invalid Quantity value: 3.8000000000000003 null

307 │ Active │ 80 │ 3.2.11.202201210329 │ SmartHome/J Add-ons :: Bundles :: Common Components
314 │ Active │ 80 │ 3.2.10.202201212115 │ SmartHome/J Add-ons :: Bundles :: Viessmann Binding

Do i need also new version from the common component??
Thanks
Nikos

No, you don’t need another version.

I think there is a feature with unknown unit. So please send me the full log in TRACE mode via PM. I‘ll look for the feature with the unknown unit and fix it asap.

Now I’ve fixed the issue. You can download a pre-release here.

http://lu-media.de/download/org.smarthomej.binding.viessmann-3.2.10-SNAPSHOT.jar

Please delete the device thing before.

Hi Ronny,

I am receiving
2022-01-22 17:42:26.237 [WARN ] [org.apache.felix.fileinstall ] - Error while starting bundle: file:/usr/share/openhab/addons/org.smarthomej.binding.viessmann-3.2.10-SNAPSHOT.jar

org.osgi.framework.BundleException: Could not resolve module: org.smarthomej.binding.viessmann [369]

Unresolved requirement: Import-Package: org.smarthomej.commons; version="[3.2.10,3.3.0)"

There is a dependency with the commons bundle of SmartHomeJ project.

You can download it here:

[edit]: here is the correct download link:
https://lu-media.de/download/org.smarthomej.commons-3.2.10-SNAPSHOT.jar

Please use these JARs only for testing. In the next release of the SmartHomeJ project will be fixed some issues.

Here is the project on GitHub: https://github.com/smarthomej/addons

1 Like

Is it possible to control the heating mode, change from heating to standby for example…?

for sending commands, you have to add Metadata for the linked item e.g.
Operating mode - active (Circuit: 0)

Add Command Options with these values:

"standby"=standby
"dhw"=dhw
"dhwAndHeating"=dhwAndHeating
"forcedReduced"=forcedReduced
"forcedNormal"=forcedNormal

Currently there is a bug. You have to write "standby"=standby but after fixing it is changed to standby=standby without quotes

Thanks, that`s working inside the UI. What about a simpe rule file, for example use a time cron and change such a value?

I have fixes the issue with the quotes. You can download a new version here. But please uninstall the old one and then put it into the addons folder.

Please delete the quotes in Metadata Command Options.

https://lu-media.de/download/org.smarthomej.binding.viessmann-3.2.11-SNAPSHOT.jar

In rule use this command:

MyItem.sendCommannd('standby')
1 Like

Hi @rogrun,

thanks for your great work on this binding.
I am using the latest version (3.2.11) and i can set the operating mode through openhab. But settings the operating program does not work. Is this support by the api and the binding?

If you sent you me your paypal adress i will invite you for a beer (or what else you like :wink: )