Advertisement
Guest User

Untitled

a guest
Dec 6th, 2019
21,660
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.09 KB | None | 0 0
  1. ### configuration.yaml
  2. # Spotify -- https://www.home-assistant.io/integrations/spotify/
  3. media_player:
  4. - platform: spotify
  5. client_id: YOUR_CLIENT_ID
  6. client_secret: YOUR_CLIENT_SECRET
  7.  
  8. # google home -- I use NabuCasa -- https://www.home-assistant.io/integrations/google_assistant/
  9. <N/A> Auto discovered in Home Assistant creates a media_player.xxx entity
  10.  
  11. # deconz - https://www.home-assistant.io/integrations/deconz/
  12. Via configuration - integrations
  13.  
  14. ### automations.yaml
  15.  
  16. - id: "spotify_xmas"
  17. alias: Xmas Spotify button
  18. trigger:
  19. - event_data:
  20. event: 5002
  21. id: tradfri_remote_control
  22. event_type: deconz_event
  23. platform: event
  24. condition:
  25. condition: template
  26. value_template: '{{ now().month == 12 and now().day == 1 }}' ## Only allowed during december ;)
  27. action:
  28. - data:
  29. entity_id: media_player.google_home_kitchen
  30. media_content_id: spotify:user:spotify:playlist:37i9dQZF1DWSddkUxEhrBdF ### (example, replace with own hash from spotify)
  31. media_content_type: playlist
  32. service: media_player.play_media
  33. initial_state: true
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement