简体   繁体   English

Apple HomeKit配件类型

[英]Apple HomeKit Accessory Type

I am just understanding Apple HomeKit for building an demo app. 我只是了解Apple HomeKit来构建演示应用程序。
I see there are few predefined accessory types are given by Apple. 我看到Apple提供的预定义配件类型很少。
Like Switch, Fan and Thermostats etc. 像开关,风扇和恒温器等。

What if I want to have some new type of accessory, which is not listed by Apple? 如果我想要一些Apple未列出的新型附件怎么办? How do I create this new accessory (I know that this new accessory need to be manufactured by a Hardware manufacturer, and for that it needs to be registered as apple device manufacturer)? 如何创建此新配件(我知道此新配件需要由硬件制造商制造,并且需要将其注册为Apple设备制造商)?

Does apple allow to create new accessory type? 苹果是否允许创建新的配件类型?

You almost answered the question yourself. 您几乎自己回答了这个问题。 In order for a hardware to be classified as an 'HMAccessory', the hardware needs to be 'HomeKit' certified (see MFi Program . 为了将硬件分类为“ HMAccessory”,硬件需要经过“ HomeKit”认证(请参阅MFi程序)

The hardware manufacturing vendor will complete the MFi licensing procedure - in the process defining the accessory type. 硬件制造厂商将完成MFi许可程序-在定义附件类型的过程中。

So you don't need to worry about dealing with an undefined accessory type while programming a HMAccessory. 因此,您在编程HMAccessory时不必担心处理未定义的附件类型。 By virtue of being an HMAccessory, that should be resolved for you. 由于是HMAccessory,应该为您解决。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM