Change type of entity

Good morning HA,
I get a MHCozy relay-board (Zigbee version), works fine but the channels were detected by HA as light.xxxx.
I don’t want switch lamps, I want switch motors to open/close the windows of my wintergarden.
Ok, it works but the code looks little strange.
I found a helper, which allows to change a ‘switch’ entity to a ‘light’ type entity for instance, but I didn’t find anything to do this other way round.
Have anybody out there an idea to deal with that or modify the MHCozy boards to appear as 'switch’es and so can than transformed into what ever we want with the helper described above?

Thanks fpr helping

With best regards

Gerhard

Hello Gerhard Kreuzer,

That was a VERY easy search. Did you read the site FAQ?

Dear Sir Goodenough,
your answer wasn’t good enough, cause I wrote, that I found a way to convert a ‘switch’ to lets say a ‘light’, but I have a ‘light’ (MHCozy boards exporting this kind of entities) and want convert to ‘switch’.

With best regards

Gerhard

You need to make a template of the entity you want, like a template switch, a template sensor, a template light and so on.
Here is the link for a template switch.

Thanks WallyR,

give it a try tonight.

With best regards

Gerhard