# Zwave: using Association Groups and Openhab same time?

**URL:** <https://community.openhab.org/t/zwave-using-association-groups-and-openhab-same-time/78473>\
**Category:** Bindings\
**Created:** [July 22, 2019, 12:12pm UTC](https://community.openhab.org/t/zwave-using-association-groups-and-openhab-same-time/78473 "2019-07-22T12:12:12Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![codegrau](https://community.openhab.org/letter_avatar_proxy/v4/letter/c/74df32/32.png) [@codegrau](https://community.openhab.org/u/codegrau)\
**Post date:** [July 22, 2019, 12:12pm UTC](https://community.openhab.org/t/zwave-using-association-groups-and-openhab-same-time/78473/1 "2019-07-22T12:12:12Z")

</div>

Hey there,

I’m using a Z-WAVE Fibaro FGK101 Door/Window Sensor FW 2.5 ([https://www.cd-jackson.com/index.php/zwave/zwave-device-database/zwave-device-list/devicesummary/847](https://www.cd-jackson.com/index.php/zwave/zwave-device-database/zwave-device-list/devicesummary/847)) and connected Input IN to my doorbell to get a “smart doorbell” - this works like a charm.  
But since doorbells can be very important, I added a few of my zwave light switches directly to the association group for this INPUT. So even with no openhab running, the Sensor sends zwave commands to these Relay Switches → Light goes on as long as doorbell is pressed and goes off when released.

Problem is: sometimes it’s not cancelling the alarm after doorbell is released - light stays on forever.  
On the other hand: if light is on and doorbell is pressed (and released successfully) - light goes of (which is bad at night).

How would you

- restore the state of light from before doorbell pressed?
- how to ensure light doesn’t stay on

looking for your input.

---

<div class="post-metadata">

**Author:** ![mstormi](https://community.openhab.org/user_avatar/community.openhab.org/mstormi/32/55857_2.png) [@mstormi](https://community.openhab.org/u/mstormi)\
**Post date:** [July 22, 2019, 4:04pm UTC](https://community.openhab.org/t/zwave-using-association-groups-and-openhab-same-time/78473/2 "2019-07-22T16:04:19Z")

</div>

Smart direct associations would require the client (doorbell) to track the server (light) side. That does not work. Devices aren’t as smart as OH.  
So remove the direct association and let OH handle the bell input. It can track the status and/or reset.  
Downside is your OH has to work for the lights to work, but getting OH to run reliably should be your top 1 priority anyway. And the bell will still work even with OH down if you electrically wire it the right way.  
I’m using this setup for my smart doorbell, too, and I even don’t have a classic door bell any more.  
I make OH blink lights in a couple of rooms plus I make it play MP3 audio instead of ringing the “real” bells. I actually recovered my old CDs from the attic to sample the “Hells Bells” intro 🙂

---

<div class="post-metadata">

**Author:** ![robmac](https://community.openhab.org/letter_avatar_proxy/v4/letter/r/df788c/32.png) [@robmac](https://community.openhab.org/u/robmac)\
**Post date:** [July 22, 2019, 4:33pm UTC](https://community.openhab.org/t/zwave-using-association-groups-and-openhab-same-time/78473/3 "2019-07-22T16:33:34Z")

</div>

> [@codegrau](#):
>
> Problem is: sometimes it’s not cancelling the alarm after doorbell is released - light stays on forever.  
> On the other hand: if light is on and doorbell is pressed (and released successfully) - light goes of (which is bad at night).

My guess is that you have the switch type set in a way that does not suit the association.

I think either set parameter 3 to monostable and set the parameter 1 to timeout

or

Set parameter 3 to bistable even though it is a push button

I can not remember which one worked best and have upgraded to a newer module in that location so the old one is on use elsewhere and has a new configuration.

---

<div class="post-metadata">

**Author:** ![codegrau](https://community.openhab.org/letter_avatar_proxy/v4/letter/c/74df32/32.png) [@codegrau](https://community.openhab.org/u/codegrau)\
**Post date:** [July 24, 2019, 1:09pm UTC](https://community.openhab.org/t/zwave-using-association-groups-and-openhab-same-time/78473/4 "2019-07-24T13:09:03Z")

</div>

To which module did you upgrade?

---

<div class="post-metadata">

**Author:** ![codegrau](https://community.openhab.org/letter_avatar_proxy/v4/letter/c/74df32/32.png) [@codegrau](https://community.openhab.org/u/codegrau)\
**Post date:** [July 24, 2019, 1:11pm UTC](https://community.openhab.org/t/zwave-using-association-groups-and-openhab-same-time/78473/5 "2019-07-24T13:11:17Z")

</div>

Could you give me a hint how to reset all items to previous state when this happens?  
So when I want to blink my lights (some zwave, some hues), how would I save “current config”, flicker lights, reset to previous config?

---

<div class="post-metadata">

**Author:** ![mstormi](https://community.openhab.org/user_avatar/community.openhab.org/mstormi/32/55857_2.png) [@mstormi](https://community.openhab.org/u/mstormi)\
**Post date:** [July 24, 2019, 1:43pm UTC](https://community.openhab.org/t/zwave-using-association-groups-and-openhab-same-time/78473/6 "2019-07-24T13:43:53Z")

</div>

> [@codegrau](#):
>
> Could you give me a hint how to reset all items to previous state when this happens?

There’s many possibilities but no simple “save-all”. commands.  
Easiest is to store the old states in (local) variables or item.

---

<div class="post-metadata">

**Author:** ![robmac](https://community.openhab.org/letter_avatar_proxy/v4/letter/r/df788c/32.png) [@robmac](https://community.openhab.org/u/robmac)\
**Post date:** [July 24, 2019, 5:56pm UTC](https://community.openhab.org/t/zwave-using-association-groups-and-openhab-same-time/78473/7 "2019-07-24T17:56:16Z")

</div>

Just the more recent version. I needed more so moved the older ones to the less used places.

Only advantage is the battery life is a little better I think for the same use but hard to tell.
