Is it possible to detect idle time on Plasma 6 widgets on Wayland?

Hi! I’m developing a break reminder widget and I need to detect how much time the user has been away from the computer or have a signal if the user resumes activity.

I found this post of a developer which developed a similar widget 10 years ago. He ended up solving the same problem with a DataSource. I tried doing the same using Plasma5Support:

Plasma5Support.DataSource {
        id: idle_src
        engine: "powermanagement"
        interval: 1000
        connectedSources: ["UserActivity"]
        onNewData: {
            console.log(idle_src.data.UserActivity.IdleTime)
        }
    }

However, I get the following error:

kf5idletime_wayland: This plugin does not support polling idle time

Is there any other way to get signals or idle time? Is this bug on wayland being worked on?