GoogleApi.HomeGraph.V1.Model.Device (google_api_home_graph v0.9.0) View Source
Third-party device definition. Next ID = 14
Attributes
-
attributes
(type:map()
, default:nil
) - Attributes for the traits supported by the device. -
customData
(type:map()
, default:nil
) - 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. -
deviceInfo
(type:GoogleApi.HomeGraph.V1.Model.DeviceInfo.t
, default:nil
) - Device manufacturer, model, hardware version, and software version. -
id
(type:String.t
, default:nil
) - Third-party device ID. -
name
(type:GoogleApi.HomeGraph.V1.Model.DeviceNames.t
, default:nil
) - Names given to this device by your smart home Action. -
nonLocalTraits
(type:list(GoogleApi.HomeGraph.V1.Model.NonLocalTrait.t)
, default:nil
) - See description for "traits". For Smart Home Entertainment Devices (SHED) devices, some traits can only be executed on 3P cloud, e.g. "non_local_traits": [ { "trait": "action.devices.traits.MediaInitiation" }, { "trait": "action.devices.traits.Channel" } ] go/shed-per-trait-routing. -
notificationSupportedByAgent
(type:boolean()
, default:nil
) - 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. -
otherDeviceIds
(type:list(GoogleApi.HomeGraph.V1.Model.AgentOtherDeviceId.t)
, default:nil
) - Alternate IDs associated with this device. This is used to identify cloud synced devices enabled for local fulfillment. -
roomHint
(type:String.t
, default:nil
) - Suggested name for the room where this device is installed. Google attempts to use this value during user setup. -
structureHint
(type:String.t
, default:nil
) - Suggested name for the structure where this device is installed. Google attempts to use this value during user setup. -
traits
(type:list(String.t)
, default:nil
) - Traits supported by the device. See device traits. -
type
(type:String.t
, default:nil
) - Hardware type of the device. See device types. -
willReportState
(type:boolean()
, default:nil
) - Indicates whether your smart home Action will report state of this device to Google via ReportStateAndNotification.
Link to this section Summary
Functions
Unwrap a decoded JSON object into its complex fields.
Link to this section Types
Specs
t() :: %GoogleApi.HomeGraph.V1.Model.Device{ attributes: map(), customData: map(), deviceInfo: GoogleApi.HomeGraph.V1.Model.DeviceInfo.t(), id: String.t(), name: GoogleApi.HomeGraph.V1.Model.DeviceNames.t(), nonLocalTraits: [GoogleApi.HomeGraph.V1.Model.NonLocalTrait.t()], notificationSupportedByAgent: boolean(), otherDeviceIds: [GoogleApi.HomeGraph.V1.Model.AgentOtherDeviceId.t()], roomHint: String.t(), structureHint: String.t(), traits: [String.t()], type: String.t(), willReportState: boolean() }
Link to this section Functions
Specs
Unwrap a decoded JSON object into its complex fields.