Skip to content

Set the name of the 'main' Device #3055

@k-butz

Description

@k-butz

Is your feature improvement request related to a problem? Please describe.
I would like to use a serial-number as my technical device-id, but use a different/more meaningful name for the Device in Cumulocity.
For child-devices and services this works perfectly fine with specifying different @id and name fields in the registration messages. But I can't find a way to do the same for the main-device - here it always uses the CN of the certificate.
Once registered, thin-edge.io disallows to set the name via the tedge mqtt pub "te/device/main///twin/name" or the /etc/tedge/device/inventory.json (as documented here)

Describe the solution you'd like
I would like to be able to set a different name than ID for a main device, e.g. via a new tedge config field device.name in same manner as done with device.type.

Describe alternatives you've considered
Tried setting the name via:

  • tedge mqtt pub "te/device/main///twin/name" '"my-name"'
  • adding name to /etc/tedge/device/inventory.json
  • sending a registration message stating different id and name field (though I don't think that is possible for a main device).

Metadata

Metadata

Assignees

No one assigned

    Labels

    improvementUser valuetheme:c8yTheme: Cumulocity related topicstheme:registrationTheme: Device registration and device certificate related topics

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions