Binding Request : Buderus web gateway

Update / Solved: Followed the steps in post #113. Just ran the inbox search a second time and the items popped up.

Hi @Markinus,

I’m using the OH2 binding 2.5.0.SNAPSHOT. My MB Lan2 was detected successfully and after entering the key the device is now online. However, no channels or items are created. Understandably, nothing is displayed in the PaperUi.The debug log shows the following entries:

2019-07-08 17:30:46.182 [hingStatusInfoChangedEvent] - 'km200:kmdevice:45309xxxx' changed from INITIALIZING to ONLINE
2019-07-08 17:31:16.188 [DEBUG] [KM200GatewayHandler$GetKM200Runnable] - GetKM200Runnable
2019-07-08 17:31:46.189 [DEBUG] [M200GatewayHandler$SendKM200Runnable] - Send-Executor started
(...)
2019-07-08 21:12:47.122 [DEBUG] [M200GatewayHandler$SendKM200Runnable] - Send-Executor started
2019-07-08 21:12:48.067 [DEBUG] [KM200GatewayHandler$GetKM200Runnable] - GetKM200Runnable
2019-07-08 21:13:18.070 [DEBUG] [KM200GatewayHandler$GetKM200Runnable] - GetKM200Runnable
2019-07-08 21:13:47.134 [DEBUG] [M200GatewayHandler$SendKM200Runnable] - Send-Executor started
2019-07-08 21:13:48.073 [DEBUG] [KM200GatewayHandler$GetKM200Runnable] - GetKM200Runnable

So far I cannot understand what I can do more. Can you give me a hint?

HI,
you should see the thing in the inbox. Is it not appearing there?
Greeting
Markus

Hi,

the “systemStates” extension is now merged into the master. The next OH full build from master should have this extension inside.

Greetings

Hi,

I took a look to the decimal places and I think it should be fixed now. It would be great if someone could test. Here is a new version. (Fixed to one decimal place)

Greetings
Markus

1 Like

Hi Markus,

thanks for taking a look into this.
I just installed the latest version and the temperatures now show up with one decimal except the supply temperatures: (Filtered on “supply” to shorten log):

km200_heatSource_817210159_heatSources_applianceSupplyTemperature changed from NULL to 61.900001525878906
2019-09-01 20:35:37.894 [vent.ItemStateChangedEvent] - km200_heatSource_817210159_heatSources_actualSupplyTemperature changed from NULL to 61.900001525878906
2019-09-01 20:35:38.615 [vent.ItemStateChangedEvent] - km200_sensor_817210159_temperatures_supply_t1_setpoint changed from NULL to 5.0
2019-09-01 20:35:38.755 [vent.ItemStateChangedEvent] - Heat_supplyTemp changed from NULL to 61.900001525878906 °C
2019-09-01 20:35:39.319 [vent.ItemStateChangedEvent] - km200_heatSource_817210159_heatSources_supplyTemperatureSetpoint changed from NULL to 5.0
2019-09-01 20:35:46.514 [vent.ItemStateChangedEvent] - km200_appliance_817210159_appliance_actualSupplyTemperature changed from NULL to 61.70000076293945
2019-09-01 20:36:09.184 [vent.ItemStateChangedEvent] - km200_heatSource_817210159_heatSources_applianceSupplyTemperature changed from 61.900001525878906 to 61.70000076293945
2019-09-01 20:36:10.104 [vent.ItemStateChangedEvent] - km200_heatSource_817210159_heatSources_actualSupplyTemperature changed from 61.900001525878906 to 61.70000076293945
2019-09-01 20:36:11.486 [vent.ItemStateChangedEvent] - Heat_supplyTemp changed from 61.900001525878906 °C to 61.70000076293945 °C
2019-09-01 20:36:46.543 [vent.ItemStateChangedEvent] - km200_heatSource_817210159_heatSources_applianceSupplyTemperature changed from 61.70000076293945 to 61.599998474121094
2019-09-01 20:36:47.463 [vent.ItemStateChangedEvent] - km200_heatSource_817210159_heatSources_actualSupplyTemperature changed from 61.70000076293945 to 61.599998474121094
2019-09-01 20:36:48.865 [vent.ItemStateChangedEvent] - Heat_supplyTemp changed from 61.70000076293945 °C to 61.599998474121094 °C
2019-09-01 20:36:49.554 [vent.ItemStateChangedEvent] - km200_appliance_817210159_appliance_actualSupplyTemperature changed from 61.70000076293945 to 61.599998474121094

Edit: Deleted the heatsources thing, removed the items and relinked them. Same effect, still values with many decimals.
Edit2: In Paper UI the values look good, rounded to one decimal.
Regards
Thomas

HI,

hmm, that’s strange. There is no difference between supplyTemp and the other float values…

Greetings
Markus

I am having trouble to change the Refresh Interval from 30s default to another higher value, for example 120. It always gets back to 30 whatever I type in. My hope ts to reduce the size of the log file with less polling periods.

Hello Markus,

I finally took some time and updated to 2.5.0 M3 plus had one more look into the logs.
It affects all temperature values coming from KM200.
Below I filtered on the item “HeatSources_ApplianceSupplyTemperature”, which gives a good impression on what is going on. In some cases it actually does work, but there are others when it jumps from single decimal digit to full length, back to single digit etc.
Setting the items dimension to “Temperature” did just add the unit of measurement s expected, but the values keep jumping.

Somewhere in the code there seems to be a path where cutting the decimals is bypassed.

Kind Regards,
Oggerschummer

2019-10-03 10:28:27.668 [vent.ItemStateChangedEvent] - HeatSources_ApplianceSupplyTemperature changed from NULL to 56.5

2019-10-03 10:28:58.288 [vent.ItemStateChangedEvent] - HeatSources_ApplianceSupplyTemperature changed from 56.5 to 59.5

2019-10-03 10:29:33.588 [vent.ItemStateChangedEvent] - HeatSources_ApplianceSupplyTemperature changed from 59.5 to 61.70000076293945

2019-10-03 10:30:08.927 [vent.ItemStateChangedEvent] - HeatSources_ApplianceSupplyTemperature changed from 61.70000076293945 to 63.0

2019-10-03 10:30:44.257 [vent.ItemStateChangedEvent] - HeatSources_ApplianceSupplyTemperature changed from 63.0 to 63.79999923706055

2019-10-03 10:31:20.587 [vent.ItemStateChangedEvent] - HeatSources_ApplianceSupplyTemperature changed from 63.79999923706055 to 64.0

2019-10-03 10:31:55.937 [vent.ItemStateChangedEvent] - HeatSources_ApplianceSupplyTemperature changed from 64.0 to 64.19999694824219

2019-10-03 10:33:06.537 [vent.ItemStateChangedEvent] - HeatSources_ApplianceSupplyTemperature changed from 64.19999694824219 to 64.0

2019-10-03 10:34:52.466 [vent.ItemStateChangedEvent] - HeatSources_ApplianceSupplyTemperature changed from 64.0 to 64.30000305175781

2019-10-03 10:35:27.765 [vent.ItemStateChangedEvent] - HeatSources_ApplianceSupplyTemperature changed from 64.30000305175781 to 64.5

2019-10-03 10:36:03.055 [vent.ItemStateChangedEvent] - HeatSources_ApplianceSupplyTemperature changed from 64.5 to 65.69999694824219

2019-10-03 10:36:38.355 [vent.ItemStateChangedEvent] - HeatSources_ApplianceSupplyTemperature changed from 65.69999694824219 to 61.900001525878906

2019-10-03 10:37:13.675 [vent.ItemStateChangedEvent] - HeatSources_ApplianceSupplyTemperature changed from 61.900001525878906 to 58.20000076293945

2019-10-03 10:37:48.995 [vent.ItemStateChangedEvent] - HeatSources_ApplianceSupplyTemperature changed from 58.20000076293945 to 54.900001525878906

2019-10-03 10:38:24.305 [vent.ItemStateChangedEvent] - HeatSources_ApplianceSupplyTemperature changed from 54.900001525878906 to 58.0

2019-10-03 10:38:59.634 [vent.ItemStateChangedEvent] - HeatSources_ApplianceSupplyTemperature changed from 58.0 to 61.099998474121094

2019-10-03 10:39:34.944 [vent.ItemStateChangedEvent] - HeatSources_ApplianceSupplyTemperature changed from 61.099998474121094 to 64.0

2019-10-03 10:40:10.254 [vent.ItemStateChangedEvent] - HeatSources_ApplianceSupplyTemperature changed from 64.0 to 65.80000305175781

2019-10-03 10:40:45.544 [vent.ItemStateChangedEvent] - HeatSources_ApplianceSupplyTemperature changed from 65.80000305175781 to 62.599998474121094

2019-10-03 10:41:20.834 [vent.ItemStateChangedEvent] - HeatSources_ApplianceSupplyTemperature changed from 62.599998474121094 to 58.70000076293945

2019-10-03 10:41:56.153 [vent.ItemStateChangedEvent] - HeatSources_ApplianceSupplyTemperature changed from 58.70000076293945 to 56.400001525878906

2019-10-03 10:42:31.453 [vent.ItemStateChangedEvent] - HeatSources_ApplianceSupplyTemperature changed from 56.400001525878906 to 54.599998474121094

2019-10-03 10:43:06.783 [vent.ItemStateChangedEvent] - HeatSources_ApplianceSupplyTemperature changed from 54.599998474121094 to 53.79999923706055

2019-10-03 10:43:42.093 [vent.ItemStateChangedEvent] - HeatSources_ApplianceSupplyTemperature changed from 53.79999923706055 to 52.900001525878906

2019-10-03 10:44:17.462 [vent.ItemStateChangedEvent] - HeatSources_ApplianceSupplyTemperature changed from 52.900001525878906 to 52.400001525878906

2019-10-03 10:44:52.752 [vent.ItemStateChangedEvent] - HeatSources_ApplianceSupplyTemperature changed from 52.400001525878906 to 52.099998474121094

2019-10-03 10:45:28.072 [vent.ItemStateChangedEvent] - HeatSources_ApplianceSupplyTemperature changed from 52.099998474121094 to 52.0

2019-10-03 10:47:14.001 [vent.ItemStateChangedEvent] - HeatSources_ApplianceSupplyTemperature changed from 52.0 to 51.900001525878906

2019-10-03 10:47:49.311 [vent.ItemStateChangedEvent] - HeatSources_ApplianceSupplyTemperature changed from 51.900001525878906 to 51.70000076293945

2019-10-03 10:48:24.621 [vent.ItemStateChangedEvent] - HeatSources_ApplianceSupplyTemperature changed from 51.70000076293945 to 56.0

2019-10-03 10:48:59.931 [vent.ItemStateChangedEvent] - HeatSources_ApplianceSupplyTemperature changed from 56.0 to 58.900001525878906

2019-10-03 10:49:35.240 [vent.ItemStateChangedEvent] - HeatSources_ApplianceSupplyTemperature changed from 58.900001525878906 to 61.0

2019-10-03 10:50:10.530 [vent.ItemStateChangedEvent] - HeatSources_ApplianceSupplyTemperature changed from 61.0 to 62.5

2019-10-03 10:50:45.870 [vent.ItemStateChangedEvent] - HeatSources_ApplianceSupplyTemperature changed from 62.5 to 63.0

I have the same issues. Has this been solved yet. At least I don’t find this search term in this thread. Thanks.

I am running v2.4.0 Release Build and get the items displayed with a sitemap in BasicUI. I like this addon very much, thank you for a lot!

Now I would also like to change the target temperature, so I added as an item
Number T_Zieltemp_Nacht "Zieltemperatur Nacht [%.1f °C]" <radiator> { channel="km200:heatingCircuit:957210373:hc1:temperatureLevels_night" }
and in the sitemap
Setpoint item=T_Zieltemp_Nacht minValue=10 maxValue=20 step=1

When I move the slider, I get this log:

2019-11-21 23:16:55.362 [nt.ItemStatePredictedEvent] - T_Zieltemp_Nacht predicted to become 15
2019-11-21 23:16:55.376 [vent.ItemStateChangedEvent] - T_Zieltemp_Nacht changed from 16 to 15
2019-11-21 23:16:57.942 [vent.ItemStateChangedEvent] - km200_heatingCircuit_957210373_hc1_temperatureLevels_night changed from 17.0 to 16.0
2019-11-21 23:16:57.953 [vent.ItemStateChangedEvent] - T_Zieltemp_Nacht changed from 15 to 16.0

But the temperature at the heaitng is not changed when I look into the RC35. Any hints what’s going wrong? Thank in advance for your answers!

KR,
Christof

Hi,
you are using the 1.0 items configuration on the 2.X binding. You have to remove it and create new from PaperUI.
Greetings

HI,
you need some time. It can take some minutes till it’s activated in the heating system.
Does it work’s from the PaperUI?
Greetings

Hello Oggerschummer,

hmm, thats a bit strange. I will test something. Please use this version. Can you see any difference?
How are you testing it? A script? If it’s still not working then send me an example.
Greetings
Markus

Thanks fo your answer!

The change takes some time to be effective.

In PaperUI, there was a NaN in line “Zieltemperatur Nacht”, then I changed it there to 17. See a screenshot of this afterwards:
InBildschirmfoto%20zu%202019-11-23%2019-38-11

If I check the setting at the RC35, it’s still at 18°C.

Then I changed “night” to 15.0 with the result that " Zieltemperatur Nacht" also changes to 15. Looking at the RC35, also no change, the temperature setting is still at 18°C.

I also set the mode to manual “night”, same behaviour, so the RC35 shows 18°C. The other way is working fine, so setting e.g. 17°C at the RC35, PaperUI and BasicUI show 17°C.

Hi,
I tested it just with my system and all stuff is working like expected. You can see it in the buderus app. If you change the target “day” value in OH (it’s active now) then the app shown the new value. (But you have to switch the sreens inside the app so it is able to read the new values from the device).
NaN is strange, does it always show NaN?
Greetings

Hi,
Well with the App I get exactly what you are reporting. The setting in OH2 is also visible in the App and vice-versa. But the control RC35 on the boiler does not change. Maybe the problem is already in the App. I will contact Buderus help in order to fix this.
I’ll keep you informed about the status. Thanks a lot for the support!!!
KR,
Christof

Hi,
in my RC35 it changes.
If you open the small flap on the RC35 there is a temperature button (next to the calender button), If you press it then it shown the actual set temperature and the measured temperature.
If I change the value in OH then a short time later the value changes there too . Without to close and open it again…
Greetings
Markus

Hello Markus,
just shut down OH, replace the binding in addons, cleared the cache with openhab-cli, restarted OH.

Result is a before, the log file shows that the values are more or less alternating between single fraction precision to unlimited and back.

I have no specific test script, the log shows the behavior:

2019-11-25 12:26:03.827 [vent.ItemStateChangedEvent] - km200_appliance_817210159_appliance_actualSupplyTemperature changed from 59.70000076293945 to 60.099998474121094

2019-11-25 12:26:28.126 [vent.ItemStateChangedEvent] - km200_gateway_817210159_gateway_DateTime changed from 2019-11-25T12:25:36 to 2019-11-25T12:26:08

2019-11-25 12:26:29.505 [vent.ItemStateChangedEvent] - km200_appliance_817210159_appliance_actualSupplyTemperature changed from 60.099998474121094 to 60.0

2019-11-25 12:27:02.725 [vent.ItemStateChangedEvent] - km200_gateway_817210159_gateway_DateTime changed from 2019-11-25T12:26:08 to 2019-11-25T12:26:42

2019-11-25 12:27:04.105 [vent.ItemStateChangedEvent] - km200_appliance_817210159_appliance_actualSupplyTemperature changed from 60.0 to 59.900001525878906

2019-11-25 12:27:37.345 [vent.ItemStateChangedEvent] - km200_gateway_817210159_gateway_DateTime changed from 2019-11-25T12:26:42 to 2019-11-25T12:27:16

2019-11-25 12:27:38.725 [vent.ItemStateChangedEvent] - km200_appliance_817210159_appliance_actualSupplyTemperature changed from 59.900001525878906 to 60.0

Regards
Thomas

Hi,
ok, I created a new version with some output, you can download it here.
I would be great if you could test it, I’m testing a new OH service and cannot this myself.
Greetings

Hello Markus,

from what I see in the log on level DEBUG the JSON contains valid data.
The Float-value logged after parsing shows to many fractions.
Below there is such an example:

2019-11-26 10:08:00.623 [DEBUG] [hab.binding.km200.internal.KM200Comm] - Starting receive connection...

2019-11-26 10:08:00.751 [DEBUG] [00.internal.handler.KM200DataHandler] - parseJSONData service: /heatSources/applianceSupplyTemperature, data: {"id":"/heatSources/applianceSupplyTemperature","type":"floatValue","writeable":0,"recordable":0,"value":58.9,"unitOfMeasure":"C","state":[{"open":-3276.8},{"short":3276.7}]}

2019-11-26 10:08:00.751 [INFO ] [00.internal.handler.KM200DataHandler] - state of type float value: {"id":"/heatSources/applianceSupplyTemperature","type":"floatValue","writeable":0,"recordable":0,"value":58.9,"unitOfMeasure":"C","state":[{"open":-3276.8},{"short":3276.7}]}

2019-11-26 10:08:00.751 [INFO ] [00.internal.handler.KM200DataHandler] - Float: 58.900001525878906

Regards
Thomas