Change type of a physical device (switch)

I would like to use a standard switch SwitchPower1 to use as a motion detector.

With the reasons.

  • the switch is triggered by a real motion detector
  • i want to avoid the switch is beeing “used” via the z-wave network in order to ensure the status it reflects is always the real hardware status.

The most simple aproach would be to just change the implementation to a MotionSensor
But does it still work then ?

Another option would be to sort of “lock” the device from beeing controlled via the network.

Does anyone knows how this can be accomplished ?