# \[SOLVED\] Do I have to unplug my Z-Stick Gen 5 to include new devices?

**URL:** <https://community.openhab.org/t/solved-do-i-have-to-unplug-my-z-stick-gen-5-to-include-new-devices/40011>\
**Category:** Home Automation\
**Tags:** z-wave1\
**Created:** [February 15, 2018, 2:13am UTC](https://community.openhab.org/t/solved-do-i-have-to-unplug-my-z-stick-gen-5-to-include-new-devices/40011 "2018-02-15T02:13:53Z")\
**Posts on this page:** 20\
**Page:** 2

<div class="post-metadata">

**Author:** ![162884](https://community.openhab.org/user_avatar/community.openhab.org/162884/32/16632_2.png) [@162884](https://community.openhab.org/u/162884)\
**Post date:** [February 15, 2018, 4:14am UTC](https://community.openhab.org/t/solved-do-i-have-to-unplug-my-z-stick-gen-5-to-include-new-devices/40011/21 "2018-02-15T04:14:37Z")

</div>

I have added my items manually so I don’t have an items file.

**When I walk in front of the motion sensor the log shows…**  
_2018-02-14 23:12:26.249 [vent.ItemStateChangedEvent] - zwave\_serial\_zstick\_80b4c831\_serial\_ack changed from 88 to 89_  
_2018-02-14 23:12:26.256 [vent.ItemStateChangedEvent] - zwave\_serial\_zstick\_80b4c831\_serial\_sof changed from 175 to 176_  
_2018-02-14 23:12:30.527 [vent.ItemStateChangedEvent] - zwave\_serial\_zstick\_80b4c831\_serial\_sof changed from 176 to 177_  
_2018-02-14 23:12:30.544 [vent.ItemStateChangedEvent] - zwave\_serial\_zstick\_80b4c831\_serial\_ack changed from 89 to 90_  
_2018-02-14 23:12:30.558 [vent.ItemStateChangedEvent] - zwave\_serial\_zstick\_80b4c831\_serial\_sof changed from 177 to 178_  
_2018-02-14 23:12:34.613 [vent.ItemStateChangedEvent] - zwave\_serial\_zstick\_80b4c831\_serial\_sof changed from 178 to 179_  
_2018-02-14 23:12:34.629 [vent.ItemStateChangedEvent] - zwave\_serial\_zstick\_80b4c831\_serial\_ack changed from 90 to 91_

**Here’s the rule…**  
var Timer myTimer\_FR\_Motion = null  
val int timeoutMinutes = 2

rule “Family Room Motion”  
when  
// This is the Motion Sensor Item that will trigger to turn on the light. State “ON” means when the sensor detects motion.  
Item FR\_Motion changed to ON  
then  
// you will want to create a rule which determines when it is day and when it is night. once you have implemented  
// day night states, you can enable the following line. remember to uncomment the last brace at the bottom too.  
// if ( nightstate.state==on && lt\_fr\_table.state==off ) {

// this checks to see if there is currently a timer that exists.  
if ( myTimer\_FR\_Motion===null ) {  
logInfo(“FRMotion”, “motion detected in the Family Room, turning on lights for {} minutes.”, timeoutMinutes)

// This instructs the Smart Plug to turn ON.  
FR\_Plug\_1.sendCommand(ON)

// This is where to add an additional Smart Plug to turn ON  
// PLUGNAME.sendCommand(ON)

```
     myTimer_FR_Motion = createTimer(now.plusMinutes(timeoutMinutes), [|
     logInfo("FRMotion", "Timer expired... turning off lights")

```

// Change Smart Plug to be a Switch thing.  
FR\_Plug\_1.sendCommand(OFF)

// This is where to turn OFF second Smart Plug  
// PLUGNAME.sendCommand(OFF)

```
     myTimer_FR_Motion = null
     ])
  }
  else {
     logInfo("FRMotion", "Motion detected in Family Room rescheduling timer, adding {} minutes.", timeoutMinutes )
     myTimer_FR_Motion.reschedule(now.plusMinutes(timeoutMinutes))
  }

```

// Uncomment the following curly brace if you enable the first IF statement above.  
// }

end

---

<div class="post-metadata">

**Author:** ![Toneus](https://community.openhab.org/letter_avatar_proxy/v4/letter/t/7ba0ec/32.png) [@Toneus](https://community.openhab.org/u/Toneus)\
**Post date:** [February 15, 2018, 4:21am UTC](https://community.openhab.org/t/solved-do-i-have-to-unplug-my-z-stick-gen-5-to-include-new-devices/40011/22 "2018-02-15T04:21:04Z")

</div>

Did you by chance use a different USB port than before?

Is the ZWvave Controller still Online?

Did the ZWave Binding get uninstalled?

Go to the Control menu item, can you still activate the Light/Switch from OH PaperUI? If so most of the stuff I asked is fine.

---

<div class="post-metadata">

**Author:** ![psych](https://community.openhab.org/user_avatar/community.openhab.org/psych/32/11835_2.png) [@psych](https://community.openhab.org/u/psych)\
**Post date:** [February 15, 2018, 4:21am UTC](https://community.openhab.org/t/solved-do-i-have-to-unplug-my-z-stick-gen-5-to-include-new-devices/40011/23 "2018-02-15T04:21:14Z")

</div>

It would make things easier to post code and logs in code fences for easier readability.

OK, you have no bindings to those devices, all I see is controller communication (ACK, etc).

If you had any channels defined I would see those channels reporting changes or updates.

---

<div class="post-metadata">

**Author:** ![162884](https://community.openhab.org/user_avatar/community.openhab.org/162884/32/16632_2.png) [@162884](https://community.openhab.org/u/162884)\
**Post date:** [February 15, 2018, 4:25am UTC](https://community.openhab.org/t/solved-do-i-have-to-unplug-my-z-stick-gen-5-to-include-new-devices/40011/24 "2018-02-15T04:25:27Z")

</div>

See below…

> [@Toneus](#):
>
> Did you by chance use a different USB port than before?
> 
> Is the ZWvave Controller still Online? - **Yes**
> 
> Did the ZWave Binding get uninstalled? - **No, it’s still there**
> 
> Go to the Control menu item, can you still activate the Light/Switch from OH PaperUI? If so most of the stuff I asked is fine. - **From the Control menu, I can manually turn the light on/off.**

---

<div class="post-metadata">

**Author:** ![Toneus](https://community.openhab.org/letter_avatar_proxy/v4/letter/t/7ba0ec/32.png) [@Toneus](https://community.openhab.org/u/Toneus)\
**Post date:** [February 15, 2018, 4:28am UTC](https://community.openhab.org/t/solved-do-i-have-to-unplug-my-z-stick-gen-5-to-include-new-devices/40011/25 "2018-02-15T04:28:46Z")

</div>

Ok, now go to the Sensor Thing in PaperUI and check the Channels and their links to Items. Remember clicking on the Blue Circle?

---

<div class="post-metadata">

**Author:** ![162884](https://community.openhab.org/user_avatar/community.openhab.org/162884/32/16632_2.png) [@162884](https://community.openhab.org/u/162884)\
**Post date:** [February 15, 2018, 4:28am UTC](https://community.openhab.org/t/solved-do-i-have-to-unplug-my-z-stick-gen-5-to-include-new-devices/40011/26 "2018-02-15T04:28:54Z")

</div>

> [@psych](#):
>
> It would make things easier to post code and logs in code fences for easier readability.
> 
> OK, you have no bindings to those devices, all I see is controller communication (ACK, etc).
> 
> If you had any channels defined I would see those channels reporting changes or updates.

Sorry @psych, I’m not sure what a code fence is. The sensor seems to be online and channels are defined.

 ![49 PM](https://community-openhab-org.s3.dualstack.eu-central-1.amazonaws.com/original/3X/6/5/65d3f71950a57936d4997bb99b51dbb6bd47278a.png)

---

<div class="post-metadata">

**Author:** ![162884](https://community.openhab.org/user_avatar/community.openhab.org/162884/32/16632_2.png) [@162884](https://community.openhab.org/u/162884)\
**Post date:** [February 15, 2018, 4:30am UTC](https://community.openhab.org/t/solved-do-i-have-to-unplug-my-z-stick-gen-5-to-include-new-devices/40011/27 "2018-02-15T04:30:02Z")

</div>

> [@Toneus](#):
>
> Ok, now go to the Sensor Thing in PaperUI and check the Channels and their links to Items. Remember clicking on the Blue Circle?

Yep, they’re all linked to items just as before the problem started.

---

<div class="post-metadata">

**Author:** ![Toneus](https://community.openhab.org/letter_avatar_proxy/v4/letter/t/7ba0ec/32.png) [@Toneus](https://community.openhab.org/u/Toneus)\
**Post date:** [February 15, 2018, 4:30am UTC](https://community.openhab.org/t/solved-do-i-have-to-unplug-my-z-stick-gen-5-to-include-new-devices/40011/28 "2018-02-15T04:30:09Z")

</div>

Confirm that the Alarm Channel is linked like we set it up the other night.

---

<div class="post-metadata">

**Author:** ![Toneus](https://community.openhab.org/letter_avatar_proxy/v4/letter/t/7ba0ec/32.png) [@Toneus](https://community.openhab.org/u/Toneus)\
**Post date:** [February 15, 2018, 4:31am UTC](https://community.openhab.org/t/solved-do-i-have-to-unplug-my-z-stick-gen-5-to-include-new-devices/40011/29 "2018-02-15T04:31:05Z")

</div>

Ok, if you tap on the Sensor does the Green Tamper light turn on?

---

<div class="post-metadata">

**Author:** ![162884](https://community.openhab.org/user_avatar/community.openhab.org/162884/32/16632_2.png) [@162884](https://community.openhab.org/u/162884)\
**Post date:** [February 15, 2018, 4:31am UTC](https://community.openhab.org/t/solved-do-i-have-to-unplug-my-z-stick-gen-5-to-include-new-devices/40011/30 "2018-02-15T04:31:41Z")

</div>

Yep…

 ![34 PM](https://community-openhab-org.s3.dualstack.eu-central-1.amazonaws.com/original/3X/f/0/f079e000d5f9b0dc5cedc1f8a347914d523a8b13.png)

---

<div class="post-metadata">

**Author:** ![162884](https://community.openhab.org/user_avatar/community.openhab.org/162884/32/16632_2.png) [@162884](https://community.openhab.org/u/162884)\
**Post date:** [February 15, 2018, 4:33am UTC](https://community.openhab.org/t/solved-do-i-have-to-unplug-my-z-stick-gen-5-to-include-new-devices/40011/31 "2018-02-15T04:33:00Z")

</div>

> [@Toneus](#):
>
> Ok, if you tap on the Sensor does the Green Tamper light turn on?

Yes it does.

---

<div class="post-metadata">

**Author:** ![Toneus](https://community.openhab.org/letter_avatar_proxy/v4/letter/t/7ba0ec/32.png) [@Toneus](https://community.openhab.org/u/Toneus)\
**Post date:** [February 15, 2018, 4:34am UTC](https://community.openhab.org/t/solved-do-i-have-to-unplug-my-z-stick-gen-5-to-include-new-devices/40011/32 "2018-02-15T04:34:09Z")

</div>

Ok, have you used the HABPanel yet? It is a good UI for testing and info.

---

<div class="post-metadata">

**Author:** ![162884](https://community.openhab.org/user_avatar/community.openhab.org/162884/32/16632_2.png) [@162884](https://community.openhab.org/u/162884)\
**Post date:** [February 15, 2018, 4:35am UTC](https://community.openhab.org/t/solved-do-i-have-to-unplug-my-z-stick-gen-5-to-include-new-devices/40011/33 "2018-02-15T04:35:23Z")

</div>

> [@Toneus](#):
>
> Ok, have you used the HABPanel yet? It is a good UI for testing and info.

Never have. I’m willing to try anything to learn.

---

<div class="post-metadata">

**Author:** ![psych](https://community.openhab.org/user_avatar/community.openhab.org/psych/32/11835_2.png) [@psych](https://community.openhab.org/u/psych)\
**Post date:** [February 15, 2018, 4:35am UTC](https://community.openhab.org/t/solved-do-i-have-to-unplug-my-z-stick-gen-5-to-include-new-devices/40011/34 "2018-02-15T04:35:44Z")

</div>

Am I the only one who has noticed the node has not yet initialised? Check the picture, its in it’s DYNAMIC\_VALUES phase

---

<div class="post-metadata">

**Author:** ![Toneus](https://community.openhab.org/letter_avatar_proxy/v4/letter/t/7ba0ec/32.png) [@Toneus](https://community.openhab.org/u/Toneus)\
**Post date:** [February 15, 2018, 4:39am UTC](https://community.openhab.org/t/solved-do-i-have-to-unplug-my-z-stick-gen-5-to-include-new-devices/40011/35 "2018-02-15T04:39:51Z")

</div>

No, I didn’t notice that. That’s probably it.

Wake up the device by pushing and holding the action button on the Sensor. Directions below.

> **[Multisensor 6 user guide](https://aeotec.freshdesk.com/support/solutions/articles/6000057073-multisensor-6-user-guide-)**
>
> Aeotec MultiSensor 6. Aeotec MultiSensor 6 was developed to detect ambient values and movement and to transmit them with Z-Wave Plus. It is powered by Aeotec’s Gen5 technology. You can find out more about MultiSensor 6 by following that...

Waking up Multisensor 6.

In order to configure Multisensor 6, you must either (1) wake up Multisensor 6 using the below button press function, or (2) temporarily put your Multisensor 6 on USB power.

1. Press and hold Multisensor 6 Action button

2. Wait until the RGB LED turns into a Yellow/Orange Color

3. Release Multisensor 6 Action Button

The LED on Multisensor 6 will now rapidly blink its Yellow/Orange LED while it is in its awake state. You may send in any configurations or commands from your current gateway to configure your Multisensor 6.

1. Tap the Action Button on Multisensor 6 to put Multisensor 6 back to sleep, or wait 10 minutes. (recommended to manually put it back to sleep to conserve battery life).

---

<div class="post-metadata">

**Author:** ![Toneus](https://community.openhab.org/letter_avatar_proxy/v4/letter/t/7ba0ec/32.png) [@Toneus](https://community.openhab.org/u/Toneus)\
**Post date:** [February 15, 2018, 4:46am UTC](https://community.openhab.org/t/solved-do-i-have-to-unplug-my-z-stick-gen-5-to-include-new-devices/40011/36 "2018-02-15T04:46:48Z")

</div>

Go watch this video. You can learn a little about HABPanel by watching from the 6:55 mark. You need to install the HABPanel UI. See Screen shot below.

[![](https://img.youtube.com/vi/T0kzK2voy94/maxresdefault.jpg "openHAB 2 UI-driven Setup") ](https://www.youtube.com/watch?v=T0kzK2voy94)

 ![36 PM](https://community-openhab-org.s3.dualstack.eu-central-1.amazonaws.com/original/3X/d/b/db9f7fce61021234d775b6b3937a86b58fa3c597.png)

---

<div class="post-metadata">

**Author:** ![162884](https://community.openhab.org/user_avatar/community.openhab.org/162884/32/16632_2.png) [@162884](https://community.openhab.org/u/162884)\
**Post date:** [February 15, 2018, 4:47am UTC](https://community.openhab.org/t/solved-do-i-have-to-unplug-my-z-stick-gen-5-to-include-new-devices/40011/37 "2018-02-15T04:47:05Z")

</div>

@Toneus I just woke up the MultiSensor and it’s still not working. I need to get back to this tomorrow after work. I really appreciate everyone’s help!

---

<div class="post-metadata">

**Author:** ![5iver](https://community.openhab.org/user_avatar/community.openhab.org/5iver/32/21201_2.png) [@5iver](https://community.openhab.org/u/5iver)\
**Post date:** [February 15, 2018, 4:56am UTC](https://community.openhab.org/t/solved-do-i-have-to-unplug-my-z-stick-gen-5-to-include-new-devices/40011/38 "2018-02-15T04:56:56Z")

</div>

> [@162884](#):
>
> Do I have to unplug my Z-Stick Gen 5, press the “Action” button and take it to each device?

This is possible, but unless you are running the development zwave binding, you will need to use another software to [heal the network](https://www.vesternet.com/resources/technology-indepth/understanding-z-wave-networks) (rebuild routes). The [development binding](https://community.openhab.org/t/oh2-z-wave-refactoring-and-testing-and-security/21653) is the only 2.x version that can currently do a heal. Best to do the inclusion through OH with the controller and device at their normal locations. This _could_ be a reason for the issues you are having. Here’s some [info from Chris](https://github.com/cdjackson/HABmin/wiki/Z-Wave-Network-Healing#nightly-network-heal), but in 2014 he was talking about the 1.x binding.

> [@162884](#):
>
> So apparently my Z-Stick has changed ports. How can I find which port it’s using now and update the config?

This can be avoided with a [UDEV rule](https://github.com/openhab/openhab1-addons/wiki/symlinks). [There are lots](https://community.openhab.org/search?q=udev) of topics on this too.

---

<div class="post-metadata">

**Author:** ![anonymous.one](https://community.openhab.org/user_avatar/community.openhab.org/anonymous.one/32/56272_2.png) [@anonymous.one](https://community.openhab.org/u/anonymous.one)\
**Post date:** [February 15, 2018, 2:09pm UTC](https://community.openhab.org/t/solved-do-i-have-to-unplug-my-z-stick-gen-5-to-include-new-devices/40011/39 "2018-02-15T14:09:36Z")

</div>

@162884 Have you issued the following on the PI so we can see what is happening when you are causing motion in front of the sensor?

```auto
tailf /var/log/openhab2/events.log

```

This will keep a running output of the events log until you hit ‘ctrl c’ and will only read the last part of the log. Once you run it cover the sensor and uncover it to see if the things/items are triggering log entries. Since your light is working you can also test it out with tailf by turning the light on via paperUI to get an idea of what you will see happen.

Also the above tailf command is what is a code fence it is part of posting and keep things tidy along with some syntex highlighting (in some cases).

Also something else that is useful is leveraging commands like cat or more with grep

```auto
cat /var/log/openhab2/events.log | grep 2018-02-15

```

The above will spit out all the logs with that time stamp, which could be helpful to you if you wanted to look at the past events but limit the only a date/timestamp.

```auto
cat /var/log/openhab2/openhab.log | grep 2018-02-15 | grep 12:0

```

Spit out the same log but only match that date and then filter again to 12:00 through 12:09.

---

<div class="post-metadata">

**Author:** ![162884](https://community.openhab.org/user_avatar/community.openhab.org/162884/32/16632_2.png) [@162884](https://community.openhab.org/u/162884)\
**Post date:** [February 15, 2018, 2:16pm UTC](https://community.openhab.org/t/solved-do-i-have-to-unplug-my-z-stick-gen-5-to-include-new-devices/40011/40 "2018-02-15T14:16:51Z")

</div>

Thanks @anonymous.one! I will do this later today when I return from work and report back.

[Previous page](https://community.openhab.org/t/solved-do-i-have-to-unplug-my-z-stick-gen-5-to-include-new-devices/40011.md?page=1)

[Next page](https://community.openhab.org/t/solved-do-i-have-to-unplug-my-z-stick-gen-5-to-include-new-devices/40011.md?page=3)
