Skip to content

A simple modbus client reader for solaredge inverters & meters

License

Notifications You must be signed in to change notification settings

henry2man/solaredge-modbus-client2

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

solaredge-modbus-client

A simple modbus client reader for solaredge inverters & meters

Thanks to Brad Slattman for the original work in https://github.com/slattman/solaredge-modbus-client

Forked in order to debug & optimize register reads

Example usage

let SolarEdgeModbusClient2 = require('solaredge-modbus-client2')

let solar = new SolarEdgeModbusClient2({
    host: "192.168.0.20",
    port: 502
})

// INV means "Inverter"
// MET means "Meter", like 
const RELEVANT_DATA = [
        'INV_I_AC_Power',
        'INV_I_AC_Power_SF',
        'INV_I_AC_Energy_WH',
        'INV_I_AC_Energy_WH_SF',
        'INV_I_Temp_Sink',
        'INV_I_Temp_SF',
        'INV_I_Status',
        'INV_I_Status_Vendor',
        'MET_M_AC_Power',
        'MET_M_AC_Power_SF',
        'MET_M_Exported',
        'MET_M_Imported',
        'MET_M_Energy_W_SF'
    ]


solar.getData(RELEVANT_DATA).then((data) => {
   
    let results = []

    data.map(result => {
            console.log(result.name + " - " + result.description + ": " + result.value)
    })

    solar.socket.destroy();

})

🤘

About

A simple modbus client reader for solaredge inverters & meters

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%