Would like to request assistance in programming an Aeotec MultiSensor to sense both Luminance and motion. If I use the if statement and try to turn a light on with both motion and luminance less than 50 lux, the light turns on but as soon as the multisensor sees the light the value changes from the luminance and therefore will not work for an occupancy detector. The if statement goes false as soon as the value increases above 50 lux. The only control I have of this value is the time between sending the report from the z wave device which I would like to keep at 30 seconds as I am using the USB power and not concerned about battery life.
Also have a question regarding the Then statement. Is there any way to stop the then command once it has been started, such as when used in a timer situation when it gets started because no motion was detected but during the wait time of say 2 minutes, motion is again detected and I wish to keep the lights on until no motion is detected?
If anyone has a good program for occupancy detection utilizing an Aeotec MultiSensor, I would appreciate seeing it.
if
control z sensor is switched on
and status z sensor is < 50 lux
then
set kitchen lights on
else
Thanks,
Frank