hc icon indicating copy to clipboard operation
hc copied to clipboard

Accessory name shound't contain "_"

Open yangm97 opened this issue 4 years ago • 7 comments

It seems like hc converts spaces into underlines, but homekit doesn't like it. HAS actually uses spaces on names so I guess it's the way to go.

yangm97 avatar Jul 10 '19 14:07 yangm97

That's because of http://openradar.appspot.com/radar?id=4931940373233664

brutella avatar Jul 15 '19 08:07 brutella

I see. Hope it gets fixed soon, the fact home.app hates _ is actually what makes this issue a bigger problem than it should be.

Great work on the library btw, been using it flawlessly.

yangm97 avatar Jul 19 '19 02:07 yangm97

hc only replaces spaces with "_" for the published dns-sd service name. The accessory should still appear without spaces in HomeKit. Can you please check that.

brutella avatar Jan 27 '20 09:01 brutella

Last time I checked (long time ago, iOS12) it was showing up "_"s at the Home.app. Gonna try again with the latest hc version.

yangm97 avatar Jan 27 '20 17:01 yangm97

Apple Home should only show an underscore when you add the accessory to HomeKit. Once added to HomeKit, the name should be correct.

brutella avatar Feb 02 '20 19:02 brutella

Something in iOS12 may have changed recently to make this worse. Yesterday, with hc v1.2.1 I added my bridge accessory to HomeKit and it complained about the underscore in the name. It would not let me click Next unless I changed the name in the UI. This wasn't happening when I was testing a couple weeks back.

I was able to rename my bridge accessory to have hyphens instead of spaces, so that works for me.

travishaagen avatar Feb 09 '20 14:02 travishaagen

Hm, I never seen that error. I will try to reproduce it.

brutella avatar Feb 10 '20 08:02 brutella