We have moved at community.getvera.com

Author Topic: Understanding "Virtual Switch" and alternatives  (Read 566 times)

Offline JohnRob

  • Full Member
  • ***
  • Posts: 245
  • Karma: +12/-4
Understanding "Virtual Switch" and alternatives
« on: June 01, 2018, 01:13:10 am »

I'm trying to understand the benefits of the different types of virtual devices.  Or perhaps I am on the wrong track.
I hope I can get a handle on their functions without installing them first.  I would rather not install and uninstall a bunch of apps, thinking not everything gets uninstalled.

Currently I use Multistring for variables I wish to survive a reboot.  Now it seems from the surface that the "Virtual Switch" plugin is nearly the same except it has only one variable and can be easily changed by the dashboard or phone.

I would think the & plugin is similar but triggerd by two logical inputs (or two inputs that can be logically combined).

Am I off base?

Offline Don Phillips

  • Hero Member
  • *****
  • Posts: 1464
  • Karma: +41/-36
Re: Understanding "Virtual Switch" and alternatives
« Reply #1 on: June 01, 2018, 08:14:40 pm »
I use the Virtual Switch in a couple of ways:
1) Each iPhone has a virtual switch and when either of us is home, it turns on that phone's switch, which shows in VeraMate. When either is gone, the switch is off and is not displayed. At a glance, we can see if the other is home on our phone.
2) I have a Cameras Armed and a No One Home switch that appear in VeraMate only when on.  The No One Home switch is redundant but Cameras Armed confirms the LUA code was executed that sent a command to Blue Iris to arm the cameras. When it is off, it confirms Vera disarmed Blue Iris. Kinda redundant if I trust Away Mode armed the cameras but the virtual switch is turned on in PLEG right after the LUA code is executed.
3) I have 3 exterior lights controlled via PLEG and a Virtual Switch called Exterior Lights. When PLEG turns them on at dusk, or off at dawn, the switch tells me their status on VeraMate. But if press the switch in VeraMate, it will toggle the switch which then PLEG toggles the 3 exterior lights.
4) I have 2 UPS's that enable a switch when it loses commercial power.  One UPS powers my main PC, which runs Blue Iris and PlayOn, and the other the Network infrastructure. If both UPS's lose commercial power, a third switch will turn on and send me a notification that I have a power outage at the house. The network and Vera can survive for about 3 hours, but it is good to know I have an outage. When my smart meter gets installed, I will revisit this.
Vera 3, 1.7.1040, CT101, Everspring Motion, GE/Jasco Switch/Dimmer, Leviton outlet, AeonLabs sensor, NuTone garage door, Blue Iris, Sricam SP011, iPhone locator, APCUPSD, VeraMate, VeraAlerts, PLEG, House Modes, Countdown Timer, DVR, Virtual/Multi Switch, LB60Z-1 bulb, Hue, Alexa, Zooz 4-1

Offline therealdb

  • Sr. Member
  • ****
  • Posts: 258
  • Karma: +6/-0
  • Automate all the things!
Re: Understanding "Virtual Switch" and alternatives
« Reply #2 on: June 02, 2018, 02:33:20 am »
Same here, but I replaced my vswitch with a couple of multiswitch.
I set party mode (relaxed alerts for doors left open, all lights on at night, less automation to keeping  the guests 'safe'), mute, summer/winter mode, automatic roller shutters and thermostat force mode (to bypass home mode) and much more this way.

If you change device type to remote it will render OK even with mobile apps.
Vera Edge EU, Fibaro FGRM 222 (14), Fibaro FGS 223 (26), Fibaro FGS 222 (6), Fibaro UBS (2), Fibaro+N Plug (3), NeoCoolCam Door Sensor (3), PIR (2) & Plugs (2), Nest (3), Home Server running my own integrations, Harmony Hub, OpenSprinkler, Personal Weather Station, Sonoff TH & more