{"categories":[{"label":"Home Automation","url":"https://skillfed.io/packages/category/home-automation"}],"enrichment":{"capability":"Provides a Python interface to read and write data from Huawei SUN2000 inverters and LUNA2000 batteries over Modbus-TCP or Modbus-RTU, with support for batched register reads, unit conversion, and installer-level access.","skillfed_tags":["solar-energy","modbus-protocol","home-automation"],"use_cases":["Monitor real-time power output and voltage from a SUN2000 inverter in a home solar installation","Read battery state-of-charge and temperature from a LUNA2000 battery connected to an inverter","Integrate Huawei solar data into a Home Assistant automation or custom monitoring dashboard","Write battery charge/discharge parameters or other settings to a Huawei device via Modbus","Build a local energy management system that queries multiple inverter registers in a single batch operation"],"what_it_does":"huawei-solar is a Python library that abstracts the Modbus protocol to communicate with Huawei solar inverters (SUN2000), batteries (LUNA2000), and related devices. It provides both a low-level Modbus client for direct register access and a high-level device interface that handles register batching, unit conversion, and authentication. The library was originally developed to support Home Assistant integration but works as a standalone tool for any application needing to monitor or control Huawei solar equipment over local Modbus-TCP (via SDongle, EMMA, or WiFi) or Modbus-RTU (via RS485 serial connection).\n\nThe package depends only on tmodbus for Modbus protocol handling and supports modern Python versions (3.12, 3.13, 3.14). It includes features for reading optimizer data, writing battery parameters, and performing installer-level login sequences. The main constraint is that Huawei devices allow only one active connection at a time, so you must ensure no other client is attempting to connect while your session is active.","worth_installing":"Yes, if you own or manage Huawei SUN2000 inverters or LUNA2000 batteries and need local Modbus access. The package is actively maintained, has no known vulnerabilities, low install friction, and is marked Production/Stable. The AGPL v3 license is permissive for local use but requires source disclosure if you deploy modified versions as a network service. Not suitable if you need Python versions below 3.12."},"id":"huawei-solar","links":{"html":"https://skillfed.io/packages/huawei-solar","md":"https://skillfed.io/packages/huawei-solar.md","pypi":"https://pypi.org/project/huawei-solar/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2026-08-11","license_spdx":null,"license_treatment":"agpl","name":"huawei-solar","python_support":"supports_current","summary":"A Python wrapper for the Huawei Inverter modbus TCP API"},"popularity":{"monthly_downloads":135982,"position":11410,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"3.0.7"}
