# How to set a virtual motion sensor

**URL:** <https://community.homey.app/t/how-to-set-a-virtual-motion-sensor/59305>\
**Category:** Devices\
**Tags:** virtual-device\
**Created:** [January 28, 2022, 11:23am UTC](https://community.homey.app/t/how-to-set-a-virtual-motion-sensor/59305 "2022-01-28T11:23:26Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Johan\_von\_Perner](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/johan_von_perner/32/47913_2.png) [@Johan\_von\_Perner](https://community.homey.app/u/Johan_von_Perner)\
**Post date:** [January 28, 2022, 11:23am UTC](https://community.homey.app/t/how-to-set-a-virtual-motion-sensor/59305/1 "2022-01-28T11:23:26Z")

</div>

I am trying to trigger virtual motion sensor via a Fibaro switch using a flow. I assume I need to use a card “Set a virtual sensor value” but I don’t understand what to put here.

Please advice, I have not find any tutorial on this

Thanks Johan

---

<div class="post-metadata">

**Author:** ![FKey](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/fkey/32/14793_2.png) [@FKey](https://community.homey.app/u/FKey)\
**Post date:** [January 28, 2022, 7:38pm UTC](https://community.homey.app/t/how-to-set-a-virtual-motion-sensor/59305/2 "2022-01-28T19:38:02Z")

</div>

IF fibaro switch is triggered  
THEN  
 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/e/0/e0e9c9d19d767497b3584bdd0625005fa2bcb200.png)

- Be aware! “alarm\_motion” is case sensitive.  
So “Alarm\_motion” will not set the status of your virtual motion sensor
- And dont forget to also switch it off. Otherwise you zone will stay active and the next switch will be missed… (with a delay or triggered by the fibaro switch)

If you want to make a virtual contact sensor  
 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/f/e/fed3a5382783d3b7d3088b8e3f85e6543f87fbcf.png)

---

<div class="post-metadata">

**Author:** ![FKey](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/fkey/32/14793_2.png) [@FKey](https://community.homey.app/u/FKey)\
**Post date:** [January 29, 2022, 6:35am UTC](https://community.homey.app/t/how-to-set-a-virtual-motion-sensor/59305/3 "2022-01-29T06:35:57Z")

</div>

> [@Johan\_von\_Perner](#):
>
> I have not find any tutorial on this

You will find more devices in the thread of the virtual devices app itself  
Like

- [The virtual luminance / lux sensor](https://community.homey.app/t/app-pro-virtual-devices/1723/495)
- [The virtual power meter](https://community.homey.app/t/app-pro-virtual-devices/1723/483)
- [The virtual humidity sensor](https://community.homey.app/t/app-pro-virtual-devices/1723/470)

---

<div class="post-metadata">

**Author:** ![FKey](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/fkey/32/14793_2.png) [@FKey](https://community.homey.app/u/FKey)\
**Post date:** [January 29, 2022, 6:43am UTC](https://community.homey.app/t/how-to-set-a-virtual-motion-sensor/59305/4 "2022-01-29T06:43:05Z")

</div>

@Peter_Kawa one guy seems to be particularly fond of virtual sensors 😀

@Peter_Kawa what is [measure\_gust\_angle](https://community.homey.app/t/app-pro-virtual-devices/1723/470) ?  
Update: ah Ok that is [direction of the wind](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/5/8/58794a41565abbdd047c69fe465e58f84e35edbf.jpeg) right?

---

<div class="post-metadata">

**Author:** ![Johan\_von\_Perner](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/johan_von_perner/32/47913_2.png) [@Johan\_von\_Perner](https://community.homey.app/u/Johan_von_Perner)\
**Post date:** [January 29, 2022, 8:39am UTC](https://community.homey.app/t/how-to-set-a-virtual-motion-sensor/59305/5 "2022-01-29T08:39:43Z")

</div>

Thanks all!

Johan

---

<div class="post-metadata">

**Author:** ![Peter\_Kawa](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_kawa/32/173848_2.png) [@Peter\_Kawa](https://community.homey.app/u/Peter_Kawa)\
**Post date:** [January 29, 2022, 4:18pm UTC](https://community.homey.app/t/how-to-set-a-virtual-motion-sensor/59305/6 "2022-01-29T16:18:00Z")

</div>

Haha, you think so? 😁  
Measure\_gust\_angle is de direction the wind gusts are coming from I think.  
There’s also measure\_wind\_angle.  
I didn’t know wind gusts can differ from the wind direction 🙃

> **[Tutorial: Device Capabilities - Homey Apps SDK v3](https://apps-sdk-v3.developer.homey.app/tutorial-device-capabilities.html)**

---

<div class="post-metadata">

**Author:** ![FKey](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/fkey/32/14793_2.png) [@FKey](https://community.homey.app/u/FKey)\
**Post date:** [January 29, 2022, 4:49pm UTC](https://community.homey.app/t/how-to-set-a-virtual-motion-sensor/59305/7 "2022-01-29T16:49:50Z")

</div>

Super! I have been using the SDK, but did not find this yet.

---

<div class="post-metadata">

**Author:** ![FKey](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/fkey/32/14793_2.png) [@FKey](https://community.homey.app/u/FKey)\
**Post date:** [January 29, 2022, 4:51pm UTC](https://community.homey.app/t/how-to-set-a-virtual-motion-sensor/59305/8 "2022-01-29T16:51:07Z")

</div>

> [@Peter\_Kawa](#):
>
> I didn’t know wind gusts can differ from the wind direction 🙃

Maybe it supports a tornado detection system 🤣
