Hi there,
I just started with openHAB after receiving my Buderus KM200 gateway. I already managed so far to setup the KM200 binding and define the items file and started to play around with the sitemap.
I am already able to switch the operations mode of my Buderus heating between the three states “auto”, “day” and “night”. I found that there is the “expire” binding to switch back a state of an item after a certain intervall given by expire. I tried this out but it does not work. And I have two questions now:
- What am I doing wrong that the operations mode does not switch back after a certain time?
- Is it possible to dynamically set the expiration intervall for an item?
Find below the excerpts of my Heizung.items file:
...
String modeBudHeiz "Mode-Heizung [%s]" (gHeating) {km200="service:/heatingCircuits/hc1/operationMode"}
...
Switch modeBudHeizNight "Nightmode-Heizung [%s]" (gHeating) {km200="service:/heatingCircuits/hc1/operationMode on:night off:auto"}
Switch modeBudHeizDay "Daymode-Heizung [%s]" (gHeating) {km200="service:/heatingCircuits/hc1/operationMode on:day off:auto"}
String pauseBudHeiz "5 Min. Pausemodus setzen [%s]" (gHeating) {km200="service:/heatingCircuits/hc1/operationMode", expire="5m,command=auto"}
...
The switches are not yet used. They are from the example file …
I have mapped the heatings operationsMode to two items: “modeBudHeiz” and “pauseBudHeiz”
modeBudHeiz is intended to set the operations mode generally.
pauseBudHeiz is intented to set temporarily the operations mode to “night=off” and automitcally switch it back after 5 minutes to auto
This is my default.sitemap. It contains also some graphs which are not important here …
sitemap default label="My first sitemap"
{
Text item=budDate label="Datum / Uhrzeit [%1$td.%1$tm.%1$tY %1$tH:%1$tM]" icon="time"
Text item=modeBudHeiz label="Aktueller Heizungsmodus [%s]" icon="heating"
Selection item=modeBudHeiz label="Heizungsmodus setzen [%s]" icon="switch" mappings=[auto=Programm, day=Tag, night=Nacht]
Selection item=pauseBudHeiz label="5 Minuten Pausemodus [%s]" icon="switch" mappings=[auto=Programm, day=Tag, night=Nacht]
Chart item=istBudAussen icon="temperature" label="Außentemperatur" refresh=1500 period=1d service="mysql"
Chart item=istBudHeizDruck icon="temperature" label="Heizkreis-Wasserdruck" refresh=1500 period=1d service="mysql"
Chart item=istBudHeizTemp icon="temperature" label="Raum-Temperatur" refresh=1500 period=1d service="mysql"
}
The first selection “modeBudHeiz” works fine and I am able to set the mode and I can see from my RC35 operations panel that the mode is changed correctly.
I made the second selection “pauseBudHeiz” to point the the alternative item which I want to change the operations mode only for 5 minutes (see items file).
Switching the mode works but switching back never happens => see excerpt from “openhab.log”.
I initiated the change via the Basic UI panel at 10:47:57 but even ten minutes later there is no switching back to “auto” as configured with expire => {km200=“service:/heatingCircuits/hc1/operationMode”, expire="5m,command=auto"}
10:47:57.140 [INFO ] [smarthome.event.ItemCommandEvent ] - Item 'pauseBudHeiz' received command night
10:47:57.141 [INFO ] [marthome.event.ItemStateChangedEvent] - pauseBudHeiz changed from auto to night
10:48:45.693 [INFO ] [marthome.event.ItemStateChangedEvent] - istBudAussen changed from 16.8999996185302734375 to 16.799999237060546875
10:48:46.496 [INFO ] [marthome.event.ItemStateChangedEvent] - budDate changed from 2017-10-03T12:50:34.000+0000 to 2017-10-03T12:51:35.000+0000
10:48:46.626 [INFO ] [marthome.event.ItemStateChangedEvent] - modeBudHeizNight changed from OFF to ON
10:48:47.694 [INFO ] [marthome.event.ItemStateChangedEvent] - istBudWasser changed from 61.799999237060546875 to 61.90000152587890625
10:48:49.566 [INFO ] [marthome.event.ItemStateChangedEvent] - istBudWasserM changed from 61.90000152587890625 to 61.799999237060546875
10:48:51.969 [INFO ] [marthome.event.ItemStateChangedEvent] - modeBudHeiz changed from auto to night
10:48:52.704 [INFO ] [marthome.event.ItemStateChangedEvent] - istBudHeizKessel changed from 75.6999969482421875 to 75.8000030517578125
10:49:45.526 [INFO ] [marthome.event.ItemStateChangedEvent] - budDate changed from 2017-10-03T12:51:35.000+0000 to 2017-10-03T12:52:34.000+0000
10:49:48.336 [INFO ] [marthome.event.ItemStateChangedEvent] - istBudWasserM changed from 61.799999237060546875 to 61.90000152587890625
10:49:51.547 [INFO ] [marthome.event.ItemStateChangedEvent] - istBudHeizKessel changed from 75.8000030517578125 to 76.09999847412109375
10:50:45.601 [INFO ] [marthome.event.ItemStateChangedEvent] - budDate changed from 2017-10-03T12:52:34.000+0000 to 2017-10-03T12:53:34.000+0000
10:50:51.255 [INFO ] [marthome.event.ItemStateChangedEvent] - istBudHeizKessel changed from 76.09999847412109375 to 76.1999969482421875
10:51:44.492 [INFO ] [marthome.event.ItemStateChangedEvent] - istBudAussen changed from 16.799999237060546875 to 16.700000762939453125
10:51:46.007 [INFO ] [marthome.event.ItemStateChangedEvent] - budDate changed from 2017-10-03T12:53:34.000+0000 to 2017-10-03T12:54:35.000+0000
10:51:51.497 [INFO ] [marthome.event.ItemStateChangedEvent] - istBudHeizKessel changed from 76.1999969482421875 to 76.3000030517578125
10:52:44.784 [INFO ] [marthome.event.ItemStateChangedEvent] - istBudAussen changed from 16.700000762939453125 to 16.799999237060546875
10:52:45.611 [INFO ] [marthome.event.ItemStateChangedEvent] - budDate changed from 2017-10-03T12:54:35.000+0000 to 2017-10-03T12:55:35.000+0000
10:52:48.361 [INFO ] [marthome.event.ItemStateChangedEvent] - istBudWasserM changed from 61.90000152587890625 to 61.799999237060546875
10:53:44.002 [INFO ] [marthome.event.ItemStateChangedEvent] - istBudAussen changed from 16.799999237060546875 to 16.8999996185302734375
10:53:44.819 [INFO ] [marthome.event.ItemStateChangedEvent] - budDate changed from 2017-10-03T12:55:35.000+0000 to 2017-10-03T12:56:33.000+0000
10:53:45.755 [INFO ] [marthome.event.ItemStateChangedEvent] - istBudWasser changed from 61.90000152587890625 to 61.799999237060546875
10:54:44.036 [INFO ] [marthome.event.ItemStateChangedEvent] - istBudAussen changed from 16.8999996185302734375 to 16.799999237060546875
10:54:44.862 [INFO ] [marthome.event.ItemStateChangedEvent] - budDate changed from 2017-10-03T12:56:33.000+0000 to 2017-10-03T12:57:33.000+0000
10:55:44.018 [INFO ] [marthome.event.ItemStateChangedEvent] - istBudAussen changed from 16.799999237060546875 to 16.8999996185302734375
10:55:44.955 [INFO ] [marthome.event.ItemStateChangedEvent] - budDate changed from 2017-10-03T12:57:33.000+0000 to 2017-10-03T12:58:33.000+0000
10:56:44.038 [INFO ] [marthome.event.ItemStateChangedEvent] - istBudAussen changed from 16.8999996185302734375 to 16.799999237060546875
10:56:44.863 [INFO ] [marthome.event.ItemStateChangedEvent] - budDate changed from 2017-10-03T12:58:33.000+0000 to 2017-10-03T12:59:33.000+0000
10:56:47.410 [INFO ] [marthome.event.ItemStateChangedEvent] - istBudWasserM changed from 61.799999237060546875 to 61.90000152587890625
10:56:50.549 [INFO ] [marthome.event.ItemStateChangedEvent] - istBudHeizKessel changed from 76.3000030517578125 to 76.1999969482421875
10:57:45.395 [INFO ] [marthome.event.ItemStateChangedEvent] - budDate changed from 2017-10-03T12:59:33.000+0000 to 2017-10-03T13:00:34.000+0000
10:57:47.762 [INFO ] [marthome.event.ItemStateChangedEvent] - istBudWasserM changed from 61.90000152587890625 to 61.799999237060546875
10:57:51.079 [INFO ] [marthome.event.ItemStateChangedEvent] - istBudHeizKessel changed from 76.1999969482421875 to 76.09999847412109375
10:58:44.322 [INFO ] [marthome.event.ItemStateChangedEvent] - istBudAussen changed from 16.799999237060546875 to 16.700000762939453125
10:58:45.142 [INFO ] [marthome.event.ItemStateChangedEvent] - budDate changed from 2017-10-03T13:00:34.000+0000 to 2017-10-03T13:01:34.000+0000
10:58:51.563 [INFO ] [marthome.event.ItemStateChangedEvent] - istBudHeizKessel changed from 76.09999847412109375 to 75.90000152587890625
Probably a simple misunderstanding but I would kindly appreciate to get some rookie support
Cheers
Justus