DEV Community

Bach Huynh V. VN.Danang
Bach Huynh V. VN.Danang

Posted on

Install HomeAssistant on TVBox Coolme BB2 S912

Requirements:

Các bước chú ý:

  • Chọn đúng image.
  • Dùng Balena Etcher để tạo thẻ nhớ boot.
  • Cắm thẻ nhớ và restart để install lên MCC của TVBox (bộ nhớ trong).

Các lệnh cần thiết:

  • armbian-config:
    • Setup Avahi: để tự động nhận hassio.local trong 1 local network mà không cần biết IP.
    • Chọn source mirror để tốc độ nhanh hơn.
    • Config WIFI (nếu cần)
  • armbian-software:
    • Setup Docker.

Setup Cloudflared:
Chú ý config thêm trusted-proxy của homeassistant:

 cd /usr/share/hassio/homeassistant vim configuration.yaml 
Enter fullscreen mode Exit fullscreen mode

Thêm block code sau:
http:

 use_x_forwarded_for: true trusted_proxies: - 192.168.0.0/16 - 172.31.0.0/16 - 172.30.0.0/16 - 172.32.0.0/16 - 100.0.0.0/8 - 127.0.0.1 - 172.16.0.0/12 - ::1 
Enter fullscreen mode Exit fullscreen mode
  • Setup HASC: Vào container

docker exec -it homeassistant bash

gõ lệnh

wget -O - https://get.hacs.xyz | bash -

Top comments (0)