Skip to content

v3.8.0 Fix client naming by adding ui_device_name attribute

Choose a tag to compare

@github-actions github-actions released this 18 Apr 09:33
8f12136

Summary

Home Assistant automatically builds the friendly_name of client entities using the associated Deco device name (e.g. Study Room Deco ApSystemsEcuR).
This behavior cannot be safely overridden without breaking device grouping or HA naming conventions.

This PR introduces a new attribute to expose the original client name from the Deco API.


Changes

  • Added new attribute: ui_device_name
  • This attribute contains the raw client name without HA-generated prefixes
  • Applied to all client device tracker entities

Example

Current HA behavior:

  • friendly_name: Study Room Deco ApSystemsEcuR

New attribute:

  • ui_device_name: ApSystemsEcuR

Rationale

  • Keeps Home Assistant naming behavior intact
  • Avoids breaking device grouping (clients remain linked to Deco devices)
  • Provides a clean, stable name for UI usage (cards, templates, sorting)

Usage

Users can use the attribute in templates:

{{ state_attr(entity_id, 'ui_device_name') }}sensors.