Instance Method

addService:completionHandler:

Adds a new service to the service group.

Declaration

- (void)addService:(HMService *)service completionHandler:(void (^)(NSError *error))completion;

Parameters

service

The service to add.

completion

The block executed after the request is processed.

error

nil on success; otherwise, error object indicating the reason for failure.

Discussion

A service can be added to multiple service groups. For example, a light could be added to the “Desk Lamps” service group as well as the “Dimmable Lights” service group.

See Also

Managing Service Groups

name

The name of the service group.

uniqueIdentifier

The unique identifier for the service group.

- updateName:completionHandler:

Updates the name of the service group.

services

Array of the services in the service group.

- removeService:completionHandler:

Removes a service from the service group.