How to use Home Kit Accessories Simulator

I am new to iOS programming. Can someone help me how to use Simulator for home accessories and where can I get it from.

I tried to configure my simulator in this way, but I can’t figure out how to use it.

Simulator image

Thanks Soumyashree

+4
source share
2 answers

See the section Adding Services to Accessories in this Apple document: HomeKit Developer's Guide

Let me solve your problem with the process of adding additional accessories according to the document using the FAN example.

The accessory needs a service with features that you can control from your application. You select a service from a predefined list and then configure the characteristics.

To add a service to an accessory

  • In HomeKit Accessory Simulator, select an accessory in the Accessories column.

Services for accessories are displayed in a detailed view.

enter image description here

  1. Click Add Service and select a service type from the pop-up menu.
    The new service is displayed in a detailed view. HomeKit Accessory Simulator creates common features for this type of service. For example, the standard features of the Light Bulb service are Hue, Saturation, Brightness, and On. (The On characteristic is the same as the type of power state characteristic described in the “Accessing the Characteristic Values” section.) Some characteristics are mandatory, while others are optional. For example, the On characteristic is required, and the Hue, Saturation, and Brightness characteristics are optional.

    enter image description here

0
source

Here is an Apple doc: Testing your HomeKit app

Testing Your HomeKit Application

If you do not have physical accessories, use the HomeKit Accessory Simulator to simulate accessories in the house. Each simulated accessory has services with features that you can control from your application.

Adding Accessories
Using the HomeKit Accessory simulator to add some accessories to a simulated network.

To add an accessory to the network
In HomeKit Accessory Simulator, click the Add (+) button at the bottom of the left column.

  • Select "Add Accessory" from the pop-up menu.
  • Enter the name of the accessory and manufacturer.
  • Enter the name of the accessory and manufacturer.
  • Click Finish

    enter image description here

Note The document also contains information on how to create additional services if you want.

HomeKit Accessory Simulator is an optional developer tool that is not installed with Xcode. To install HomeKit Accessory Simulator, follow the steps in Download Simulator Simulator for HomeKit.

Download HomeKit Accessories Simulator

You do not need to buy accessories to develop your HomeKit application. You can use the HomeKit Accessory Simulator to test the connection of your HomeKit application with simulated accessories. HomeKit Accessory Simulator is not distributed with Xcode.

To download HomeKit Accessory Simulator

  • In the HomeKit section of the Features panel, click Download HomeKit Accessory Simulator.
  • Alternatively, select Xcode> Open Developer Tool> Advanced Developer Tools.

  • In the browser, locate and download the .dmg file "IO Tools for Xcode Hardware".

  • In Finder, double-click the .dmg file in ~ / Downloads. Drag HomeKit Accessory Simulator to the / Applications folder.
0
source

Source: https://habr.com/ru/post/1275596/


All Articles