Appearance
traits/temperature.proto
Table of Contents
traits/temperature.proto
GetTemperatureRequest
Field | Type | Label | Description |
---|---|---|---|
name | string | ||
read_mask | google.protobuf.FieldMask |
PullTemperatureRequest
Field | Type | Label | Description |
---|---|---|---|
name | string | ||
read_mask | google.protobuf.FieldMask | ||
updates_only | bool |
PullTemperatureResponse
Field | Type | Label | Description |
---|---|---|---|
changes | PullTemperatureResponse.Change | repeated |
PullTemperatureResponse.Change
Field | Type | Label | Description |
---|---|---|---|
name | string | ||
change_time | google.protobuf.Timestamp | ||
temperature | Temperature |
Temperature
Temperature represents a target and measured temperature.
Field | Type | Label | Description |
---|---|---|---|
set_point | smartcore.types.Temperature | Read/write, the target temperature. | |
measured | smartcore.types.Temperature | Output only, the measured temperature. |
UpdateTemperatureRequest
Field | Type | Label | Description |
---|---|---|---|
name | string | ||
temperature | Temperature | ||
update_mask | google.protobuf.FieldMask | ||
delta | bool | When true, temperature is a change to the devices current value. |
TemperatureApi
Trait for devices that have or measure temperature like an oven or shower, distinct from the AirTemperature trait (HVAC, thermostats).
Method Name | Request Type | Response Type | Description |
---|---|---|---|
GetTemperature | GetTemperatureRequest | Temperature | |
PullTemperature | PullTemperatureRequest | PullTemperatureResponse stream | |
UpdateTemperature | UpdateTemperatureRequest | Temperature |