Skip to content

set_grid_delivery fails with data['mode'] = None in 2.0.6-pre.10 #158

@MildaZX10

Description

@MildaZX10

Hi,

after updating to version 2.0.6-pre.10 the service oig_cloud.set_grid_delivery stopped working.

The problem occurs both when calling the service from:

  • Home Assistant UI (Developer tools → Services)
  • YAML automations/scripts

So this is not a YAML syntax issue.

Battery Box settings can still be changed normally in:

  • OIG web portal
  • OIG mobile application

This confirms that:

  • the Battery Box is working
  • OIG Cloud API is reachable
  • account credentials are valid

Telemetry works correctly in Home Assistant and sensors update normally, for example:

sensor.oig_2201232111_invertor_prm1_p_max_feed_grid
sensor.oig_2201232111_invertor_prms_to_grid

But calling the service always fails.

Example service call:

action: oig_cloud.set_grid_delivery
data:
mode: limited
limit: 4000
acknowledgement: true
warning: true

Error message:

not a valid value for dictionary value @ data['mode']. Got None

Additional info:

Home Assistant version: (your HA version)
Integration version: 2.0.6-pre.10

Configured devices in HA:

  • ČEZ Battery Box 2201232111
  • Analytics & Predictions 2201232111
  • ServiceShield 2201232111

It looks like the service parameter mode is not being passed correctly internally, resulting in None.

The same error happens when the service is triggered directly from the UI.

Before updating to 2.0.6-pre.10 the automation controlling grid export limits worked correctly.

Thanks for your work on this integration.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions