HAResponseServices

public struct HAResponseServices : HADataDecodable

The services available

  • Create with data

    Throws

    If any required keys are missing

    Declaration

    Swift

    public init(data: HAData) throws

    Parameters

    data

    The data from the server

  • All service definitions, divided by domain and then by service For example, you can access allByDomain[“light”][“turn_on”] for the definition of light.turn_on

    Declaration

    Swift

    public var allByDomain: [HAServicesDomain : [HAServicesService : HAServiceDefinition]]
  • all

    All service definitions, sorted by their \.domainServicePair

    Declaration

    Swift

    public var all: [HAServiceDefinition] { get }