# \[OH 5\] Pegel Online binding does not update

**URL:** <https://community.openhab.org/t/oh-5-pegel-online-binding-does-not-update/170479>\
**Category:** Bindings\
**Tags:** pegel\
**Created:** [September 24, 2026, 5:56pm UTC](https://community.openhab.org/t/oh-5-pegel-online-binding-does-not-update/170479 "2026-09-24T17:56:15Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![icompas](https://community.openhab.org/letter_avatar_proxy/v4/letter/i/2bfe46/32.png) [@icompas](https://community.openhab.org/u/icompas)\
**Post date:** [September 24, 2026, 5:56pm UTC](https://community.openhab.org/t/oh-5-pegel-online-binding-does-not-update/170479/1 "2026-09-24T17:56:16Z")

</div>

I just figured out, that the binding for Pegel Online does not kick off the scheduling.

If I disable/enable it, it runs once and throws the following error message:

```yaml
2026-09-24 11:59:37.796 \[WARN \] \[mmon.WrappedScheduledExecutorService\] - Scheduled runnable ended with an exception:
java.lang.NullPointerException: Cannot invoke "java.util.Map$Entry.getValue()" because the return value of "java.util.TreeMap.floorEntry(Object)" is null
at org.openhab.binding.pegelonline.internal.handler.PegelOnlineHandler.updateChannels(PegelOnlineHandler.java:172)
at org.openhab.binding.pegelonline.internal.handler.PegelOnlineHandler.performMeasurement(PegelOnlineHandler.java:133)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:572)
at java.base/java.util.concurrent.FutureTask.runAndReset(FutureTask.java:358)
at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:305)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
at java.base/java.lang.Thread.run(Thread.java:1583)

```

Anyone any idea on why this happens?

Code base is openHAB 5.2.0.

---

<div class="post-metadata">

**Author:** ![weymann](https://community.openhab.org/user_avatar/community.openhab.org/weymann/32/90673_2.png) [@weymann](https://community.openhab.org/u/weymann)\
**Post date:** [September 25, 2026, 1:02pm UTC](https://community.openhab.org/t/oh-5-pegel-online-binding-does-not-update/170479/2 "2026-09-25T13:02:05Z")

</div>

In theory this can happen if level is below 0. Checking this via [Aktuelle Wasserstände an den Bundeswasserstraßen | PEGELONLINE](https://pegelonline.wsv.de/gast/pegelinformationen) it seems possible! Can you check if the water level of your configured station is currently below / near zero 0?

 ![image](https://community-openhab-org.s3.dualstack.eu-central-1.amazonaws.com/original/3X/e/b/ebdc4d8b3a8fc5cb4507cd190fd0be3d31dba830.png)

---

<div class="post-metadata">

**Author:** ![icompas](https://community.openhab.org/letter_avatar_proxy/v4/letter/i/2bfe46/32.png) [@icompas](https://community.openhab.org/u/icompas)\
**Post date:** [September 28, 2026, 10:25am UTC](https://community.openhab.org/t/oh-5-pegel-online-binding-does-not-update/170479/3 "2026-09-28T10:25:23Z")

</div>

Definitely it is below zero, currently at -0,22m.

And that is pretty ok since a relative level indication, not absolute related to the mean sea level.

---

<div class="post-metadata">

**Author:** ![weymann](https://community.openhab.org/user_avatar/community.openhab.org/weymann/32/90673_2.png) [@weymann](https://community.openhab.org/u/weymann)\
**Post date:** [September 28, 2026, 11:56am UTC](https://community.openhab.org/t/oh-5-pegel-online-binding-does-not-update/170479/4 "2026-09-28T11:56:42Z")

</div>

Sure, my fault ☹  
[Fixed this](https://github.com/openhab/openhab-addons/pull/21757) already and will be part of the next release.  
Please verify:

- deinstall official binding
- [drop the new jar](https://github.com/weymann/OH-Drops/raw/refs/heads/main/pegelonline/drops/org.openhab.binding.pegelonline-5.3.0-SNAPSHOT.jar) in your addons folder

---

<div class="post-metadata">

**Author:** ![icompas](https://community.openhab.org/letter_avatar_proxy/v4/letter/i/2bfe46/32.png) [@icompas](https://community.openhab.org/u/icompas)\
**Post date:** [September 29, 2026, 6:20am UTC](https://community.openhab.org/t/oh-5-pegel-online-binding-does-not-update/170479/5 "2026-09-29T06:20:19Z")

</div>

Thank you and don‘t worry. It hasn‘t been that case in many locations before. But I guess climate change will make it more likely to happen.

I’ll try to test it within the next couple of days.

---

<div class="post-metadata">

**Author:** ![icompas](https://community.openhab.org/letter_avatar_proxy/v4/letter/i/2bfe46/32.png) [@icompas](https://community.openhab.org/u/icompas)\
**Post date:** [September 30, 2026, 6:10pm UTC](https://community.openhab.org/t/oh-5-pegel-online-binding-does-not-update/170479/6 "2026-09-30T18:10:46Z")

</div>

I have some issue getting it installed on my docker container.  
It raised some error messages during startup.

```yaml
2026-09-30 20:08:23.219 [WARN] [org.apache.felix.fileinstall] - Error while starting bundle: file:/openhab/addons/org.openhab.binding.pegelonline-5.3.0-SNAPSHOT.jar
org.osgi.framework.BundleException: Could not resolve module: org.openhab.binding.pegelonline [313]
  Unresolved requirement: Import-Package: com.google.gson; version="[2.14.0,3.0.0)"

	at org.eclipse.osgi.container.Module.start(Module.java:463)
	at org.eclipse.osgi.internal.framework.EquinoxBundle.start(EquinoxBundle.java:445)
	at org.apache.felix.fileinstall.internal.DirectoryWatcher.startBundle(DirectoryWatcher.java:1260)
	at org.apache.felix.fileinstall.internal.DirectoryWatcher.startBundles(DirectoryWatcher.java:1233)
	at org.apache.felix.fileinstall.internal.DirectoryWatcher.startAllBundles(DirectoryWatcher.java:1221)
	at org.apache.felix.fileinstall.internal.DirectoryWatcher.doProcess(DirectoryWatcher.java:515)
	at org.apache.felix.fileinstall.internal.DirectoryWatcher.process(DirectoryWatcher.java:365)
	at org.apache.felix.fileinstall.internal.DirectoryWatcher.run(DirectoryWatcher.java:316)

```

I guess I will leave it until it is released officially .

---

<div class="post-metadata">

**Author:** ![eb23](https://community.openhab.org/letter_avatar_proxy/v4/letter/e/94ad74/32.png) [@eb23](https://community.openhab.org/u/eb23)\
**Post date:** [October 2, 2026, 4:44pm UTC](https://community.openhab.org/t/oh-5-pegel-online-binding-does-not-update/170479/7 "2026-10-02T16:44:07Z")

</div>

Hi,

I have the same problem. This snapshot binding needs Gson version 2.14.0 or higher. My Openhab 5.2 comes with Gson 2.13.2. This is the reason why ist can’t be installed.  
Regards  
Uli
