Using @JasonJoel’s community driver you can use a rule to change occupancy vs manual. The stock driver only allows this via preference update which you cannot change via rule.
So for example you could have it set to occupancy during day but then change to manual at night so it doesn’t come on with motion. He has drivers for both the switch and dimmer but since you mentioned switch here is a link: