User Tools

Site Tools


informatica:iot:cubos

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
informatica:iot:cubos [2021/02/12 22:45] joseinformatica:iot:cubos [2021/02/14 01:18] (current) – [Google Home] jose
Line 28: Line 28:
 ===== Spotify ===== ===== Spotify =====
 https://www.home-assistant.io/integrations/spotify/ https://www.home-assistant.io/integrations/spotify/
 +
 +En Developer Tools, seleccionamos SERVICES y ponemos:
 +  Service: media_player.play_media
 +En el desplegable seleccionamos:
 +  Entity: media_player.spotify_joselegido
  
 <code> <code>
-# Example script to play playlist +entity_id: media_player.spotify_joselegido 
-script+media_content_idhttps://open.spotify.com/playlist/4kPUSDh6ELg2QX251qM6zi?si=cEt1dw6mRYiulWN4uj9o4w 
-  play_jazz_guitar+media_content_typeplaylist 
-    sequence+</code> 
-      - service: media_player.play_media + 
-        data+{{:informatica:iot:spotify_01.png|}} 
-          entity_id: media_player.spotify + 
-          media_content_id: "https://open.spotify.com/playlist/4kPUSDh6ELg2QX251qM6zi?si=cEt1dw6mRYiulWN4uj9o4w+===== Google Home ===== 
-          media_content_type: playlist+Developer Tools > Services 
 + 
 +Service: 
 +  media_player.play_media 
 + 
 +Service Data (YAML, optional)
 +<code> 
 +entity_id: media_player.google_home 
 +media_content_id: 'https://mediavod-lvlt.rtve.es/resources/TE_SHETACA/mp3/0/6/1613119445760.mp3' 
 +media_content_type: audio/mp3 
 +</code> 
 + 
 +Con fichero local. El fichero está en:\\ 
 +Raspberry: 
 +  /usr/share/hassio/media 
 +Docker: 
 +  /media 
 +En configuration.yml (creo que no es necesario) 
 +  docker exec -ti homeassistant bash 
 + 
 +<code> 
 +homeassistant: 
 +  media_dirs: 
 +    local: /media 
 +</code> 
 +<code> 
 +entity_id: media_player.google_home 
 +media_content_id: "media-source://media_source/local/viernes.mp3
 +media_content_type: audio/mp3
 </code> </code>
informatica/iot/cubos.1613169913.txt.gz · Last modified: 2021/02/12 22:45 by jose