Skip to content

Instantly share code, notes, and snippets.

@nicomollet
Created September 20, 2026 09:06
Show Gist options
  • Select an option

  • Save nicomollet/6037e6746fac8331d2c3baa5ff3e0f2f to your computer and use it in GitHub Desktop.

Select an option

Save nicomollet/6037e6746fac8331d2c3baa5ff3e0f2f to your computer and use it in GitHub Desktop.
Google home script to cast a YouTube music playlist on shuffle
metadata:
name: 🎵 Shuffle my playlist Heavy Metal
description: Shuffle my playlist Heavy Metal
automations:
- starters:
- type: assistant.event.OkGoogle
eventData: query
is: play heavy music
actions:
- type: device.command.SetVolume # Set the volume of a given device.
volumeLevel: 10
devices: Google Nest Audio - Salle à manger
- type: assistant.command.OkGoogle
devices: Google Nest Audio - Salle à manger
okGoogle: Play my playlist "Heavy Metal" on YouTube Music
- type: time.delay
for: 10sec
- type: device.command.MediaShuffle # Shuffle the current playlist.
devices: Google Nest Audio - Salle à manger
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment