-
-
Notifications
You must be signed in to change notification settings - Fork 630
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
Special Characters in Name #1008
Comments
This has always been the case and have code to validate names on my stuff https://developer.apple.com/design/human-interface-guidelines/homekit Use only alphanumeric, space, and apostrophe characters. I have a function like this
|
HomeKit also chokes on a Manufacturer Name with a |
We might extend the sanity checks we already have in I'm not sure if it makes sense to automatically alter names(?). We could offer some help if they attempt it in Homebridge UI, but we can't really prevent it, if they configure accessory names via the config themselves. |
@Supereg Am thinking your recommendation to extend Accessory.validateAccessory with the check creating a log entry makes the most sense. Something similar to the existing checks. Give me a few days, and I will submit a pull request. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Not stale |
I wonder if the current implementation is too restrictive, as dash or punctuation are a) not uncommon and b) supported by HomeKit. Rolling out this change as is may result in a lot of confusion (and many people goint to rework their setup, even if it is not needed). |
@muenzpraeger see above #1008 (comment) |
I'm aware of the HIG reference. Now, I've at least 40 different accessories that have a special character ( I'd say it's ok for doing a validation check when a new accessory is created. Not for existing devices. Alternatively the option should be available to disable this warning. |
@muenzpraeger What happens when you edit the name in the Home app ? I found that I couldn't save the edited name, hence us adding the warning. |
Works for me (at least with special_characters.mov |
Analysis
@Supereg With the recent IOS versions I have noticed that accessory names are now being checked for special characters or emoji, and am thinking that we should add an error or warning message when these are being used. I was using
(
and)
, but there are likely others. I did find that-
did not trigger the messageAm wondering if this is a potential trigger of this issue - homebridge/homebridge#3373 (comment)
Expected Behavior
An error or warning message to be logged when a accessory name contains an unsupported character.
Steps To Reproduce
Create an accessory with invalid character
Logs
Configuration
not needed
Environment
Process Supervisor
hb-service
Additional Context
No response
The text was updated successfully, but these errors were encountered: