jay (support) wrote:...How does Siri recognize a device name with a slash in it?
That's a question that, like "Do I look fat to you?" should never be answered.
However, "siri" (actually "voice to text") does understand several punctuation characters: newline, period, comma, question mark, etc., AND sometimes even "slash" In my testing "she" got the slash right about 1/2 the time. Things like a-slash-b seemed to work fairly frequently and anyway, the "/" might, in some cases, be useful in the GUI.
In this case, it is clear that the first problem was the json parser. However, it is a moot point since the "/" is not allowed in Accessory names anyway:
From
https://developer.apple.com/library/con ... abase.htmlRules for Naming Objects
The names of HomeKit objects—such as home, room, and zone objects—are recognized by Siri where indicated in this document. The following rules apply to setting names of HomeKit objects:
Names must be unique within their namespace.
The names of homes belonging to a user are in one namespace.
A home object and its containing objects are in another namespace.
A name can contain only alphanumeric, space, and apostrophe characters.
A name must start and end with an alphabetic or numeric character.
Space and apostrophe characters are ignored in comparisons (for example, home1 and home 1 are the same).
A name is not case-sensitive.