DeviceHistoryItem

@HomeExperimentalApi
interface DeviceHistoryItem : HistoryItem


A history item generated by a device.

Summary

Public properties

String

Name of the room at the time of the event was emitted.

String

Name of the structure at the time of the event was emitted.

Id?

Id of the room that contains the device.

Id?

Id of the structure that contains the device.

Set<DeviceTypeFactory<DeviceType>>

Device types that generated this event.

Inherited properties

From com.google.home.HistoryItem
Id

Id of the entity that generated the history item.

String

Original name of the entity that generated the event.

Event

Event that this history item represents.

Id

Id of the event this history item represents.

Id

The unique identifier of the history item.

Instant

The timestamp of the history item.

Public properties

originalRoomName

val originalRoomName: String

Name of the room at the time of the event was emitted.

originalStructureName

val originalStructureName: String

Name of the structure at the time of the event was emitted.

roomId

val roomId: Id?

Id of the room that contains the device.

structureId

val structureId: Id?

Id of the structure that contains the device.

types

val types: Set<DeviceTypeFactory<DeviceType>>

Device types that generated this event.