Undefined or Wildcard preference

In a smartapp is there a way to do an input preference that can select any type of device rather than a certain capability? I realize within the body of the app I would have to check for what device it is.

capability.sensor and capability.actuator will get you close. There isn’t a true wildcard though.