Room Occupancy using ZSE18

Was playing around with the Zooz ZSE18 Motion detector to use as a detector of room occupancy. I liked the actual device. It is small, and its magnetic mounting is quite flexible. I particularly like that it can be powered by 5v USB cable.

At first I set it up to activate a scene to turn on a lamp when motion was detected and turn it off when motion was clear (safe). It was on a 30 second cycle, but the net effect was once it detected motion and turned the light on, it pretty much ignored movement until it was clear, and turned the light off, only to discover motion again within 30 seconds. Not really suitable for maintaining a room-occupied state.

I finally settled on using this scene when motion was detected…


(I hope that uploaded an image)

It sets a variable to TRUE, and then delays for 10 minutes before resetting it to FALSE. Since the scene is automatic and can be interrupted, any additional motion detection will restart the scene before it resets the variable to FALSE.

Then two other automatic scenes are triggered by the variable.
One to turn the light on if TRUE, the other to turn the light off if FALSE.

Now the light stays on for 10 minutes of no motion, before running the room unoccupied scene executes, turning the light off.

I am a little concerned about excessive History entries.
I configured the ZSE18 to not make history entries, but the motion detected scene does make an entry, every 30 seconds if the room is occupied. I don’t know if there is a way to tell a scene to not make a history entry, and I don’t know if excessive history entries are an issue.