Skip to content

[Bug]: Error occurred loading flow for integration huawei_solar: cannot import name 'ModbusRequest' from 'pymodbus.pdu' (/usr/local/lib/python3.12/site-packages/pymodbus/pdu/__init__.py) #866

@Lk1975

Description

@Lk1975

Describe the issue

Installed integration for the first time in last stable version, and gives error "setup failed for custom integration 'huawei_solar': Unable to import component: No module named 'pymodbus.message'". Tried to uninstall and install using beta version and gives the error in the object. I have another integration using modbus, koolnova-BMS-Integration that is working fine with a separate dongle.

Describe your Huawei Solar Setup

Inverter Type:
Inverter Firmware version:
sDongle present: Yes / No
sDongle Type: sDongleA-05 (WiFi / Ethernet) / SDongleA-03 (4G)
sDongle Connectivitiy: WiFi / Ethernet / 4G
sDongle Firmware:
Power meter present: three phase / single phase / no
Optimizers Present: Yes / No
Battery: LUNA2000-SO xxkWh / LUNA2000-S1 xxkWh (Released 2024) / LG RESU xxkWh / None
Battery Firmware version:
Huawei Solar integration version:

How do you connect to the inverter?

Over serial, with a serial-to-USB stick

Upload your Diagnostics File

Drag & Drop your Diagnostics File here.

Upload your relevant debug logs

Registratore: homeassistant.config_entries
Fonte: config_entries.py:3249
Prima occorrenza: 21:09:13 (1 occorrenze)
Ultima registrazione: 21:09:13

Error occurred loading flow for integration huawei_solar: No module named 'pymodbus.message'

Please confirm the following:

  • I'm running the latest release of Home Assistant.
  • I'm running the latest release of this integration.
  • I did not find an existing issue describing this problem.
  • I did upload the diagnostics-file that I could retrieve from the 'Devices & Services Page'
  • I did upload the relevant debug logs (via 'Enable Debug Logging'-feature or by manually configuring HA logging)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions