Perhaps make 1 plugin out of it with a configuration setting if it is for a 1 Phase or 3 Phase meter? Seems easier to maintain.
Perhaps the plugin can figure it out itself if it is connected to a 1 or 3 Phase meter based on the received info?
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Ideally the plugin should find out what type of meter the user has installed. When that is too difficult to discover from the response of the meter you can add a plugin configuration option to set the meter type by the user.
The user should know if it has a 1 phase or 3 phase meter installed so there could be a plugin parameter mode-x that states the meter phases (1 or 3). And based on that parameter the plugin creates and updates Domoticz devices for a 1 or 3 phase meter.
But if that is too difficult to implement it is fine to have 2 different plugins.... You asked for suggestions
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Additional, what are settings mode 3 and 4 for? There is no explanation in the readme. And it seems not logical settings. So perhaps remove them (or use 1 mode to use it as 1/3 phase type )
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
You are right, I copied most of the code from the P1 device, that has these these Mode 3 and 4. The code is there still as comment, but it should be made clear in the README.