HAServicesService
public struct HAServicesService : RawRepresentable, Hashable, ExpressibleByStringLiteral
The service itself in a service call
Many services can be used on multiple domains, but you should consult the full results to see which are available.
For example, turn_on
in light.turn_on
is the service.
-
The service as a string
Declaration
Swift
public var rawValue: String
-
Construct a service from a raw value
Declaration
Swift
public init(rawValue: String)
Parameters
rawValue
The raw value
-
Construct a service from a literal
This is mainly useful when stringly-calling a parameter that takes this type. You should use the
HAServicesService.init(rawValue:)
initializer instead.Declaration
Swift
public init(stringLiteral value: StringLiteralType)
Parameters
value
The literal value