Class Device
Third-party device definition.
Implements
Inherited Members
Namespace: Google.Apis.HomeGraphService.v1.Data
Assembly: Google.Apis.HomeGraphService.v1.dll
Syntax
public class Device : IDirectResponseSchema
Properties
Attributes
Attributes for the traits supported by the device.
Declaration
[JsonProperty("attributes")]
public virtual IDictionary<string, object> Attributes { get; set; }
Property Value
| Type | Description |
|---|---|
| IDictionary<string, object> |
CustomData
Custom device attributes stored in Home Graph and provided to your smart home Action in each QUERY and EXECUTE intent. Data in this object has a few constraints: No sensitive information, including but not limited to Personally Identifiable Information.
Declaration
[JsonProperty("customData")]
public virtual IDictionary<string, object> CustomData { get; set; }
Property Value
| Type | Description |
|---|---|
| IDictionary<string, object> |
DeviceInfo
Device manufacturer, model, hardware version, and software version.
Declaration
[JsonProperty("deviceInfo")]
public virtual DeviceInfo DeviceInfo { get; set; }
Property Value
| Type | Description |
|---|---|
| DeviceInfo |
ETag
The ETag of the item.
Declaration
public virtual string ETag { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Id
Third-party device ID.
Declaration
[JsonProperty("id")]
public virtual string Id { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Name
Names given to this device by your smart home Action.
Declaration
[JsonProperty("name")]
public virtual DeviceNames Name { get; set; }
Property Value
| Type | Description |
|---|---|
| DeviceNames |
NotificationSupportedByAgent
Indicates whether your smart home Action will report notifications to Google for this device via ReportStateAndNotification. If your smart home Action enables users to control device notifications, you should update this field and call RequestSyncDevices.
Declaration
[JsonProperty("notificationSupportedByAgent")]
public virtual bool? NotificationSupportedByAgent { get; set; }
Property Value
| Type | Description |
|---|---|
| bool? |
OtherDeviceIds
Alternate IDs associated with this device. This is used to identify cloud synced devices enabled for local fulfillment.
Declaration
[JsonProperty("otherDeviceIds")]
public virtual IList<AgentOtherDeviceId> OtherDeviceIds { get; set; }
Property Value
| Type | Description |
|---|---|
| IList<AgentOtherDeviceId> |
RoomHint
Suggested name for the room where this device is installed. Google attempts to use this value during user setup.
Declaration
[JsonProperty("roomHint")]
public virtual string RoomHint { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
StructureHint
Suggested name for the structure where this device is installed. Google attempts to use this value during user setup.
Declaration
[JsonProperty("structureHint")]
public virtual string StructureHint { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Traits
Traits supported by the device. See device traits.
Declaration
[JsonProperty("traits")]
public virtual IList<string> Traits { get; set; }
Property Value
| Type | Description |
|---|---|
| IList<string> |
Type
Hardware type of the device. See device types.
Declaration
[JsonProperty("type")]
public virtual string Type { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
WillReportState
Indicates whether your smart home Action will report state of this device to Google via ReportStateAndNotification.
Declaration
[JsonProperty("willReportState")]
public virtual bool? WillReportState { get; set; }
Property Value
| Type | Description |
|---|---|
| bool? |