New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adds support for unique id #576
Conversation
🤔 when we add value_template to Sensor and BinarySensor users could be tempted to create multiple Entities with the same state_address but different value_templates. This would result in UID duplicates. |
@farmio How should we continue here? For the value_template stuff - we could just add the value template to the unique_id for sensors |
d883471
to
e31ee43
Compare
I adjusted the unique id for scenes to include the scene number. As the value_template stuff has been declined by HA upstream I would not worry about it too much. |
Big thank you @marvin-w! I can finally start using the home assistant areas with KNX :) |
Description
This PR adds experimental (opt-in) support for unique ids within the KNX platform. Since XKNX natively does not have the ability to provide unique ids we created our own ones based on data that we think might be unique across an installation.
This PR is tested and working correctly on my local test setup:
You can see that with the unique_id feature turned on you can set customize the entity to your liking.
Type of change
Checklist: