# Rollershutter stop command after button released

**URL:** <https://community.openhab.org/t/rollershutter-stop-command-after-button-released/67727>\
**Category:** Beginners\
**Tags:** rollershutter, items\
**Created:** [February 14, 2019, 11:50am UTC](https://community.openhab.org/t/rollershutter-stop-command-after-button-released/67727 "2019-02-14T11:50:23Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![marcel1](https://community.openhab.org/letter_avatar_proxy/v4/letter/m/43a26b/32.png) [@marcel1](https://community.openhab.org/u/marcel1)\
**Post date:** [February 14, 2019, 11:50am UTC](https://community.openhab.org/t/rollershutter-stop-command-after-button-released/67727/1 "2019-02-14T11:50:23Z")

</div>

Hello everybody,

I use a Wago PLC for automation and configured the modbus binding using bridges and pollers. Everything works fine so far. The problem I have is that the rollershutter widget only sends a stop command after a long-press of the up or down button. To let the Wago decide about a short or long press it would be great to have the following behaviour of the rollershutter item:

button pressed: send UP/DOWN, button released: send STOP

I guess I have to write a rule to solve the problem but no idea how to start.

Can anybody help?

Many thanks!

---

<div class="post-metadata">

**Author:** ![rossko57](https://community.openhab.org/user_avatar/community.openhab.org/rossko57/32/70263_2.png) [@rossko57](https://community.openhab.org/u/rossko57)\
**Post date:** [February 14, 2019, 12:30pm UTC](https://community.openhab.org/t/rollershutter-stop-command-after-button-released/67727/2 "2019-02-14T12:30:17Z")

</div>

Which widget? HABpanel, or the sitemap based one for Basic/Classic UI?

---

<div class="post-metadata">

**Author:** ![marcel1](https://community.openhab.org/letter_avatar_proxy/v4/letter/m/43a26b/32.png) [@marcel1](https://community.openhab.org/u/marcel1)\
**Post date:** [February 14, 2019, 12:45pm UTC](https://community.openhab.org/t/rollershutter-stop-command-after-button-released/67727/3 "2019-02-14T12:45:49Z")

</div>

Thanks for the fast reply. I use the sitemap based for Basic UI.

---

<div class="post-metadata">

**Author:** ![rossko57](https://community.openhab.org/user_avatar/community.openhab.org/rossko57/32/70263_2.png) [@rossko57](https://community.openhab.org/u/rossko57)\
**Post date:** [February 14, 2019, 1:45pm UTC](https://community.openhab.org/t/rollershutter-stop-command-after-button-released/67727/4 "2019-02-14T13:45:26Z")

</div>

Okay, so guessing you have a Rollershutter type Item, displayed on a sitemap as Switch type, which brings up the three-button VdownV XstopX AupA looking widget.

As you say, it’s a simple tool and responds to presses with UP STOP DOWN, it is not possible to distinguish long and short presses.

This looks related

> [@\[SOLVED\] Rollershutter via modbus to Wago 750-881](https://community.openhab.org/t/solved-rollershutter-via-modbus-to-wago-750-881/63131/16):
>
> Ok: A rule rule "reset rollershutter commands" when Item Rollershutter\_buero\_up received command ON or Item Rollershutter\_buero\_down received command ON then createTimer(now.plusMillis(250), [| triggeringItem.postUpdate(OFF)]) end

It’s a bit of a messy story, but contains the right ideas

---

<div class="post-metadata">

**Author:** ![marcel1](https://community.openhab.org/letter_avatar_proxy/v4/letter/m/43a26b/32.png) [@marcel1](https://community.openhab.org/u/marcel1)\
**Post date:** [February 14, 2019, 2:10pm UTC](https://community.openhab.org/t/rollershutter-stop-command-after-button-released/67727/5 "2019-02-14T14:10:28Z")

</div>

Great, thanks for the hint, this looks promising.
