Skip to content

[Bug]: Active power control services broken #736

@Thomsen-79

Description

@Thomsen-79

Describe the issue

unable to Limit the power fed to the grid in homeassistant

Describe your Huawei Solar Setup

Inverter Type: 5ktl-m1 and 15ktl-m2
Inverter Firmware version: V100R001C00SPC164
sDongle present: Yes
sDongle Type: sDongleA-05 (WiFi / Ethernet)
sDongle Connectivitiy: WiFi
sDongle Firmware: V200R022C10SPC114
Power meter present: three phase - YES
Optimizers Present: No
Battery: None
Battery Firmware version:
Huawei Solar integration version:

How do you connect to the inverter?

Via the SDongle, wireless connection

Upload your Diagnostics File

Drag & Drop your Diagnostics File here.
config_entry-huawei_solar-78aec80e4426a533758e89cc36aa70fa.json

Upload your relevant debug logs

Logger: homeassistant.components.websocket_api.http.connection
Kilde: components/websocket_api/commands.py:241
integration: Home Assistant WebSocket API (dokumentation, problemer)
Første forekomst: 10.35.44 (44 forekomster)
Senest logget: 10.39.14

[547383337328] Unexpected exception
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 241, in handle_call_service
    response = await hass.services.async_call(
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/core.py", line 2741, in async_call
    response_data = await coro
                    ^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/core.py", line 2784, in _execute_service
    return await target(service_call)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/huawei_solar/services.py", line 452, in set_maximum_feed_grid_power
    bridge, uc = get_inverter_bridge(hass, service_call)
    ^^^^^^^^^^
TypeError: cannot unpack non-iterable HuaweiSolarBridge object

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