1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

HomeAssistantでHA内のメディアをChromeCastする

1
Posted at

したいこと

プライベートNW内のHome Assistant(以降HA)のMy media内の動画や音声ファイルをGoogle Nest Hub (第2世代)にCastする

現状

  • HAは外部に公開しておらず、プライベートIPが降っている
  • HAとNest Hubは互いに疎通ができる状態であり、HAからNest Hubの音量調整などが可能であるがメディアの再生はできない

動作 (未調査 推測)

  • HAはメディアを以下のようなURLで公開する
    <設定/システム/ネットワーク/Home Assistant のURL/ローカルネットワークのURLの設定値>/media/local/<ファイル名>?authSig=<ランダム文字列>
  • HAはNestHubにメディアのURLをNestHubに渡してDefaultMediaReceiverに再生させる
  • DefaultMediaReceiverはインターネット公開されているコンテンツ再生可能

したこと

  • CloudflareTunnnelが動作するVMを用意しHAを外部公開する。
  • HAのローカルネットワークのURLの設定を変更
  • HAのconfigration.yamlにIPアドレスを家庭の状況に合わせて追記
http:
    use_x_forwarded?for: true
    trusted_proxies:
        - 10.0.0.0/24
1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?