# Polling intervals optimization, manual refresh via widget etc

**URL:** <https://community.openhab.org/t/polling-intervals-optimization-manual-refresh-via-widget-etc/166304>\
**Category:** Beginners\
**Tags:** items, polling\
**Created:** [September 17, 2025, 6:53am UTC](https://community.openhab.org/t/polling-intervals-optimization-manual-refresh-via-widget-etc/166304 "2025-09-17T06:53:24Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![alda1](https://community.openhab.org/letter_avatar_proxy/v4/letter/a/a6a055/32.png) [@alda1](https://community.openhab.org/u/alda1)\
**Post date:** [September 17, 2025, 6:53am UTC](https://community.openhab.org/t/polling-intervals-optimization-manual-refresh-via-widget-etc/166304/1 "2025-09-17T06:53:24Z")

</div>

I have question regarding polling intervals optimization.

I have few devices on the modbus. From this device I can read actual values, but also their configuration.

For the actual value it’s clear I must read it in any interval (like 2000ms ..), but configuration I can read only once when I’m opening configuration overview via my widget. I can set polling interval to 0, but I don’t know how to setup, that widget will refresh configuration informations about devices. It’s quite a lot of informations which I don’t need to read every 2 seconds, but don’t know how to optimize.

Alex

---

<div class="post-metadata">

**Author:** ![rlkoshak](https://community.openhab.org/user_avatar/community.openhab.org/rlkoshak/32/75251_2.png) [@rlkoshak](https://community.openhab.org/u/rlkoshak)\
**Post date:** [September 17, 2025, 1:08pm UTC](https://community.openhab.org/t/polling-intervals-optimization-manual-refresh-via-widget-etc/166304/2 "2025-09-17T13:08:58Z")

</div>

Does modbus provide an action of a Channel you can command to cause it to refresh on demand? If not there really isn’t anything you can do from the widget.

At a high level you need an Item or a rule that you command/run from the widget that does what ever modbus needs to be done to cause it to refresh. So right off the bat, it’s going to be a manual process even if modbus supports this.

If modbus doesn’t support a way to manually refresh, there really isn’t anything you can do.

---

<div class="post-metadata">

**Author:** ![alda1](https://community.openhab.org/letter_avatar_proxy/v4/letter/a/a6a055/32.png) [@alda1](https://community.openhab.org/u/alda1)\
**Post date:** [September 17, 2025, 1:34pm UTC](https://community.openhab.org/t/polling-intervals-optimization-manual-refresh-via-widget-etc/166304/3 "2025-09-17T13:34:54Z")

</div>

ok, What is right optimization to decrease a system and network loads ?

Polling all registers in one call ( let say on poll for 20registers ? ) and Increase a time for automatic update ?

---

<div class="post-metadata">

**Author:** ![rlkoshak](https://community.openhab.org/user_avatar/community.openhab.org/rlkoshak/32/75251_2.png) [@rlkoshak](https://community.openhab.org/u/rlkoshak)\
**Post date:** [September 17, 2025, 2:01pm UTC](https://community.openhab.org/t/polling-intervals-optimization-manual-refresh-via-widget-etc/166304/4 "2025-09-17T14:01:50Z")

</div>

Do you actually experience a problem with the current loads? Is this actually a problem that needs to be solved? If so is messing with the way OH polls them the most effective approach to solving the problem? I don’t have the answers to these questions but they are things you should ask yourself and answer.

I don’t use modbus so I can’t say what the best approach would be assuming there is a problem. I guess I would start by setting the polling period to be as long as reasonable for those registers that don’t change that often. I’d also only configure polling registers at all for those that provide meaningful and actionable information that OH needs. Just because a piece of information is available doesn’t mean your home automation has a use for it.

---

<div class="post-metadata">

**Author:** ![hmerk](https://community.openhab.org/user_avatar/community.openhab.org/hmerk/32/56432_2.png) [@hmerk](https://community.openhab.org/u/hmerk)\
**Post date:** [September 17, 2025, 2:33pm UTC](https://community.openhab.org/t/polling-intervals-optimization-manual-refresh-via-widget-etc/166304/5 "2025-09-17T14:33:29Z")

</div>

> [@alda1](#):
>
> For the actual value it’s clear I must read it in any interval (like 2000ms ..), but configuration I can read only once when I’m opening configuration overview via my widget. I can set polling interval to 0, but I don’t know how to setup, that widget will refresh configuration informations about devices. It’s quite a lot of informations which I don’t need to read every 2 seconds, but don’t know how to optimize.

It is in the docs, you need to send the REFRESH command to one of the items.

```php
Polling can be manually triggered by sending REFRESH command to item bound to channel of data thing. When manually triggering polling, a new poll is executed as soon as possible, and sibling data things (i.e. things that share the same poller bridge) are updated. In case the poller had just received a data response or an error occurred, a cached response is used instead. See Refresh command section for more details.

Some devices do not allow to query too many registers in a single readout action or a range that spans reserved registers. Split your poller into multiple smaller ones to work around this problem.

```

But you will need to add a push button to your widget with the REFRESH command as its action. AFAIK, widgets are not capable of sending commands when they opened.

---

<div class="post-metadata">

**Author:** ![alda1](https://community.openhab.org/letter_avatar_proxy/v4/letter/a/a6a055/32.png) [@alda1](https://community.openhab.org/u/alda1)\
**Post date:** [September 18, 2025, 5:39am UTC](https://community.openhab.org/t/polling-intervals-optimization-manual-refresh-via-widget-etc/166304/6 "2025-09-18T05:39:31Z")

</div>

Ok, thank you. This will help me.

One more question. Is it better to have one poll for more things or one poll for one thing ?

I think regarding network trafic is better to have one poll for more things. Or ?

Is there any limit for poll size ?

---

<div class="post-metadata">

**Author:** ![hmerk](https://community.openhab.org/user_avatar/community.openhab.org/hmerk/32/56432_2.png) [@hmerk](https://community.openhab.org/u/hmerk)\
**Post date:** [September 18, 2025, 6:04am UTC](https://community.openhab.org/t/polling-intervals-optimization-manual-refresh-via-widget-etc/166304/7 "2025-09-18T06:04:31Z")

</div>

You should define more than one poller for each Modbus device. One for your manually refreshed registers with period set to zero and one for automatic refreshed registers.

---

<div class="post-metadata">

**Author:** ![alda1](https://community.openhab.org/letter_avatar_proxy/v4/letter/a/a6a055/32.png) [@alda1](https://community.openhab.org/u/alda1)\
**Post date:** [September 18, 2025, 6:08am UTC](https://community.openhab.org/t/polling-intervals-optimization-manual-refresh-via-widget-etc/166304/8 "2025-09-18T06:08:26Z")

</div>

Thank you, is there any size limit how much registers can one poller read ?

---

<div class="post-metadata">

**Author:** ![hmerk](https://community.openhab.org/user_avatar/community.openhab.org/hmerk/32/56432_2.png) [@hmerk](https://community.openhab.org/u/hmerk)\
**Post date:** [September 18, 2025, 6:21am UTC](https://community.openhab.org/t/polling-intervals-optimization-manual-refresh-via-widget-etc/166304/9 "2025-09-18T06:21:12Z")

</div>

Not that I am aware of.
