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