Skip to content

genericmiot: handle duplicate types #1692

@rytilahti

Description

@rytilahti

It is possible that two siids/services have the same "name" component in the urn, for example, the schema for yeelink.switch.sw1 defines these two sharing the same urn:

            "iid": 2,
            "type": "urn:miot-spec-v2:service:switch:0000780C:yeelink-sw1:1:0000C809",
            "description": "First Switch Service",

and

            "iid": 3,
            "type": "urn:miot-spec-v2:service:switch:0000780C:yeelink-sw1:1:0000C809",
            "description": "Second Switch Service",

that have same properties. As the id for properties is currently the combination of <name> (here switch), the latter overwrites the former.

This is similar to the actions (e.g., reset filter on some vacuums) which should also be handled somehow, maybe just adding a suffix?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions