# Virtual device door sensor value

**URL:** <https://community.homey.app/t/virtual-device-door-sensor-value/53008>\
**Category:** Flows\
**Created:** [October 11, 2021, 7:24pm UTC](https://community.homey.app/t/virtual-device-door-sensor-value/53008 "2021-10-11T19:24:45Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alberto](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/alberto/32/16912_2.png) [@Alberto](https://community.homey.app/u/Alberto)\
**Post date:** [October 11, 2021, 7:24pm UTC](https://community.homey.app/t/virtual-device-door-sensor-value/53008/1 "2021-10-11T19:24:45Z")

</div>

Hi I created a vd for a sensor door  
I want to set it on when a input device is 1 but if i insert 1 to the value nothing happens.  
I tried with on, 1, open…  
Nothing

---

<div class="post-metadata">

**Author:** ![RonnyW](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/ronnyw/32/10879_2.png) [@RonnyW](https://community.homey.app/u/RonnyW)\
**Post date:** [October 11, 2021, 8:12pm UTC](https://community.homey.app/t/virtual-device-door-sensor-value/53008/2 "2021-10-11T20:12:41Z")

</div>

Hi,

you have to use the capability name and a valid state like shown this example:

 ![Screenshot_20211011-221122_Homey](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/8/e/8ed2f1afd65c28febf204e0e6074173c7af51816.jpeg)

---

<div class="post-metadata">

**Author:** ![Rocodamelshekima](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/rocodamelshekima/32/8209_2.png) [@Rocodamelshekima](https://community.homey.app/u/Rocodamelshekima)\
**Post date:** [October 11, 2021, 8:46pm UTC](https://community.homey.app/t/virtual-device-door-sensor-value/53008/3 "2021-10-11T20:46:09Z")

</div>

Someone made [a nice topic](https://community.homey.app/t/howto-set-a-value-to-a-virtual-device/45883) about just this.

---

<div class="post-metadata">

**Author:** ![Alberto](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/alberto/32/16912_2.png) [@Alberto](https://community.homey.app/u/Alberto)\
**Post date:** [October 12, 2021, 9:07am UTC](https://community.homey.app/t/virtual-device-door-sensor-value/53008/4 "2021-10-12T09:07:44Z")

</div>

perfect, all clear. i solved my issue  
many thanks… i didn’t find that topic

---

<div class="post-metadata">

**Author:** ![Soren\_Dossing](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/soren_dossing/32/34042_2.png) [@Soren\_Dossing](https://community.homey.app/u/Soren_Dossing)\
**Post date:** [September 9, 2022, 7:07am UTC](https://community.homey.app/t/virtual-device-door-sensor-value/53008/5 "2022-09-09T07:07:38Z")

</div>

That nice topic does not mention anything about virtual window/door switch, only thermostat?
