You should get a debug log to see what’s happening. My first guess is that the device hasn’t woken up - you need to wake it up manually, with it close to the controller so that the controller can initialise it. It should then generate an XML for the node in the userdata/zwave folder.
Battery devices are a little complex unfortunately…
Oh my goodness you were right, will have to read a lot more since i want to use motion sensor as an alarm system…but thanks for the tips! it is definitely working now
The device hasn’t woken up - you need to wake it up manually, with it close to the controller so that the controller can initialise it. So bring it close and press a few time on the button inside the sensor to wake it up