# Virtual/Seperate Switch for Monoprice Dual Relay

**URL:** <https://community.smartthings.com/t/virtual-seperate-switch-for-monoprice-dual-relay/30101>\
**Category:** Community Created SmartApps\
**Created:** [November 25, 2015, 7:30pm UTC](https://community.smartthings.com/t/virtual-seperate-switch-for-monoprice-dual-relay/30101 "2015-11-25T19:30:26Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![gilee\_8](https://avatars.discourse-cdn.com/v4/letter/g/df788c/32.png) [@gilee\_8](https://community.smartthings.com/u/gilee_8)\
**Post date:** [November 25, 2015, 7:30pm UTC](https://community.smartthings.com/t/virtual-seperate-switch-for-monoprice-dual-relay/30101/1 "2015-11-25T19:30:26Z")

</div>

Hello everyone, Happy Thanksgiving!  
I am very new to Smartthings, and installed multiple monoprice Dual Relay ON/OFF Switch.  
But in most cases like smartTiles, or Routines / Smart Home Monitors, I cannot have access to the 2nd Switch (of the DUAL Relay)  
I been doing alot of research here in the forum, but cannot really find a solid answer or get anything to work.  
I tried the simulated Switch, the Big Switch SmartApp, I cannot get them connect to the Dual Relay individual physical switch.  
I also read alot regarding the virtual tiles, but I have no idea what it is, and how to set it up.

Can anyone point me to a direction, I am a newbie to this, so I will need more details step by step.  
Any help will be greatly appreciated!  
Thank you so much & Happy Thanksgiving!

---

<div class="post-metadata">

**Author:** ![Navat604](https://avatars.discourse-cdn.com/v4/letter/n/898d66/32.png) [@Navat604](https://community.smartthings.com/u/Navat604)\
**Post date:** [November 25, 2015, 8:30pm UTC](https://community.smartthings.com/t/virtual-seperate-switch-for-monoprice-dual-relay/30101/2 "2015-11-25T20:30:10Z")

</div>

Here’s a post about that dual relay. I believe the smartapps is near the bottom of the post.

> [@\[OBSOLETE..\] Monoprice Dual Relay On/Off Device type 11990](https://community.smartthings.com/t/monoprice-dual-relay-on-off-device-type-11990/26944/19):
>
> I don’t have this relay, so I can’t tell for certain, but I don’t see how it is showing status updates when the physical switch is toggled. My friend has this switch and I was looking at his logs today. It is very similar to the Philio PAN04 in that when the physical switch is flipped, the relay sends a SwitchBinaryReport event. This event does not specify which physical switch is flipped. My device type for the Philio, when it receives a SwitchBinaryReport, requests for the switch to send it an updated status using the COMMAND\_CLASS\_MULTI\_CHANNEL\_V3 command class. The original SmartApp for the Enerwave would fix this problem by requesting a refresh every minute or so to update the status of both switches. That is why @CDJ is seeing all those null object errors in his logs. The SmartApp i…

---

<div class="post-metadata">

**Author:** ![gilee\_8](https://avatars.discourse-cdn.com/v4/letter/g/df788c/32.png) [@gilee\_8](https://community.smartthings.com/u/gilee_8)\
**Post date:** [November 25, 2015, 9:16pm UTC](https://community.smartthings.com/t/virtual-seperate-switch-for-monoprice-dual-relay/30101/3 "2015-11-25T21:16:11Z")

</div>

Thank you Navat604.  
I read through this post couple times, and will there be other place I can obtain step by step details?

---

<div class="post-metadata">

**Author:** ![Navat604](https://avatars.discourse-cdn.com/v4/letter/n/898d66/32.png) [@Navat604](https://community.smartthings.com/u/Navat604)\
**Post date:** [November 25, 2015, 9:41pm UTC](https://community.smartthings.com/t/virtual-seperate-switch-for-monoprice-dual-relay/30101/4 "2015-11-25T21:41:16Z")

</div>

I am my phone so it’s a little hard to search for the step for virtual switch but I think @JDRoberts has a really nice write up FAQ on virtual switch. I will post the steps when I get a chance on my laptop unless someone here can point you to the right direction first.

---

<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:** [November 25, 2015, 9:44pm UTC](https://community.smartthings.com/t/virtual-seperate-switch-for-monoprice-dual-relay/30101/5 "2015-11-25T21:44:46Z")

</div>

@mattjfrank wrote the FAQ on creating virtual switches after I asked the question. 🕶 Here’s that link:

[FAQ: Creating a virtual Device](https://community.smartthings.com/t/faq-creating-a-virtual-device/11282/)

---

<div class="post-metadata">

**Author:** ![erocm1231](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/erocm1231/32/60878_2.png) [@erocm1231](https://community.smartthings.com/u/erocm1231)\
**Post date:** [November 25, 2015, 10:06pm UTC](https://community.smartthings.com/t/virtual-seperate-switch-for-monoprice-dual-relay/30101/6 "2015-11-25T22:06:35Z")

</div>

I’m not sure which device type and smartapp that you grabbed, but @justintime made an adaptation of Philio Dual Relay device type that should work extremely well. It supports “instant” status updates when the switches are physically flipped.

[https://github.com/justintime/SmartThings-Monoprice-11990/blob/master/monoprice-11990.groovy](https://github.com/justintime/SmartThings-Monoprice-11990/blob/master/monoprice-11990.groovy)

Here is the SmartApp that @Navat604 mentioned. The original SmartApp did a type of polling every 30 or so seconds which wasn’t necessary with the device type above so I created a version that doesn’t poll.

> <https://github.com/erocm123/SmartThingsPublic/blob/master/smartapps/erocm123/dual-relay-adapter.src/dual-relay-adapter.groovy>

So, if you use the instructions referenced by @JDRoberts to create two virtual ON/OFF Button Tiles and then use the referenced SmartApp to associate the two virtual switches with the Monoprice Switch 1 and 2, you should be able to accomplish what you are trying.

---

<div class="post-metadata">

**Author:** ![justintime](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/justintime/32/21899_2.png) [@justintime](https://community.smartthings.com/u/justintime)\
**Post date:** [November 25, 2015, 10:11pm UTC](https://community.smartthings.com/t/virtual-seperate-switch-for-monoprice-dual-relay/30101/7 "2015-11-25T22:11:36Z")

</div>

@gilee_8 The README file with my custom device type will explain things, step by step, including setting up the virtual switches: [https://github.com/justintime/SmartThings-Monoprice-11990](https://github.com/justintime/SmartThings-Monoprice-11990)

It’s been working flawlessly for me since I wrote it, let me know how you make out with it.

---

<div class="post-metadata">

**Author:** ![gilee\_8](https://avatars.discourse-cdn.com/v4/letter/g/df788c/32.png) [@gilee\_8](https://community.smartthings.com/u/gilee_8)\
**Post date:** [November 28, 2015, 3:22pm UTC](https://community.smartthings.com/t/virtual-seperate-switch-for-monoprice-dual-relay/30101/8 "2015-11-28T15:22:28Z")

</div>

Thank you so much Justintime!  
It works flawlessly! Greatly Appreciated!  
Happy Thanksgiving!

---

<div class="post-metadata">

**Author:** ![gilee\_8](https://avatars.discourse-cdn.com/v4/letter/g/df788c/32.png) [@gilee\_8](https://community.smartthings.com/u/gilee_8)\
**Post date:** [November 28, 2015, 3:23pm UTC](https://community.smartthings.com/t/virtual-seperate-switch-for-monoprice-dual-relay/30101/9 "2015-11-28T15:23:42Z")

</div>

Thank you so much Eric Maycock! Your info plus the link from Justintime, really clear and step by step!  
Thank you & Happy Thanksgiving!

---

<div class="post-metadata">

**Author:** ![erocm1231](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/erocm1231/32/60878_2.png) [@erocm1231](https://community.smartthings.com/u/erocm1231)\
**Post date:** [November 28, 2015, 10:11pm UTC](https://community.smartthings.com/t/virtual-seperate-switch-for-monoprice-dual-relay/30101/10 "2015-11-28T22:11:58Z")

</div>

Glad I could help. 😉
