Gnome-shell has not implemented the xss extension when running under wayland.
To support this and other platforms (Windows, Mac) we need to add more ways to detect idle. Here is a good example written in Python:
https://github.com/escaped/idle_time/blob/master/idle_time/__init__.py