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:56] joseinformatica:iot:cubos [2021/02/14 01:18] (current) – [Google Home] jose
Line 41: Line 41:
  
 {{:informatica:iot:spotify_01.png|}} {{: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.1613170613.txt.gz · Last modified: 2021/02/12 22:56 by jose