Digital Home System DHS-ZW-SNMT-01 Manual del usuario - Página 10

Navegue en línea o descargue pdf Manual del usuario para Accesorios Digital Home System DHS-ZW-SNMT-01. Digital Home System DHS-ZW-SNMT-01 14 páginas. Z-wave motion sensor

In this example the Temperature Sensor has ID = 4. Replace it with your device ID
3.
Click "Save Lua" and then SAVE in Vera and wait till new settings are saved.
10

Using Illumination Sensor in Vera Scenes

NOTE:
The sensor sleeps for the duration of the Wake Up interval, which defaults to 1800
seconds or 30 minutes. When the interval expires, it wakes up and may be pulled for
current illumination level reading by Vera.
To use temperature readings in Vera you have to use luup code under "Luup" tab of
your scene tool. It is strongly recommended to read instructions on luup and luup
codes in Vera scenes on http://wiki.micasaverde.com for more details.

Creating conditions in Vera scenes based on illumination readings

Example of luup code to stop a scene from executing if the illumination (Illumination Sensor
reading) is higher then 29.
1.
Create rst scene in Vera in standard way.
2.
Set a condition to not run the scene based on the most recent illumination reading,
as per below
New Scene -> Luup
local lul_light= luup.variable_get('urn:micasaverde-com:serviceId:LightSensor1' , 'Cur-
rentLevel' , 5)
if tonumber(lul_light) > 29 then
return false
end
In this example the Light Sensor has ID = 5. Replace it with your device ID