Change how a PitCanary behaves
update_device_settingsChanges a sensor's own settings: how often it measures, how its light behaves, which sensors are switched on, and its calibration offsets. Read the current settings first, because only the fields you pass are changed and each one is checked against what the firmware accepts. MQTT and other local-network settings are changed only by a person on the dashboard; an API key is refused them. Requires a PitCanary account.
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": {
"device_id": "<device_id>",
"settings": "<settings>"
},
"name": "update_device_settings"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| settings | Yes | The settings to change, in the shape the device settings page uses. Only what you pass is altered. | |
| device_id | Yes | The PitCanary id, as returned by list_devices, or active_device_id in list_rooms. |