-
-
Notifications
You must be signed in to change notification settings - Fork 5
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
Add unique_id functionality. Required for further customization in HA UI #48
Conversation
I was thinking of this as well, I have a few thoughts.
|
Thank you for your feedback.
Could one solution be to document that a "manual" unique_id has to be defined in cases of using the same on/off codes for more than one switch and in the case of a switch with several codes? In the case for a switch with several codes, the auto generation could also used simply be turned off, to force the user to define a manual unique_id? |
Am merging into testing branch for now |
agreed
I don't believe that to be the case, but would need to do further reading of the documentation.
True, will test it to be sure
Ideally we'd convert the integration to a config flow (i.e. UI based rather than yaml). Will test out a few scenarios and come back to you |
Tested the following scenarios
Was just thinking again, it is so unlikely that someone uses the more than one device in their home with the same RF code as that would be impossible to control a single device. If any issues do arise it will be easy enough to append a UUID to the unique_id. I'll add documentation to readme about added additional functionality now (icon, location etc) Thanks for the pull request @oskargert |
Great, seems like the tests worked out as expected. I agree that this is an edge case and can be solved through documentation. I'm glad I could help and contribute a little. thank you for you a good and useful component! |
I've published the new release. Have a read of the documentation and see if you think it could be improved. Thanks again. |
The documentation is good, my only comment would be that you could add the unique_id key to the configuration example and the options table, since it can be entered manually. A manually entered id would also fix the issue of keeping the same id when changing/adding the on/off codes. |
Thanks. Documentation updated commit |
Perfect, thanks for including my feedback and letting me be a small part of your project |
Very welcome, thanks for taking the lead on this one. |
Hi,
First of all, thank you for putting this together after they removed the funtionality from HA.
I've used your component for a couple of months without any problem. But I have been a little annoyed with not being able to customize the devices in the HA UI, such as putting them into a room, giving them a "nice" name and changing the default icon. To do this you need to add a unique id to each device. Because of this I decided to clone your repo and add the unique id functionality.