Binding Request : Buderus web gateway

Alright, will do.
wait a sec.

The services are dynamicly detected. The first part of the names is important but known already.
The OH2 Binding is filtering some stuff out. If a heating system is deactivated or the values are dummies then they are filtered too and you cannot see them. (But in the servicelist in the log file the are still shown).

What is your binding version? 1.9 from the legacy OH2 bindings or this alpha 2.1 (the real OH2 Binding)? What are you using?

I use OH2 with your org.openhab.binding.km200-2.1.0-SNAPSHOT.jar

fyi: i updated my post with all paths i have and give it some meaning by adding some real data to it:

See this post

The log entries repeat quite quickly over and over again.
This is one set of DEBUG entries:

2017-02-03 18:45:01.529 [DEBUG] [0.internal.KM200SwitchProgramService] - Adding day: Mo setpoint: on time: 330
2017-02-03 18:45:01.530 [DEBUG] [0.internal.KM200SwitchProgramService] - Adding day: Mo setpoint: off time: 500
2017-02-03 18:45:01.532 [DEBUG] [0.internal.KM200SwitchProgramService] - Adding day: Mo setpoint: on time: 1080
2017-02-03 18:45:01.533 [DEBUG] [0.internal.KM200SwitchProgramService] - Adding day: Mo setpoint: off time: 1320
2017-02-03 18:45:01.534 [DEBUG] [0.internal.KM200SwitchProgramService] - Adding day: Tu setpoint: on time: 330
2017-02-03 18:45:01.535 [DEBUG] [0.internal.KM200SwitchProgramService] - Adding day: Tu setpoint: off time: 500
2017-02-03 18:45:01.536 [DEBUG] [0.internal.KM200SwitchProgramService] - Adding day: Tu setpoint: on time: 1080
2017-02-03 18:45:01.536 [DEBUG] [0.internal.KM200SwitchProgramService] - Adding day: Tu setpoint: off time: 1320
2017-02-03 18:45:01.537 [DEBUG] [0.internal.KM200SwitchProgramService] - Adding day: We setpoint: on time: 330
2017-02-03 18:45:01.538 [DEBUG] [0.internal.KM200SwitchProgramService] - Adding day: We setpoint: off time: 500
2017-02-03 18:45:01.539 [DEBUG] [0.internal.KM200SwitchProgramService] - Adding day: We setpoint: on time: 1080
2017-02-03 18:45:01.541 [DEBUG] [0.internal.KM200SwitchProgramService] - Adding day: We setpoint: off time: 1320
2017-02-03 18:45:01.542 [DEBUG] [0.internal.KM200SwitchProgramService] - Adding day: Th setpoint: on time: 330
2017-02-03 18:45:01.543 [DEBUG] [0.internal.KM200SwitchProgramService] - Adding day: Th setpoint: off time: 500
2017-02-03 18:45:01.544 [DEBUG] [0.internal.KM200SwitchProgramService] - Adding day: Th setpoint: on time: 1080
2017-02-03 18:45:01.546 [DEBUG] [0.internal.KM200SwitchProgramService] - Adding day: Th setpoint: off time: 1320
2017-02-03 18:45:01.547 [DEBUG] [0.internal.KM200SwitchProgramService] - Adding day: Fr setpoint: on time: 330
2017-02-03 18:45:01.548 [DEBUG] [0.internal.KM200SwitchProgramService] - Adding day: Fr setpoint: off time: 500
2017-02-03 18:45:01.549 [DEBUG] [0.internal.KM200SwitchProgramService] - Adding day: Fr setpoint: on time: 1080
2017-02-03 18:45:01.550 [DEBUG] [0.internal.KM200SwitchProgramService] - Adding day: Fr setpoint: off time: 1320
2017-02-03 18:45:01.551 [DEBUG] [0.internal.KM200SwitchProgramService] - Adding day: Sa setpoint: on time: 370
2017-02-03 18:45:01.553 [DEBUG] [0.internal.KM200SwitchProgramService] - Adding day: Sa setpoint: off time: 540
2017-02-03 18:45:01.554 [DEBUG] [0.internal.KM200SwitchProgramService] - Adding day: Sa setpoint: on time: 1050
2017-02-03 18:45:01.555 [DEBUG] [0.internal.KM200SwitchProgramService] - Adding day: Sa setpoint: off time: 1320
2017-02-03 18:45:01.556 [DEBUG] [0.internal.KM200SwitchProgramService] - Adding day: Su setpoint: on time: 370
2017-02-03 18:45:01.557 [DEBUG] [0.internal.KM200SwitchProgramService] - Adding day: Su setpoint: off time: 540
2017-02-03 18:45:01.558 [DEBUG] [0.internal.KM200SwitchProgramService] - Adding day: Su setpoint: on time: 1050
2017-02-03 18:45:01.559 [DEBUG] [0.internal.KM200SwitchProgramService] - Adding day: Su setpoint: off time: 1320
2017-02-03 18:45:01.559 [DEBUG] [hab.binding.km200.internal.KM200Comm] - Check virtual state of: /dhwCircuits/dhw1/switchPrograms/Eigen1/weekday type: switchProgram item: String
2017-02-03 18:45:01.567 [DEBUG] [ng.km200.handler.KM200GatewayHandler] - Checking: km200:dhwCircuit:dhw1-switchprogram:nbrCycles Root: #dhwCircuits#dhw1#switchPrograms#__current__#nbrCycles
2017-02-03 18:45:01.569 [DEBUG] [hab.binding.km200.internal.KM200Comm] - Check state of: /dhwCircuits/dhw1/switchPrograms/Eigen1/nbrCycles type: null item: Number
2017-02-03 18:45:01.915 [DEBUG] [hab.binding.km200.internal.KM200Comm] - Check state of data: {"id":"/dhwCircuits/dhw1/switchPrograms/Eigen1","type":"switchProgram","setpointProperty":{"id":"/dhwCircuits/dhw1/temperatureLevels","uri":"http://192.168.178.43/dhwCircuits/dhw1/temperatureLevels"},"maxNbOfSwitchPoints":42,"maxNbOfSwitchPointsPerDay":42,"switchPointTimeRaster":10,"writeable":1,"switchPoints":[{"dayOfWeek":"Mo","setpoint":"on","time":330},{"dayOfWeek":"Mo","setpoint":"off","time":500},{"dayOfWeek":"Mo","setpoint":"on","time":1080},{"dayOfWeek":"Mo","setpoint":"off","time":1320},{"dayOfWeek":"Tu","setpoint":"on","time":330},{"dayOfWeek":"Tu","setpoint":"off","time":500},{"dayOfWeek":"Tu","setpoint":"on","time":1080},{"dayOfWeek":"Tu","setpoint":"off","time":1320},{"dayOfWeek":"We","setpoint":"on","time":330},{"dayOfWeek":"We","setpoint":"off","time":500},{"dayOfWeek":"We","setpoint":"on","time":1080},{"dayOfWeek":"We","setpoint":"off","time":1320},{"dayOfWeek":"Th","setpoint":"on","time":330},{"dayOfWeek":"Th","setpoint":"off","time":500},{"dayOfWeek":"Th","setpoint":"on","time":1080},{"dayOfWeek":"Th","setpoint":"off","time":1320},{"dayOfWeek":"Fr","setpoint":"on","time":330},{"dayOfWeek":"Fr","setpoint":"off","time":500},{"dayOfWeek":"Fr","setpoint":"on","time":1080},{"dayOfWeek":"Fr","setpoint":"off","time":1320},{"dayOfWeek":"Sa","setpoint":"on","time":370},{"dayOfWeek":"Sa","setpoint":"off","time":540},{"dayOfWeek":"Sa","setpoint":"on","time":1050},{"dayOfWeek":"Sa","setpoint":"off","time":1320},{"dayOfWeek":"Su","setpoint":"on","time":370},{"dayOfWeek":"Su","setpoint":"off","time":540},{"dayOfWeek":"Su","setpoint":"on","time":1050},{"dayOfWeek":"Su","setpoint":"off","time":1320}]}
2017-02-03 18:45:01.916 [DEBUG] [hab.binding.km200.internal.KM200Comm] - parseJSONData service: /dhwCircuits/dhw1/switchPrograms/Eigen1/nbrCycles, data: {"id":"/dhwCircuits/dhw1/switchPrograms/Eigen1","type":"switchProgram","setpointProperty":{"id":"/dhwCircuits/dhw1/temperatureLevels","uri":"http://192.168.178.43/dhwCircuits/dhw1/temperatureLevels"},"maxNbOfSwitchPoints":42,"maxNbOfSwitchPointsPerDay":42,"switchPointTimeRaster":10,"writeable":1,"switchPoints":[{"dayOfWeek":"Mo","setpoint":"on","time":330},{"dayOfWeek":"Mo","setpoint":"off","time":500},{"dayOfWeek":"Mo","setpoint":"on","time":1080},{"dayOfWeek":"Mo","setpoint":"off","time":1320},{"dayOfWeek":"Tu","setpoint":"on","time":330},{"dayOfWeek":"Tu","setpoint":"off","time":500},{"dayOfWeek":"Tu","setpoint":"on","time":1080},{"dayOfWeek":"Tu","setpoint":"off","time":1320},{"dayOfWeek":"We","setpoint":"on","time":330},{"dayOfWeek":"We","setpoint":"off","time":500},{"dayOfWeek":"We","setpoint":"on","time":1080},{"dayOfWeek":"We","setpoint":"off","time":1320},{"dayOfWeek":"Th","setpoint":"on","time":330},{"dayOfWeek":"Th","setpoint":"off","time":500},{"dayOfWeek":"Th","setpoint":"on","time":1080},{"dayOfWeek":"Th","setpoint":"off","time":1320},{"dayOfWeek":"Fr","setpoint":"on","time":330},{"dayOfWeek":"Fr","setpoint":"off","time":500},{"dayOfWeek":"Fr","setpoint":"on","time":1080},{"dayOfWeek":"Fr","setpoint":"off","time":1320},{"dayOfWeek":"Sa","setpoint":"on","time":370},{"dayOfWeek":"Sa","setpoint":"off","time":540},{"dayOfWeek":"Sa","setpoint":"on","time":1050},{"dayOfWeek":"Sa","setpoint":"off","time":1320},{"dayOfWeek":"Su","setpoint":"on","time":370},{"dayOfWeek":"Su","setpoint":"off","time":540},{"dayOfWeek":"Su","setpoint":"on","time":1050},{"dayOfWeek":"Su","setpoint":"off","time":1320}]}
2017-02-03 18:45:01.919 [DEBUG] [hab.binding.km200.internal.KM200Comm] - state of type switchProgram: {"id":"/dhwCircuits/dhw1/switchPrograms/Eigen1","type":"switchProgram","setpointProperty":{"id":"/dhwCircuits/dhw1/temperatureLevels","uri":"http://192.168.178.43/dhwCircuits/dhw1/temperatureLevels"},"maxNbOfSwitchPoints":42,"maxNbOfSwitchPointsPerDay":42,"switchPointTimeRaster":10,"writeable":1,"switchPoints":[{"dayOfWeek":"Mo","setpoint":"on","time":330},{"dayOfWeek":"Mo","setpoint":"off","time":500},{"dayOfWeek":"Mo","setpoint":"on","time":1080},{"dayOfWeek":"Mo","setpoint":"off","time":1320},{"dayOfWeek":"Tu","setpoint":"on","time":330},{"dayOfWeek":"Tu","setpoint":"off","time":500},{"dayOfWeek":"Tu","setpoint":"on","time":1080},{"dayOfWeek":"Tu","setpoint":"off","time":1320},{"dayOfWeek":"We","setpoint":"on","time":330},{"dayOfWeek":"We","setpoint":"off","time":500},{"dayOfWeek":"We","setpoint":"on","time":1080},{"dayOfWeek":"We","setpoint":"off","time":1320},{"dayOfWeek":"Th","setpoint":"on","time":330},{"dayOfWeek":"Th","setpoint":"off","time":500},{"dayOfWeek":"Th","setpoint":"on","time":1080},{"dayOfWeek":"Th","setpoint":"off","time":1320},{"dayOfWeek":"Fr","setpoint":"on","time":330},{"dayOfWeek":"Fr","setpoint":"off","time":500},{"dayOfWeek":"Fr","setpoint":"on","time":1080},{"dayOfWeek":"Fr","setpoint":"off","time":1320},{"dayOfWeek":"Sa","setpoint":"on","time":370},{"dayOfWeek":"Sa","setpoint":"off","time":540},{"dayOfWeek":"Sa","setpoint":"on","time":1050},{"dayOfWeek":"Sa","setpoint":"off","time":1320},{"dayOfWeek":"Su","setpoint":"on","time":370},{"dayOfWeek":"Su","setpoint":"off","time":540},{"dayOfWeek":"Su","setpoint":"on","time":1050},{"dayOfWeek":"Su","setpoint":"off","time":1320}]}
2017-02-03 18:45:01.923 [DEBUG] [0.internal.KM200SwitchProgramService] - sPoints: {"setpointProperty":{"id":"/dhwCircuits/dhw1/temperatureLevels","uri":"http://192.168.178.43/dhwCircuits/dhw1/temperatureLevels"},"maxNbOfSwitchPoints":42,"maxNbOfSwitchPointsPerDay":42,"id":"/dhwCircuits/dhw1/switchPrograms/Eigen1","writeable":1,"type":"switchProgram","switchPointTimeRaster":10,"switchPoints":[{"dayOfWeek":"Mo","setpoint":"on","time":330},{"dayOfWeek":"Mo","setpoint":"off","time":500},{"dayOfWeek":"Mo","setpoint":"on","time":1080},{"dayOfWeek":"Mo","setpoint":"off","time":1320},{"dayOfWeek":"Tu","setpoint":"on","time":330},{"dayOfWeek":"Tu","setpoint":"off","time":500},{"dayOfWeek":"Tu","setpoint":"on","time":1080},{"dayOfWeek":"Tu","setpoint":"off","time":1320},{"dayOfWeek":"We","setpoint":"on","time":330},{"dayOfWeek":"We","setpoint":"off","time":500},{"dayOfWeek":"We","setpoint":"on","time":1080},{"dayOfWeek":"We","setpoint":"off","time":1320},{"dayOfWeek":"Th","setpoint":"on","time":330},{"dayOfWeek":"Th","setpoint":"off","time":500},{"dayOfWeek":"Th","setpoint":"on","time":1080},{"dayOfWeek":"Th","setpoint":"off","time":1320},{"dayOfWeek":"Fr","setpoint":"on","time":330},{"dayOfWeek":"Fr","setpoint":"off","time":500},{"dayOfWeek":"Fr","setpoint":"on","time":1080},{"dayOfWeek":"Fr","setpoint":"off","time":1320},{"dayOfWeek":"Sa","setpoint":"on","time":370},{"dayOfWeek":"Sa","setpoint":"off","time":540},{"dayOfWeek":"Sa","setpoint":"on","time":1050},{"dayOfWeek":"Sa","setpoint":"off","time":1320},{"dayOfWeek":"Su","setpoint":"on","time":370},{"dayOfWeek":"Su","setpoint":"off","time":540},{"dayOfWeek":"Su","setpoint":"on","time":1050},{"dayOfWeek":"Su","setpoint":"off","time":1320}]}

Try to upload the whole file somewhere, there are some important informations on other places. (Look in this file bevor uploading. In debug mode there could be the passwords. Find and remove them).

The wiki shows all capabilities of the OH 1.9 Binding, such configurations are not possible with the 2.1.0 one.
The OH2 is completly different to OH1. If you really need it, then remove the 2.1.0 binding, enable the lagacy bindings is the OH2 configuration and install the 1.9 binding from the PaperUI. (from the usuall binding list).
In this case you can configure the KM Device from the Paper UI and all items like wiki.

ah ok - well, good work mate ! :wink:

Thanks for the clarification.

Basically I just would like to switch off heating (and hot water) when no one is at home any more and switch it back on when someone returns home.

Is this possible by manipulating one of the existing items / channels in 2.1.0 ?

No, it’s not possible yet. I will thing about it, maybe there is a way. (The only way is to change the string in the linked item)

It’s not urgent, but needed someday :wink:

Could you please specify, what you mean with this?

If the service is linked to an item, then you can simple change it. (e.g. in PaperUI/Control, click on the item, edit the string, e.g. from AUTO to MANUAL. The second way is if you use e.g. cometvisu and add a string switching button. Take a look to the cometvisu examples in the wiki.

Hello!

I see @whopperg updated the KM200 binding wiki page, which is great. But could someone also update the new version at README.md by submitting a pull request (which will happen when you press the :pencil2: icon )? This version is for openHAB 2 users and will appear at docs.openhab.org. In the new version, please work within the headers that are there, or at least the levels defined. Also, the other Markdown processor used at docs.openhab.org requires blank lines around headings and code blocks.

Thanks!

Ok, done.

yep, updated.

Thanks! Change merged.

I am not familiar with cometvisu (Just use BasicUI and Habpanel).
But I understood that you mean something like this:
A String Item:
String Heating_Mode "Heizungs-Modus" {channel="whatever_link_to_th_appropriate_service"}

Which will be mapped / activated by a switch!?
Sitemap:
Switch item=Heating_Mode mappings=[day="Tag",night="Nacht",auto="Auto"]

With the latest version 1.9 you’ve sent, @Markinus I am finally able to switch my Buderus:
Switch budMode "Mode [%s]" {km200="service:/heatingCircuits/hc1/operationMode on:day off:night"}

Thanks a lot for your support and your efforts!

Will you ping this thread, when the new 2.0 binding will assimilate this switching functionality?

Hi,

Thank you! Great work!
I am testing the latest git revision of your oh2 addon on the latest oh2 stable release.
It is working great so far.
Auto discovery works fine, communication there after as well.

The only item I am missing is “/system/healthStatus”.
It definitely is available on my KM200 as I used to use a python script for fetching the data and did read that property as well.

I looked through all the things but couldn’t find it.
Do you perhaps know under which thing it should be located?
Do you have any idea why it is not showing up or how I could debugs this?

Thanks