Device with number entity, can I convert it?

Hi guys. I have some devices (zwave zd2102 door sensor) with some entities.
One entity is linked to the classic reed, on off.
Another entity is a number and is linked to a secondary input of the same device: with contact closed it assume 0 value, with contact open it assume 255 value (because the device itself send the values… it’s not a configuration ‘fault’) … nothing more.
Obviously this is a pain… because tipically the secondary input is a second window or door (in my case shutters).

Yes, I know that I can create a template entity to achieve the result… but in that way I obtain a duplicate entity for each device and I loose the “link” with the device itself (or there’s a way to join a template entity to a device??).

Suggestions?? Way to create something inside the device configuration within ZwaveJS to let home assistant to see a new entity following my needs?

Thanks!

A template binary sensor is the only way.

Ok. And this is not a real problem.
At this point… Can I link my new template binary to my single device?
So looking my device… I see all the device entities and my custom binary template.
More that one year ago, if I correctly remember, it was not possibile. After one year of developments and many new things… there’s a way to associate a template entity to a device?

No.

Thanks for your reply.
I’ll try to suggest to implement something similar.
I think it’s useful that all the entities that refer to a device could be found in the device page.

bye!