Instance Method


Returns an array of all services provided by accessories in the home that match the specified types.


func servicesWithTypes(_ serviceTypes: [String]) -> [HMService]?



An array of strings that identify service types. See Accessory Service Types for a list of types.

Return Value

An array of found services. Returns nil if no matching services are found.

See Also

Grouping Services

var serviceGroups: [HMServiceGroup]

An array of all service groups in the home.

class HMServiceGroup

A collection of accessory services.