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 20:27] – [Instalar Home Assitant] joseinformatica:iot:cubos [2021/02/14 01:18] (current) – [Google Home] jose
Line 11: Line 11:
 <code> <code>
 sudo apt-get install -f software-properties-common sudo apt-get install -f software-properties-common
-su -+sudo su -
 add-apt-repository universe add-apt-repository universe
 apt-get update apt-get update
Line 18: Line 18:
 </code> </code>
  
 +Ahora instalamos home assistant del repositorio de github
  
 +Repositorio: https://github.com/home-assistant/supervised-installer
 +
 +Comandos para instalar:
   curl -Lo installer.sh https://raw.githubusercontent.com/home-assistant/supervised-installer/master/installer.sh   curl -Lo installer.sh https://raw.githubusercontent.com/home-assistant/supervised-installer/master/installer.sh
   bash installer.sh --machine raspberrypi4   bash installer.sh --machine raspberrypi4
 +  
 +===== 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>
 +entity_id: media_player.spotify_joselegido
 +media_content_id: https://open.spotify.com/playlist/4kPUSDh6ELg2QX251qM6zi?si=cEt1dw6mRYiulWN4uj9o4w
 +media_content_type: playlist
 +</code>
 +
 +{{:informatica:iot:spotify_01.png|}}
 +
 +===== Google Home =====
 +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>
informatica/iot/cubos.1613161637.txt.gz · Last modified: 2021/02/12 20:27 by jose