RFXTRX motion sensor recognized as light

My COCO/ KAKU motion sensor is only recognized as a light and not as a switch. It uses the Lighting2/AC protocol.

How can I use / show this as a switch in the front end?

note to self: forgot to include switch.yaml in my configuration.