Skip to content

Explore usage of new device_attrs endpoints #107

@thomluther

Description

@thomluther

There are new endpoints with Solarbank 2 / Smartmeter / Smart plugs support that needs to be explored for capability and usability:

print(json.dumps((await myapi.request("post", "power_service/v1/app/device/get_device_attrs",json={"device_sn": deviceSn, "attributes": []})), indent=2))
print(json.dumps((await myapi.request("post", "power_service/v1/app/device/set_device_attrs",json={"device_sn": deviceSn, "attributes": []})), indent=2))

The get_device_attrs endpoint is included now in the export_system tool, but it is not clear which keywords can/should be specified for the mandatory attributes list.

  • Will an empty list export all attributes supported by a device? => NO, only valid device attributes will be returned, but attributes are unknown
  • Can the set_device_attrs endpoint be used to modify a supported attribute? Probably, if the attribute is known and changeable

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions