informatica:iot:cubos
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| informatica:iot:cubos [2021/02/12 12:22] – created jose | informatica:iot:cubos [2021/02/14 01:18] (current) – [Google Home] jose | ||
|---|---|---|---|
| Line 6: | Line 6: | ||
| + | ====== Cubos AQARA ====== | ||
| + | ===== Instalar Home Assitant ===== | ||
| + | Instalamos docker y paquetes necesarios | ||
| + | < | ||
| + | sudo apt-get install -f software-properties-common | ||
| + | sudo su - | ||
| + | add-apt-repository universe | ||
| + | apt-get update | ||
| + | apt-get install -y apparmor-utils apt-transport-https avahi-daemon ca-certificates curl dbus jq network-manager socat software-properties-common | ||
| + | curl -sSL https:// | ||
| + | </ | ||
| + | Ahora instalamos home assistant del repositorio de github | ||
| + | |||
| + | Repositorio: | ||
| + | |||
| + | Comandos para instalar: | ||
| + | curl -Lo installer.sh https:// | ||
| + | bash installer.sh --machine raspberrypi4 | ||
| + | | ||
| + | ===== Spotify ===== | ||
| + | https:// | ||
| + | |||
| + | En Developer Tools, seleccionamos SERVICES y ponemos: | ||
| + | Service: media_player.play_media | ||
| + | En el desplegable seleccionamos: | ||
| + | Entity: media_player.spotify_joselegido | ||
| + | |||
| + | < | ||
| + | entity_id: media_player.spotify_joselegido | ||
| + | media_content_id: | ||
| + | media_content_type: | ||
| + | </ | ||
| + | |||
| + | {{: | ||
| + | |||
| + | ===== Google Home ===== | ||
| + | Developer Tools > Services | ||
| + | |||
| + | Service: | ||
| + | media_player.play_media | ||
| + | |||
| + | Service Data (YAML, optional): | ||
| + | < | ||
| + | entity_id: media_player.google_home | ||
| + | media_content_id: | ||
| + | media_content_type: | ||
| + | </ | ||
| + | |||
| + | Con fichero local. El fichero está en:\\ | ||
| + | Raspberry: | ||
| + | / | ||
| + | Docker: | ||
| + | /media | ||
| + | En configuration.yml (creo que no es necesario) | ||
| + | docker exec -ti homeassistant bash | ||
| + | |||
| + | < | ||
| + | homeassistant: | ||
| + | media_dirs: | ||
| + | local: /media | ||
| + | </ | ||
| + | < | ||
| + | entity_id: media_player.google_home | ||
| + | media_content_id: | ||
| + | media_content_type: | ||
| + | </ | ||
informatica/iot/cubos.1613132530.txt.gz · Last modified: by jose
