Skip to content

add model and serial to device listing#25

Merged
mdonoughe merged 1 commit into
gurumitts:devfrom
mdonoughe:registry
May 5, 2018
Merged

add model and serial to device listing#25
mdonoughe merged 1 commit into
gurumitts:devfrom
mdonoughe:registry

Conversation

@mdonoughe
Copy link
Copy Markdown
Collaborator

In order to support the Home Assistant Entity Registry we need to be able to construct a stable identifier value for every device. I don't know the details of how Lutron issues serial numbers, but I assume a combination of model ID and serial number will be unique within every home.

@mdonoughe mdonoughe requested a review from gurumitts April 21, 2018 20:35
@mdonoughe
Copy link
Copy Markdown
Collaborator Author

Related: home-assistant/core#14013

@mhofman
Copy link
Copy Markdown

mhofman commented Apr 23, 2018

Wondering, isn't the device ID already stable ?

Edit: of course stable within this specific bridge, which means it'd have to be a combination of bridge identifier and device ID.

@mdonoughe
Copy link
Copy Markdown
Collaborator Author

There are probably a few ways it could change, such as if you got a new bridge or did a factory reset or maybe even some firmware updates. The model and serial number of the switches themselves should be more reliable.

@mdonoughe mdonoughe merged commit 4d86eef into gurumitts:dev May 5, 2018
@mdonoughe mdonoughe deleted the registry branch July 20, 2018 03:37
@mdonoughe mdonoughe added this to the v0.5.1 milestone Jul 20, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants