HomeEntity

protocol HomeEntity : HasParts, HomeObject

A trait-based smart home entity in the Google Home Platform (Data 2.0).

  • id

    The unique identifier of the entity.

    Declaration

    Swift

    override var id: String { get }
  • The HomeObjectType classification of this entity.

    Declaration

    Swift

    override var objectType: HomeObjectType { get }
  • Controller for dynamically reading and subscribing to traits on this entity.

    Declaration

    Swift

    var traits: any TraitController { get }