# Virtual Device Motion Sensor with Heimdal

**URL:** <https://community.homey.app/t/virtual-device-motion-sensor-with-heimdal/1070>\
**Category:** Questions & Help\
**Created:** [September 3, 2018, 10:32am UTC](https://community.homey.app/t/virtual-device-motion-sensor-with-heimdal/1070 "2018-09-03T10:32:22Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![viix](https://avatars.discourse-cdn.com/v4/letter/v/4af34b/32.png) [@viix](https://community.homey.app/u/viix)\
**Post date:** [September 3, 2018, 10:32am UTC](https://community.homey.app/t/virtual-device-motion-sensor-with-heimdal/1070/1 "2018-09-03T10:32:22Z")

</div>

Im trying to make a virtual motion sensor with Virtual Device and use it as a sensor to trigger for Heimdall.  
I’ve looked at the flow cards and the [documentation for VD sensors](https://arjankranenburg.github.io/virtual-devices/sensor) but none of the [capability names and value](https://developer.athom.com/docs/apps/tutorial-Drivers-Reference.html) to be filled into the virtual sensor fields seems to be working.

I have tried alarm\_motion and value true but nothing triggers within heimdall… any ideas what I could be doing wrong here?

---

<div class="post-metadata">

**Author:** ![DaneedeKruyff](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/daneedekruyff/32/964_2.png) [@DaneedeKruyff](https://community.homey.app/u/DaneedeKruyff)\
**Post date:** [September 3, 2018, 11:04am UTC](https://community.homey.app/t/virtual-device-motion-sensor-with-heimdal/1070/2 "2018-09-03T11:04:12Z")

</div>

Seems the bug is acknowledged by Arjan, the developer of Virtual Devices: [https://github.com/ArjanKranenburg/virtual-devices/issues/61](https://github.com/ArjanKranenburg/virtual-devices/issues/61)

When you create a Virtual Device (Device class Home Alarm) and select Detected Motion is does get picked up by [Heimdall](https://community.homey.app/t/134) so the alarm\_motion capability is set correctly on the device. I seems to me the flowcard just doesn’t work but that’s something Arjan would have to fix.

---

<div class="post-metadata">

**Author:** ![DaneedeKruyff](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/daneedekruyff/32/964_2.png) [@DaneedeKruyff](https://community.homey.app/u/DaneedeKruyff)\
**Post date:** [September 3, 2018, 3:27pm UTC](https://community.homey.app/t/virtual-device-motion-sensor-with-heimdal/1070/3 "2018-09-03T15:27:00Z")

</div>

Seems the code that fires when the action card is used can only handle numbers, I’ve added some code that enables the use of boolean and numeric in the action card in the [bug report at Github](https://github.com/ArjanKranenburg/virtual-devices/issues/61), let’s hope Arjan picks it up.

---

<div class="post-metadata">

**Author:** ![viix](https://avatars.discourse-cdn.com/v4/letter/v/4af34b/32.png) [@viix](https://community.homey.app/u/viix)\
**Post date:** [September 3, 2018, 3:48pm UTC](https://community.homey.app/t/virtual-device-motion-sensor-with-heimdal/1070/4 "2018-09-03T15:48:36Z")

</div>

Ah I see! Thanks for the clarification. Let’s hope Arian picks it up 👍🏻.

---

<div class="post-metadata">

**Author:** ![DaneedeKruyff](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/daneedekruyff/32/964_2.png) [@DaneedeKruyff](https://community.homey.app/u/DaneedeKruyff)\
**Post date:** [September 13, 2018, 7:13pm UTC](https://community.homey.app/t/virtual-device-motion-sensor-with-heimdal/1070/5 "2018-09-13T19:13:14Z")

</div>

@viix Arjan picked it up 👍 it’s released in beta v0.7.4 which will be pushed to stable soon.  
Read [this post in the Heimdall topic](https://community.homey.app/t/heimdall-let-homey-watch-over-your-home/134/8) to read more about how to use it.
