Create Device from existing Device (clone)

Hi,

i want to create a device based on an existing device rather than create a new one. The new device looks a lot like the existing one and just needs minor changes.

But, I have a hard time correcting all the naming and references when just copying a folder.

My question is therefore: how to best clone a device for editing and adding a new device..

Hi and welcome to the Community!

If your new device is from a manufacturer with an already existing implementation, you could do it just like it was done for Janitza and only add a new Java package inside the existing bundle:

If it’s a new bundle, please use the guide on “implementing a device” (Implementing a device :: Open Energy Management System). This way you avoid all the renaming trouble and can still copy and paste certain parts from other implementations.

Can you please share which device you are working on, so we avoid duplicated work in the community?

Regards,
Stefan