Variable as a device type?

Is there any kind of device type that is a variable that a value can be entered from the thing list?

Elaborate what you are trying to do…