GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsHomeGraphData
Table of Contents ▼
Jump to a specific part of the page:
- Description
- Attribute List
- Attributes
- Type
- Function
- Related links
- Possibly related Modules
Description
Next ID: 8
Attributes List
This module has the following attributes (case-insensitive ascending order):
Attributes
-
agentId
(type:String.t
, default:nil
)
- Agent ID, aka project ID. Used as the AgentDeviceId.agent_id of device when calling Home Graph Service. -
attributes
(type:map()
, default:nil
)
- See go/ha-dev-guide and HomeGraphItem.attribute in //assistant/verticals/homeautomation/proto/home_graph.proto -
deviceId
(type:String.t
, default:nil
)
- Device ID, used as AgentDeviceId.device_id of device when calling Home Graph Service. -
deviceType
(type:String.t
, default:nil
)
- HGS device type. See java/com/google/home/graph/service/config/protoconf.pi for the exhaustive list of type strings. -
shouldWriteToHomeGraph
(type:boolean()
, default:nil
)
- Whether device data should be written to Home Graph via Assistant device_settings. Assistant SDK and Google Home write their devices into Home Graph through AssistantSettingsService, while Home Automation Partner devices (e.g. SmartThings, Philips Hue, Nest, TP-Link, etc.) don't need to be written to Home Graph through AssistantSettingsService. This field decides whether AssistantSettingsService writes devices to Home Graph or not. -
supportedTraits
(type:list(String.t)
, default:nil
)
- Supported traits of the device. See java/com/google/home/graph/service/config/protoconf.pi for the exhaustive list of trait-strings. -
supportsDirectResponse
(type:boolean()
, default:nil
)
- Whether the device supports direct response. See HomeGraphItem.supports_direct_response in //assistant/verticals/homeautomation/proto/home_graph.proto
Type
@type t() :: %GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsHomeGraphData{
agentId: String.t() | nil,
attributes: map() | nil,
deviceId: String.t() | nil,
deviceType: String.t() | nil,
shouldWriteToHomeGraph: boolean() | nil,
supportedTraits: [String.t()] | nil,
supportsDirectResponse: boolean() | nil
}
agentId: String.t() | nil,
attributes: map() | nil,
deviceId: String.t() | nil,
deviceType: String.t() | nil,
shouldWriteToHomeGraph: boolean() | nil,
supportedTraits: [String.t()] | nil,
supportsDirectResponse: boolean() | nil
}
Function
@spec decode(struct(), keyword()) :: struct()Data sourced from HexDocs : GoogleApi.ContentWarehouse.V1.Model.AssistantApiSettingsHomeGraphData