Updated: Nov 3, 2023—1 min read

How to integrate Spotify in Home Assistant

Written by: Fixt

Spotify Integration

Open your Home Assistant and show de integration menu

You can use this button to start the setup process. It will open the integration page in Home Assistant.

  1. Spotify Developer Dashboard
  2. Home Assistant Documentation

Redirect URI:

https://my.home-assistant.io/redirect/oauth

Spodcast Installation

Open your Home Assistant instance and open a repository inside the Home Assistant Community Store.

You can use this button to be redirected to the download page. It will open the repository's page in HACS.

You can find the documentation here.

Spodcast Configuration

config/configuration.yaml

spotcast:
 sp_dc: !secret sp_dc
 sp_key: !secret sp_key
 country: SE #optional, added in 3.6.24

Automation Example

Example Spodcast automation

config/automations.yaml

description: ""
trigger:
 - platform: time
   at: "08:00:00"
condition: []
action:
 - service: spotcast.start
   data:
     limit: 20
     force_playback: false
     random_song: false
     repeat: "off"
     shuffle: false
     offset: 0
     ignore_fully_played: false
     entity_id: media_player.living_room
     uri: spotify:track:6JTWpLuDTujTnBaNjEHydI
mode: single

I would love to hear your comments, or suggestions on this post.


Avatar of Fixt

Fixt is a Software Engineer passionate about making the world a better place through technology and automation.