You might want to check out Jason Bottjen’s (@JasonJoel’s) component Smart Motion Dimmer driver for this. He’s also developed a similar component driver for the 26931. I have both, and use his excellent drivers on both. They separate the motion sensor and the Switch/Dimmer into conceptually separate child devices, and also expose the various controls for use in Rules.
Both can be installed through Hubitat Package Manager (“HPM”) an excellent community-contributed app by Dominic Meglio (@dman2306) that you might not be aware of if you are new: