Skip to content

Improvements for friendly names? #5

@sunburntastronomer

Description

@sunburntastronomer

Hi Lars

While the automatic friendly names works great, I have names that aren't so friendly on the diagram, as they are bit long (although that is useful elsewhere in HA). So I have the following card YAML as described in the README. This is just an excerpt - there are many more devices.

device_coordinates:
  xx:xx:ac:ff:fe:6b:7f:xx:
    x: 649
    y: 455
  xx:xx:38:6c:62:d2:92:xx:
    x: 336
    y: 243
  xx:xx:38:1c:c5:0e:33:xx:
    x: 444
    y: 126
  xx:xx:38:a8:bc:d8:e8:xx:
    x: 336
    y: 186

friendly_names:
  xx:xx:ac:ff:fe:6b:7f:xx: ZBT-2
  xx:xx:38:6c:62:d2:92:xx: Kitchen door (L)
  xx:xx:38:1c:c5:0e:33:xx: Kitchen window
  xx:xx:38:a8:bc:d8:e8:xx: Kitchen door (R)

However, it is painful trying to manage all these entries using the MAC addresses. I was thinking it might be a lot easier if the format was like this? Not sure if there is a technical reason for not doing this, but thought I'd suggest to see if that makes sense to you Lars.

device_coordinates:
  xx:xx:ac:ff:fe:6b:7f:xx:
    x: 649
    y: 455
    friendly_name: ZBT-2
  xx:xx:38:6c:62:d2:92:xx:
    x: 336
    y: 243
    friendly_name: Kitchen door (L)
  xx:xx:38:1c:c5:0e:33:xx:
    x: 444
    y: 126
    friendly_name: Kitchen window
  xx:xx:38:a8:bc:d8:e8:xx:
    x: 336
    y: 186
    friendly_name: Kitchen door (R)

This would also make it easier to manage the list of MACs, as any comments get dropped by the editors.

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