Huawei Solar
A Ruby library for connect to Huawei Solar inverters using Modbus TCP.
Status
:warning: This project is still experimental, use with caution!
PR are welcome to increase the property list in data/registers.yml
Example
require "huawei_solar"
hs = HuaweiSolar.new("192.168.0.110", 502)
hs.read(:inverter_model)
hs.read(:inverter_input_power)
hs.read(:inverter_input_power, unit: true)
hs.read(%i[inverter_output_power inverter_daily_energy meter_grid_power])
hs.read(%i[inverter_output_power inverter_daily_energy meter_grid_power], units: true)
hs.read(%i[inverter_output_power inverter_daily_energy meter_grid_power], units: true, keys: true)
hs.read_all
hs.read_all(units: true)
hs.read_all(keys: true)
hs.close
License
Copyright © 2023 Javier Aranda. Released under the terms of the MIT license.