Posts

Post not yet marked as solved
1 Replies
562 Views
HiI am developping an application based on the HAP Non-Commercial spec, and I would like to validate the JSON that is sent by my app to the HAP Controller on IOS. Is there a tool or website that can do this?From my point of view I have followed the spec to the letter, still, the Controller is nicely asking my app to remove the verified pairing because there seems to be a problem with the JSON returned after a GET to /accessories of my app. It drives me crazy because I fail to see where the JSON that I generate is troublesome (the JSON itself it validated, so it has to do with the contents itself)Any help is appreciatedThanks
Posted
by kgod.
Last updated
.
Post not yet marked as solved
1 Replies
276 Views
When a JSON is response is sent to the Home App / HAP Controller as response to a GET /accessories, and when Services contain the optional Name Characteristic, then the Home App initially displays the name of the newly added accessories (and services) correctly in the UI, but as soon as the first EVENT is received by the Home App for a Characteristic then the app automatically renames the Service that Characteric belong to, to a generic name.For example, a Light Bulb Service with a Name Characteric holding the value "My Lamp blablah", will be renamed "Ligh Bulb", thereby overriding the set name provided by the HAP Accessory Server, as soon as an EVENT is sent for the On Characteristic for that LighBulbSince there is no Event permission on the Name Characteristic, there is no way for the HAP Accessory Server to "re-set" that Service's name to its original value.When the Home App is doing a subsequent GET /Accessories (e.g. after restarting the iOS client or alike), and the original information is sent back, then the Home App is simply discarding the value of the Name Characteristic that is part of the response to /AccessoriesIs this by design, or just a plain bug?
Posted
by kgod.
Last updated
.