Instance Method

addZoneWithName:completionHandler:

Adds a new zone to the home.

Declaration

- (void)addZoneWithName:(NSString *)zoneName completionHandler:(void (^)(HMZone *zone, NSError *error))completion;

Parameters

zoneName

The name of the new zone. Must not be nil, and must not be the name of a zone already in the home.

completion

The block executed after the request is processed.

zone

The newly created zone.

error

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

See Also

Grouping Rooms into Zones

zones

An array of all the zones in the home.

- removeZone:completionHandler:

Removes a zone from the home.

HMZone

A collection of rooms that users think of as a single area, like upstairs or downstairs.