Not sure, how you connected your sensor.
I connected mine with zigbee2mqtt, which works like charm.
If you do as well, I recommend you this post: Zigbee2mqtt revisited: No more ugly transformations
You get rid of the transformation files, which makes the life much easier. There is also the correct setup for the motion sensors listed.