you need a DTH for a virtual device which is seen as both a switch and a sensor.
See the community FAQ, use the DTH in that FAQ, and follow the instructions exactly and you should be all set. ( Don’t skip any steps even if you think you’ve already done them previously. They have to be done in a specific order.)