We have moved at community.getvera.com

Author Topic: PLEG > use status of devise properties  (Read 422 times)

Offline arien

  • Newbie
  • *
  • Posts: 2
  • Karma: +0/-0
PLEG > use status of devise properties
« on: September 09, 2018, 07:12:59 am »
I have been searching all day for this and can't find anything in discussions and manuals. Probably a too basic question to be discussed anywhere but than again I am just starting to (try to) work with PLEG.

So what I want to do in a condition is to use the device property of the Virtual Switch - I want something to happen when the switch is on and not when it is off. In Logic Input I have set a device property for the Virtual Switch. and created a device property for the Virtual Switch and use "status". So that is my P1.

I have figured out that the status of this Switch is 0 when it is off and 1 when it is on.

Than I go to Conditions but that is where I am lost. How do I than tell the Condition to check whether the P1 is a 0 or a 1 - i.e. whether the Virtual Switch is off or on? This is the part that I can't figure out.

Thanks for your help.

Offline Don Phillips

  • Hero Member
  • *****
  • Posts: 1464
  • Karma: +41/-36
Re: PLEG > use status of devise properties
« Reply #1 on: September 09, 2018, 07:30:37 pm »
Try using a trigger, with the condition being true when the trigger is true.
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