First, there's a built-in driver for the Zooz ZSE11 "Q Sensor" that you may wish to consider using (at the moment, it has problems with motion, but I imagine those will be fixed soon). However, if you want something it doesn't provide or want to customize the driver, here's one I wrote for this device. It provides access to all parameters described in the manual, should accommodate either USB or battery power (as noted: don't switch it up after installation, or at least don't switch USB to battery). Other than that, it should work as expected, providing attributes for motion, temperature, humidity, lux, and tamper (which is apparently just moving the sensor).
Currently only on GitHub. May add it to HPM if there is interest:
(To install, follow the usual steps: copy and paste code from "Raw" link into "Drivers Code.")