Mike Maxwell has a very cool universal device type which can make one device report as a different kind:
So your open/close sensor can instead report as an on/off switch.