I tried following script:
Code: Select all
zway.devices[14].SensorBinary.data[1].bind
(
function()
{
if (zway.devices[14].SensorMultilevel.data[3].val.value <= 100)
zway.devices[3].instances[0].SwitchBinary.Set(1);
zway.devices[3].instances[0].SwitchBinary.Set(0);
}
)
1. the script fires 2 times - first at te Moment the sensor detects a Motion and second a time period after detections (sensor Parameter no 3: Timeout period of no-motion detected before the Multisensor sends the OFF state after being triggered). The script causes firing for rising and falling edge, but with Parameter set to 1 second it is not really a Problem.
2. it ignites even if the value for the brightness is less than 100 Lux. I don't want to Switch On the lights on broad daylight.
Code: Select all
http://192.168.178.46:8083/JS/Run/zway.devices[14].SensorMultilevel.data[3].val.value
What is wrong?
Uwe