Set climate mode
services_set_climate_modeSwitch a thermostat between heat, cool, auto, off, fan_only, and dry modes by calling Home Assistant's climate.set_hvac_mode for a selected entity. Changes HVAC mode, not target temperature.
Instructions
Set a climate entity's heating/cooling mode.
Calls climate.set_hvac_mode with {"entity_id": entity_id, "hvac_mode": hvac_mode} over HTTP.
Use when: switching a thermostat between heat/cool/auto/off/fan_only/dry.
Not for: the target temperature — use entities_set_value.
Returns: the list of states changed by the call.
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": {
"entity_id": "<entity_id>",
"hvac_mode": "<hvac_mode>"
},
"name": "services_set_climate_mode"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| entity_id | Yes | Full climate entity ID to change, e.g. 'climate.living_room'. | |
| hvac_mode | Yes | Target mode: one of heat, cool, auto, off, fan_only, dry. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |