# Hue bulbs as motion sensor device driver?

**URL:** <https://community.smartthings.com/t/hue-bulbs-as-motion-sensor-device-driver/78358>\
**Category:** Connected Things\
**Created:** [February 18, 2017, 5:44pm UTC](https://community.smartthings.com/t/hue-bulbs-as-motion-sensor-device-driver/78358 "2017-02-18T17:44:19Z")\
**Posts on this page:** 1\
**Showing post:** 2

<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:** [February 18, 2017, 6:43pm UTC](https://community.smartthings.com/t/hue-bulbs-as-motion-sensor-device-driver/78358/2 "2017-02-18T18:43:33Z")

</div>

> [@Alex\_Batlin](#):
>
> I got both Hue bulbs and hue motion sensor, but the hue motion sensor unless paired direct to ST cannot be used as a motion sensor. So I was thinking, is it possible to create a new device driver that detects a hue bulb being switched on, or group of, and if so, triggering the ‘simulated’ or ‘virtual’ motion sensor. Has anyone done anything like this?

I’m a little bit confused about what you’re trying to accomplish. It’s easy to use a Hue light coming on as a trigger in smartthings. But SmartThings cannot communicate with the Hue motion sensor Unless you have directly paired it to the SmartThings hub.

You could certainly do something with a virtual motion sensor when the hue light comes on, but there wouldn’t be any way to then communicate on to the actual Hue motion sensor unless, again, that hue motion sensor was directly paired to the smart things hub, in which case you wouldn’t need the virtual.

What exactly is it that you’re trying to accomplish with the virtual motion sensor?

Depending on what you are trying to accomplish, there is one other possibility, Mike Maxwell has a very cool universal device type translator which can have a switch report as a motion sensor. And a bulb can be treated as a switch. Normally, you probably wouldn’t need that but if, for example, you are trying to get a Hue motion sensor to work with smart home monitor (which doesn’t respond to a light coming on) you could set up something like this:

1. have a Hue motion sensor connected to the hue bridge, not the smartthings hub. Also have a Hue Bulb connected to that bridge.

Two) set up the integration between that hue bridge and SmartThings. Smartthings will be able to see the bulb, but not the motion sensor.

Three) have the motion sensor turn on the bulb using the Hue bridge.

Four) use the universal device type handler and have the bulb Report as a motion sensor.

> [@\[OBSOLETE\] Universal Virtual Device Type and Translator](https://community.smartthings.com/t/release-universal-virtual-device-type-and-translator/47836):
>
> This has got to be the sickest DTH ever… The uDTH Ever wished you could turn on a presence sensor with a switch?, or maybe take a lock command and send a motion event? Basically this bad boy accepts these commands: on off open close lock unlock and can turn them into these attribute states: open closed present not present active inactive The following capabilities are presented on the command side: switch door control garage door control lock The following devices are presented on the attribute side: Contact Motion Presence Door Acceleration Illuminance Smoke Water Sound You wire up an instance of this device to two separate apps, and off you go. Add to your repo, and select the device MikeMaxwell : uDTH the repo is owner: MikeMaxwell name: dth

Five) now smart home monitor can respond to that bulb coming on, and since the bulb is coming on because the Hue motion sensor is coming on, smart home monitor is now responding to the Hue motion sensor.

Obviously, this is a lot of work, so the only reason to do this would be if you also wanted to use the Hue motion sensor with the hue bridge for other purposes. Otherwise, you should just connect the motion sensor directly to the smartthings hub

> [@\[OBSOLETE\] Hue Motion Sensor (beta) (no hue bridge)](https://community.smartthings.com/t/beta-hue-motion-sensor-beta-no-hue-bridge/62286/):
>
> I have just finished building a Device Handler for the Hue Motion sensor and thought I would share it with the community. Note that this is very much beta and rather potatoe quality code as its my first device handler but it is working for me. I will happilly entertain suggestions and improvements. Motion Detects motion and illuminates a red LED on the device Sleeps for about 60 seconds before sending a no motion response Temperature Seems Accurate Battery Works but likely not calibrated very well Illuminance Measurement Returns a value that changes based on lighting, However I am not familiar with lux measurements and have nothing to compare it to for calibration. I get around 160 with normal indoor lighting and about 40 in my dimly lit bedroom, but I think that is wrong

---

_[View the full topic](https://community.smartthings.com/t/hue-bulbs-as-motion-sensor-device-driver/78358)._
