Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ### configuration.yaml
- # Spotify -- https://www.home-assistant.io/integrations/spotify/
- media_player:
- - platform: spotify
- client_id: YOUR_CLIENT_ID
- client_secret: YOUR_CLIENT_SECRET
- # google home -- I use NabuCasa -- https://www.home-assistant.io/integrations/google_assistant/
- <N/A> Auto discovered in Home Assistant creates a media_player.xxx entity
- # deconz - https://www.home-assistant.io/integrations/deconz/
- Via configuration - integrations
- ### automations.yaml
- - id: "spotify_xmas"
- alias: Xmas Spotify button
- trigger:
- - event_data:
- event: 5002
- id: tradfri_remote_control
- event_type: deconz_event
- platform: event
- condition:
- condition: template
- value_template: '{{ now().month == 12 and now().day == 1 }}' ## Only allowed during december ;)
- action:
- - data:
- entity_id: media_player.google_home_kitchen
- media_content_id: spotify:user:spotify:playlist:37i9dQZF1DWSddkUxEhrBdF ### (example, replace with own hash from spotify)
- media_content_type: playlist
- service: media_player.play_media
- initial_state: true
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement