Thousands of Happy Smart Home Customers

But don’t just take our word for it...

We offer great products & great knowledge all backed up with great service - and our customers agree!

We’re very proud of our independent Excellent Trustpilot rating, backed up by the many repeat customers we’ve been supporting for years.


Read More


World-Class, Industry-Leading Technical Support - Forever Free

You’ll always have FREE access to our technical knowledgebase, application guides, YouTube tutorials & Customer Services, as well as all other online resources, help, white papers and articles.

If none of these answer your query you can also raise a ticket and get direct access to our team of smart home specialists for for assistance.


Access to technical specialists
100’s of in-depth help resources
Video guides via YouTube channel
Blog articles with product reviews & test results


The Vesternet Promise

As Founder & CEO of Vesternet, I personally guarantee your 100% satisfaction on any purchase.

I’d never want you to be unhappy with something you buy from us, so here’s my promise - you can return any unused products within 365 days. If you have problems with a new purchase, our support team will work with you to resolve. And if you still can’t get it working then you can return it within 14 days for replacement or refund. For full information take a look at our full returns policy.

In addition, here’s my personal email should you ever have any problems or feedback:

We’re not just a shop, we’re with you all the way on building your smart home.


Using PLEG to activate lights based on light level

This guide shows how to use the PLEG plugin to control a light based on the ambient light level detected by a Z-Wave light sensor.

PLEG is a plugin for VERA that enables you to more easily create complex scenes than is possible in the standard VERA scene editor.

Project Aim

The aim of this project is to simply control a light based on the ambient light level.

  • Turn light on when the ambient level is below a pre-set level
  • Turn light off when the ambient level is above a pre-set level
  • For this example we've used the Philio 4-in-1 sensor, but you can also use the Aeon MultiSensor or Express Controls EZMotion
  • To control the light we have used a TKB On/Off wall plug, but you could use any plug, relay or dimmer

PLEG Scene

When explaining PLEG scenes people use a very simple notation to show show exactly what is used in each section of the PLEG scene. In this example we will use the simple notation and show how this is added to PLEG.

Device Properties
Name Device Name Device Variable
LightLevel Office Light Sensor CurrentLevel
Name Expression
LightOff LightLevel > 20
LightOn LightLevel < 15
Actions for Condition: LightOff


Device Action
Office Lamp(TKB) Off
Actions for Condition: LightOn


Device Action
Office Lamp(TKB) On

Creating the Scene in PLEG

Input - Device Properties

  • In the VERA UI, click on the PLEG's 'Wrench' Icon
  • Go to the Inputs tab and select Device Properties
  • Select the Light Sensor device from the drop-down - in this example 'Office Light Sensor'
  • Select the 'device property' to use as the input - in this example 'CurrentLevel'
  • Click the 'Create' button
  • Click 'Edit' and give the Input a user friendly name (LightLevel)
  • Click 'Accept'

PLEG Inputs - Device Properties in VERAFigure 1: PLEG Inputs - Device Properties in VERA.


  • Go to the Conditions tab
  • Click the 'Add Row' button
  • Give the condition a user friendly name - in this example 'LightOff'
  • Enter the Condition Expression - in this example 'LightLevel > 20'
  • Click the 'Add Row' button and add the second condition

PLEG Conditions in VERAFigure 2: PLEG Conditions in VERA.


  • Go to the Actions tab
  • Select the 'Condition' from the drop-down - in this example 'LightOff'
  • Select the device and action - in this case the Office Lamp TKB to turn Off
    Note: This is the same as selecting device actions in a normal VERA scene
  • Click 'FINISHED' at the top of the Screen
  • Repeat for the other 'Actions'

PLEG Actions in VERAFigure 3: PLEG Actions in VERA.


  • When complete, close the PLEG window
  • Click the red 'SAVE' button at the top of the screen

Using PLEG

For this, and all PLEG scenes, to run, you must have PLEG 'Armed'.

PLEG ArmedFigure 4: PLEG Armed.

For further information take a look at the excellent Introduction Guide to PLEG - VERA Plugin and Introduction Guide to PLTS - VERA Plugin.

Related Information


Copyright Vesternet 2014

Updated: 08/03/14

Please wait...

Item(s) Added Continue shopping or View cart & checkout
Continue shopping or View cart & checkout