# Invalid Device Variable - Smartthings multi function sensor

**URL:** <https://community.smartthings.com/t/invalid-device-variable-smartthings-multi-function-sensor/170121>\
**Category:** Automation Ideas\
**Created:** [August 8, 2019, 10:18am UTC](https://community.smartthings.com/t/invalid-device-variable-smartthings-multi-function-sensor/170121 "2019-08-08T10:18:14Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![andy\_chard](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/andy_chard/32/101870_2.png) [@andy\_chard](https://community.smartthings.com/u/andy_chard)\
**Post date:** [August 8, 2019, 10:18am UTC](https://community.smartthings.com/t/invalid-device-variable-smartthings-multi-function-sensor/170121/1 "2019-08-08T10:18:14Z")

</div>

Hi

I’m new to webcore, I’m trying to get this to work:

 ![image](https://global.discourse-cdn.com/smartthings/original/3X/0/7/07601ddcd18e62f9be00c7278659aa86584f8606.png)

When editing the piston, it says:

“Invalid device variable Mag Lock Engaged”

Can someone give me a pointer on what this means, how I find out what the correct device variable should be?

Thanks

Andy

---

<div class="post-metadata">

**Author:** ![sidjohn1](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/sidjohn1/32/16652_2.png) [@sidjohn1](https://community.smartthings.com/u/sidjohn1)\
**Post date:** [August 8, 2019, 11:32am UTC](https://community.smartthings.com/t/invalid-device-variable-smartthings-multi-function-sensor/170121/2 "2019-08-08T11:32:55Z")

</div>

You might want to post your question over here

> **[webCoRE Community Forum](https://community.webcore.co/)**
>
> This is the community forum for the web-enabled Community's own Rule Engine

---

<div class="post-metadata">

**Author:** ![andy\_chard](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/andy_chard/32/101870_2.png) [@andy\_chard](https://community.smartthings.com/u/andy_chard)\
**Post date:** [August 8, 2019, 12:25pm UTC](https://community.smartthings.com/t/invalid-device-variable-smartthings-multi-function-sensor/170121/3 "2019-08-08T12:25:52Z")

</div>

Cheers Sid

---

<div class="post-metadata">

**Author:** ![andy\_chard](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/andy_chard/32/101870_2.png) [@andy\_chard](https://community.smartthings.com/u/andy_chard)\
**Post date:** [August 9, 2019, 4:07pm UTC](https://community.smartthings.com/t/invalid-device-variable-smartthings-multi-function-sensor/170121/4 "2019-08-09T16:07:27Z")

</div>

all working fine now
