--- tags: Home Assistant --- # Part 2 - How to embed a hass-configurator webpage into Home Assistant on Raspberry Pi 4 in a Docker container ##### `Internet of Things` `Raspberry Pi 4` `Home Assistant` `hass-configurator` > [name=Mr. Akashic] [time=Wed, Jun 7, 2021] ## Implementation 1. 在Raspberry Pi 4 開啟Terminal,執行下列指令,進行編輯Home Assistant的configuration.yaml ```bash= sudo nano /opt/homeassistant/configuration.yaml ``` 2. 開啟configuration.yaml後,貼上下列內容,完成後按 <span class="dark_orange">CTRL+X</span>然後按<span class="dark_orange">Y</span>和<span class="dark_orange">ENTER</span>確認儲存。 ```yaml= panel_iframe: configurator: title: File editor icon: mdi:wrench url: http://192.168.0.112:3218 #IP位址改成自己樹莓派上的IP位置,Port(3218)不用改。 ``` 3. 開啟Home Assistant網頁,遵循簡報的操作步驟即可完成將hass-configurator網頁嵌入Home Assistant網頁。 {%slideshare AkashaC1/embed-a-hass-configurator-webpage-into-home-assistant %} ## Introduction 為了方便修改Home Assistant的配置檔,來擴充新功能或感測器等,因此在[Part 1](https://hackmd.io/@JGoK5hXkSQuAC32KMw8hHw/rJ_-X24cO)的文章中有提到,在Docker佈署的服務中,有一個服務叫做hass-configurator。該服務提供一個線上Home Assistant的檔案管理平台,用來線上編輯Home Assistant的配置檔(configuration.yaml),就不用登入Raspberry Pi 4才可以編輯配置檔。 ## Acknowledgements 1. [causticlab/hass-configurator-docker ](https://hub.docker.com/r/causticlab/hass-configurator-docker/) <style> .dark_orange { color: #FF8C00; background:#F6F6F6; border-radius:4px; padding-right:6px; padding-left:6px; } .sub_title { font-size: 25px; } .blockquote { background:#F6F6F6; } </style>