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


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

This is what I have gotten to work with 12 feeds

    Type = EmonHubMinimalModbusInterfacer
        device = /dev/ttyUSB0
        baud = 2400
        pubchannels = ToEmonCMS,
        read_interval = 10
        nodename = sdm120
        # prefix = sdm_
                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
                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