# Offline Zigbee devices & Unsecure Rejoin

**URL:** <https://community.smartthings.com/t/offline-zigbee-devices-unsecure-rejoin/223379>\
**Category:** Connected Things\
**Created:** [March 24, 2021, 6:51pm UTC](https://community.smartthings.com/t/offline-zigbee-devices-unsecure-rejoin/223379 "2021-03-24T18:51:29Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mika\_1](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/mika_1/32/95799_2.png) [@Mika\_1](https://community.smartthings.com/u/Mika_1)\
**Post date:** [March 24, 2021, 6:51pm UTC](https://community.smartthings.com/t/offline-zigbee-devices-unsecure-rejoin/223379/1 "2021-03-24T18:51:29Z")

</div>

Hi,

I have issue with **Philips Hue Motion Sensor** and **Xiaomi Aqara Temperature Humidity Sensors**. My SmartThings hub is v3 with 000.035.00004 firmware.

If setting “Unsecure Rejoin” is disabled all my Xiaomi’s are working fine, BUT Hue Motion Sensor get’s offline and doesn’t get back online. Hub event list shows for Hue that “_was not allowed to unsecure rejoin_”.

Okay, then if I enable the “Unsecure Rejoin” Hue Motion Sensor will keep online and is able to rejoin if it goes offline for while, BUT now the all the Xiaomi’s sensors will start getting offline after few hours and may jump for while back and then back to offline where they stay most of the time.

I have only couple routers which are Osram bulbs, but those were disconnected during troubleshooting in order to avoid those having any role in this issue.

If I understood correctly that Unsecure Rejoin should fix exactly this kind of offline issues and it should not cause those, but in my case it fix that for Hue and causes those for Xiaomi…

Device handler for Xiaomi is [bspranger : Xiaomi Aqara Temperature Humidity Sensor] version 1.3 and for Hue it’s [bogdanalexe90 : Hue Motion Sensor] from year 2018.

Any ideas how to get things working? Thanks!

---

<div class="post-metadata">

**Author:** ![nathancu](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/nathancu/32/45410_2.png) [@nathancu](https://community.smartthings.com/u/nathancu)\
**Post date:** [March 24, 2021, 8:05pm UTC](https://community.smartthings.com/t/offline-zigbee-devices-unsecure-rejoin/223379/2 "2021-03-24T20:05:42Z")

</div>

My first suggestion, deal with the Xiaomi Aquara sensors as a one off. There’s MULTIPLE posts in the forum about how these devices behave (or rather don’t) and how to work around their quirks. In short they don’t like most repeaters - you’ll have to find some that work for you… Pick an article and start reading:

[Search results for ‘xiaomi devices offline’ - SmartThings Community](https://community.smartthings.com/search?q=xiaomi%20devices%20offline)

Now as to Philips Hue. Dropping? That means you have them joined directly to your ST hub? FIRST, I’d suggest using the Hue hub - for multiple reasons, not the least of which is the ability to use Hue advanced features, the ability to reset the devices and apply firmware (none of which you can do by default if they’re directly joined to ST…) Barring that, turn unsecure rejoin back on. (again - deal with the Xiaomi’s as a one off)

---

<div class="post-metadata">

**Author:** ![Mika\_1](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/mika_1/32/95799_2.png) [@Mika\_1](https://community.smartthings.com/u/Mika_1)\
**Post date:** [March 24, 2021, 8:30pm UTC](https://community.smartthings.com/t/offline-zigbee-devices-unsecure-rejoin/223379/3 "2021-03-24T20:30:23Z")

</div>

Thanks for quick reply.

I have read those threads, but I thinking that I’m not able to get any help from those because:

1. I have not faced any issues with Xiaomi things over year now when Unsecure Rejoin is DISABLED.
2. I have excluded repeaters from this issue by shutting down those two OSRAM bulbs what I have.

I though that there was now support in SmartThings hub for Philips Hue devices and Hue bridge is not needed. Or did I understood that wrongly?

What did you meant with “…as one off” - sorry I did not catch that 🙂

---

<div class="post-metadata">

**Author:** ![nathancu](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/nathancu/32/45410_2.png) [@nathancu](https://community.smartthings.com/u/nathancu)\
**Post date:** [March 24, 2021, 9:00pm UTC](https://community.smartthings.com/t/offline-zigbee-devices-unsecure-rejoin/223379/4 "2021-03-24T21:00:08Z")

</div>

For Hue. Philips hue bulbs can join SmartThings and will WORK… BUT… you cannot reset the devices without a Hue hub, you cannot upgrade Hue device firmware without a hue hub, and there’s a whole host of offline capabilities and scene control for Hue that you don’t get without their hub / app) for those reasons, it’s RECCOMMENDED that you use use the Hue hub for Hue devices.

So with Hue devices, the official recommendation is getting the Hue hub, join the Hue devices there then add the Hue hub to SmartThings. It puts you in a more standard config (future issue avoidance) and will ‘just work.’

So by doing this, you could leave unsecure rejoin off and not worry about the Xiaomi’s But - that’s only half of your ultimate answer.

Now the Xiaomi stuff. What I mean by ‘one-off’ I ALWAYS try to get my configuration as close to default or best practice config as possible. In this case the Xiaomi devices are the non-default, misbehaving device, not your ST hub. They are also known to not communicate with the hub correctly through repeaters so they either need to connect directly to the hub or use repeaters that can work with Xiaomi devices. Multiple posts talk about building a repeater mesh specifically that works with Xiaomi’s. Personally, for me making them work is WAY more trouble than it’s worth and I wont use them (yes I know Xiaomi’s are ridiculously cheap) but my time is worth money and I don’t have time to continue to hand feed them. I’ll buy a better sensor and not have to mess with it. IF you choose to keep them you’ll eventually need to build a good repeating mesh and more than one of those posts have strategies to do that.

If this were all mine, I’d move the Hue to a Hue hub, join it to ST, dump the Xiaomi’s for some other brand of sensor to make that someone else’s problem, and get a couple extra Hue bulbs to replace the Osrams (Pre Sylvania Osram bulbs are horrid repeaters)

My second choice would be move Hue to its hub, and get a couple of Zigbee repeaters known to work with the Xiaomi devices.

---

<div class="post-metadata">

**Author:** ![Mika\_1](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/mika_1/32/95799_2.png) [@Mika\_1](https://community.smartthings.com/u/Mika_1)\
**Post date:** [March 25, 2021, 7:55pm UTC](https://community.smartthings.com/t/offline-zigbee-devices-unsecure-rejoin/223379/5 "2021-03-25T19:55:46Z")

</div>

Thanks for reply. I bought Hue bridge and pair it with Hue Motion Sensor and with one light bulb, because otherwise it was not possible to use app with Hue Motion Sensor only.

Then I add Hue bridge to SmartThings and I was able to see in SmartThings app the Hue Bridge and light bulb, but not the Hue Motion Sensor. Philips support service was not able to say that should Hue accessories be visible in SmartThings or not… I asked also from Samsung, but so far no response there yet.

Has anyone experience of this?

---

<div class="post-metadata">

**Author:** ![JDRoberts](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/jdroberts/32/56577_2.png) [@JDRoberts](https://community.smartthings.com/u/JDRoberts)\
**Post date:** [March 25, 2021, 10:45pm UTC](https://community.smartthings.com/t/offline-zigbee-devices-unsecure-rejoin/223379/6 "2021-03-25T22:45:05Z")

</div>

> [@nathancu](#):
>
> For Hue. Philips hue bulbs can join SmartThings and will WORK

They can also seriously mess up your Zigbee network. So they will JOIN, but I’m not sure I’d say they will WORK. 😥

See the community FAQ( The topic title is a clickable link)

> [@FAQ: Do I need the Hue Bridge/Hub to Use a Hue Bulb with SmartThings?](https://community.smartthings.com/t/faq-do-i-need-the-hue-bridge-hub-to-use-a-hue-bulb-with-smartthings/109414):
>
> Yes. The only officially recommended way to use Hue devices with SmartThings is by using a Hue bridge. There are several reasons to use the bridge. Other Integrations There will be a number of other integrations available to you which you may want to take advantage of. Use of Hue Scenes you will be able to activate scenes created with the official Hue app, which at the present time offer many features not available in the smartthings scenes feature. Even just the ability to blink the lights. The easiest way to access scenes from the Hue app is through the following custom edge driver or IFTTT, but there are other ways as well. [[ST Edge] Philips Hue LAN [BETA] (3rd Party Driver, Not ST Native)](https://community.smartthings.com/t/st-edge-philips-hue-lan-beta/249030/) Not using the Bridge can mess up your zigbee network the most important really is …

---

<div class="post-metadata">

**Author:** ![JDRoberts](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/jdroberts/32/56577_2.png) [@JDRoberts](https://community.smartthings.com/u/JDRoberts)\
**Post date:** [March 25, 2021, 11:02pm UTC](https://community.smartthings.com/t/offline-zigbee-devices-unsecure-rejoin/223379/7 "2021-03-25T23:02:50Z")

</div>

> [@Mika\_1](#):
>
> Thanks for reply. I bought Hue bridge and pair it with Hue Motion Sensor and with one light bulb, because otherwise it was not possible to use app with Hue Motion Sensor only.
> 
> Then I add Hue bridge to SmartThings and I was able to see in SmartThings app the Hue Bridge and light bulb, but not the Hue Motion Sensor. Philips support service was not able to say that should Hue accessories be visible in SmartThings or not… I asked also from Samsung, but so far no response there yet.
> 
> Has anyone experience of this?

Bulbs and sensors work differently in this sense.

The bulbs should always be used with the bridge for the reasons above.

However, the bridge does not expose the “accessories“ like sensors and switches to smartthings. It could, because quite a few of them are exposed to HomeKit, it just doesn’t. I’m not sure why. The integration was originally built by smartthings engineers, not hue engineers, and I don’t know if that made a difference.

There are a couple of options for the sensors. Since the sensors are not repeaters, you don’t run into the issues that you do with a directly connected bulb. That’s the good news. 🕶

A) if you just want to use the Hue motion sensor with smartthings and you’re not trying to also see it in the Hue app, then there is a community created DTH that will work with it. This is a popular method for use with the outdoor version of the sensor.

> [@\[OBSOLETE\] Hue motion sensor (use ST hub, but no hue bridge)](https://community.smartthings.com/t/hue-motion-sensor-use-st-hub-but-no-hue-bridge/137836/107):
>
> Hi Ben, Just in case you’ve not tried it yet I’ve just used the DH linked below and changed the model from “SML001” to “SML002” and the entries of “Hue Motion Sensor” to “Hue Outdoor Motion Sensor” before publishing as I’ve also published it without changes to try with the indoor motion sensors. Then reset the motion sensor holding the button for 15 seconds as others have posted with searching for devices running in SmartThings app, it was then discovered correctly as the “Hue Outdoor Motion Sensor”. So far the motion detection appears to be snappy but not seeing any lux/luminance on the device in the SmartThings app at the moment. Update - as per post above I’ve updated also changed vid: “generic-motion” to vid: “generic-motion-4”, changed the device hander assigned to the motion sens…

B) if you want to use the Hue motion sensor with the bridge and also use it with smartthings then there are a number of community developed options, although they all have some limitations.

1. If you happen to use iOS and you want to also use homebridge, you can bring your smartthings devices into HomeKit and use the sensors that way. But that’s a long way to go for an integration.

2. The sensors can be used to trigger an Amazon Alexa routine (not a smartthings routine) and you could have that turn on a virtual switch to act as a proxy for the sensor. That’s a lot easier to set up than homebridge and it works quite well in this direction. It does make you dependent on two different clouds (Amazon and smartthings) but it’s not a bad way to go. You don’t even need to have an echo device, just an Amazon account and the free Alexa app.

3. you can use IFTTT, although since that’s now only free for three applets, it’s not as appealing as it used to be. and again, two clouds.

4. if the use case allows, you can have the hue sensor turn on a specific Hue bulb via the hue bridge, and then use that bulb coming on as your trigger. This can work for some use cases, I did something similar at my own house for a while to turn on a desk lamp and then have that lamp coming on trigger the overhead light, but it won’t work for all use cases.

5. There is a community created custom code version which gives you access to information from a bridge connected sensor, but some people have reported it was not reliable for them. And, as you noted, you have to have at least one bulb on the bridge in order for it to work. You can talk to people using that method in the following thread:

[[OBSOLETE] Hue Accessories and rooms using Hue Bridge (TAP, Motion Sensor, Dimmer Switch) [DEPRECATED]](https://community.smartthings.com/t/beta-hue-accessories-and-rooms-using-hue-bridge-tap-motion-sensor-dimmer-switch-deprecated/92337)

---

<div class="post-metadata">

**Author:** ![Thorsteinn\_Broddason](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/thorsteinn_broddason/32/131455_2.png) [@Thorsteinn\_Broddason](https://community.smartthings.com/u/Thorsteinn_Broddason)\
**Post date:** [April 30, 2021, 6:39am UTC](https://community.smartthings.com/t/offline-zigbee-devices-unsecure-rejoin/223379/8 "2021-04-30T06:39:54Z")

</div>

That is really unfortunate. Hue sensors are just about useless in Hue bridge as you cant use them in SmartThings automations, and the Hue routines are very limited. As a sensor connected to SmartThings you can get information as temperature and light level from Hue movement sensors, while Phillips does not seem to bother.
