get_temperature
Specify a SwitchBot temperature sensor's device ID to retrieve its current temperature and humidity in Fahrenheit or Celsius.
Instructions
Get temperature and humidity reading from a specific SwitchBot temperature sensor.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"deviceId": "<deviceId>"
},
"name": "get_temperature"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| unit | No | Temperature unit: "F" for Fahrenheit (default), "C" for Celsius | |
| deviceId | Yes | Device ID or device name of the temperature sensor |