Set media player volume
services_set_volumeSet an exact volume level for a Home Assistant media player using entity ID and target volume (0.0–1.0), instead of stepping volume up or down.
Instructions
Set a media player's volume level.
Calls media_player.volume_set with {"entity_id": entity_id, "volume_level": volume} over HTTP.
Use when: setting an exact volume rather than stepping it up/down. 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>",
"volume": "<volume>"
},
"name": "services_set_volume"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| volume | Yes | Target volume level, 0.0 (silent) to 1.0 (maximum). | |
| entity_id | Yes | Full media_player entity ID to change, e.g. 'media_player.living_room'. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |