HomeKit is a new format for communicating and managing connected devices in the user's home. The program can give users the ability to detect devices in the house and their settings, as well as the ability to specify actions to control these devices. Users can group actions together and trigger them with Siri.
HomeKit provides seamless integration between devices that support the Home Automation Protocol and Apple's iOS devices, opening up new opportunities in home automation. By promoting a common protocol for home automation devices and by making a public API available for setting up and interacting with these devices, HomeKit makes it possible for a market where home control applications do not depend on the supplier who makes home automation devices, and where these devices are from manufacturers can be integrated into a whole without sellers who need to cooperate directly with each other.
- Detect devices and add them to the cross-device home configuration database;
- Show, edit and perform actions with data in the home configuration database;
- Interact with customized devices and services to perform actions, such as turning on lights in a living room.
For example, you can say Siri: “I'm going to sleep,” and this will dim the lights, close the doors of the house and the garage, and install a thermostat.
Houses (HMHome) are a top-level container and are a structure that the user usually sees as one house. Users may have several houses that are far apart, for example, the main house and the country house. Or they may have two houses that are located close to each other, but are treated as different houses, for example, the main house and the guest house in the same area.
Rooms (HMRoom) are optional parts of the house and are separate rooms in the house. Rooms do not have physical characteristics: size, location, etc. They are simply names that are understandable to the user, such as "living room" or "kitchen." Room names are used in commands, such as, for example, “Siri, turn on the lights in the kitchen.”
Devices (HMAccessory) are installed in homes and attached to rooms. These are real physical home automation devices, such as an automatic garage door. If the user has not set up rooms, HomeKit binds the device to a special default room.
Service (HMService) - the actual functions that the device performs. The device has both user-controlled functions, such as, for example, light, as well as its own functions, for example, the firmware update service. HomeKit mainly works with the functions that users control. One device may be responsible for several user functions. For example, most automatic garage doors have a function for opening and closing a door, as well as a function to turn on the light.
Zones (HMZone) - this is an optional grouping of rooms in the house. "Upstairs" and "below" can be represented as separate zones. Zones are exclusively additional in nature - the rooms do not have to be included in them. By adding rooms to the zone, the user can give commands to Siri, such as: “Siri, turn on all the lights below.”
Source: https://habr.com/ru/post/242887/
All Articles