Toggle media play/pause
services_media_play_pauseToggle a media player between playing and paused via Home Assistant. Use for a simple play/pause action when checking current state first is unnecessary.
Instructions
Toggle a media player between playing and paused.
Calls media_player.media_play_pause with {"entity_id": entity_id}
over HTTP; the resulting state depends on the player's current state.
Use when: a simple play/pause toggle is enough, without checking current state first. Returns: the list of states changed by the call.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| entity_id | Yes | Full media_player entity ID to control, e.g. 'media_player.living_room'. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |