Emonpi Interfacers SDM120 to SDM220

I did try the code first without anything edited, but it would not read the registers

2022-08-21 13:19:50,023 ERROR SDM120 Could not read all registers
2022-08-21 13:19:50,024 INFO SDM120 Connecting to Modbus device=/dev/ttyUSB0 baud=2400

Ok,

Try reducing the number of registers read.

I have had success with using the Multiple SDM120 EmonHub config example:, I have got it to work, but changed the USB to device = /dev/ttyUSB0

https://guide.openenergymonitor.org/integrations/emonhub-interfacers/#reading-from-a-sdm120-single-phase-meter

This is what I have gotten to work with 12 feeds

[[SDM120]]
    Type = EmonHubMinimalModbusInterfacer
    [[[init_settings]]]
        device = /dev/ttyUSB0
        baud = 2400
    [[[runtimesettings]]]
        pubchannels = ToEmonCMS,
        read_interval = 10
        nodename = sdm120
        # prefix = sdm_
        [[[[meters]]]]
            [[[[[sdm120a]]]]]
                address = 1
                registers = 0,6,12,18,30,70,72,74,76,78,342,344
                names = V,I,P,VA,PF,FR,EI,EE,RI,ER,TA,TR
                precision = 2,3,1,1,3,3,3,3,3,3,3,3
            [[[[[sdm120b]]]]]
                address = 2
                registers = 0,6,12,18,30,70,72,74,76
                names = V,I,P,VA,PF,FR,EI,EE,RI
                precision = 2,3,1,1,3,3,3,3,3

 

[Formatted for presentation – Moderator (RW)]

All feeds re-labelled, also I have a new SDM120 coming from China for my off grid setup, so hopefully I only need to change the address of the new one to number 2, thanks greatly borpin, I have learnt a little bit more from this exercise