Hi there!
Really love getting in to the whole home automation thing. Am trying to get an audio stream to output to a Google Home. I’ve read that it must be a HLS stream and that it’s accessible from HTTPS. I also read that the Google Home requires certain HLS headers. The audio stream is taken from a pi in the nursery but I don’t want to expose it publicly without any security. Any ideas how I could do this? I’ve just signed up for a HA cloud account I was either thinking:
- Either use home assistant to forward the stream and expose it on the HTTPS of HA; or
- Expose pi using lets encrypt/DNS-provider and somehow add authentication to that using nginx or something; or
- Use RTSP or RTMP protocol for stream and wrap in a HLS stream somehow.
I was hoping I could use the ffmpeg component to forward the stream and then somehow that would wrap in a HTTPS, but that doesn’t work.
Here’s what I have already:
configuration.yaml
# Configure a default setup of Home Assistant (frontend, api, etc)
default_config:
# Uncomment this if you are using SSL/TLS, running in Docker container, etc.
# http:
# base_url: example.duckdns.org:8123
# Text to speech
tts:
- platform: google_translate
group: !include groups.yaml
automation: !include automations.yaml
script: !include scripts.yaml
ffmpeg:
scripts.yaml
play_bedroom_audio:
alias: Stream baby's bedroom
sequence:
- data:
entity_id: media_player.living_room_speaker
media_content_id: http://<audio stream ip>/<filename>
media_content_type: application/vnd.apple.mpegurl
service: media_player.play_media
The script makes the Google Home beep but no sound.
Hass.io 0.102.3
Eeepc 1000, x86 CPU, 2GB RAM
Thanks!