ZHA change domain name of a device

Hi there

i have some switches and ZHA has set them up as a lights, how can change it from a light to a switch?

I dont want to use template, etc. as i have script that read whats lights are on, etc

regards
jeremy