論壇好多都是如何安裝HA到樹莓派3上?
今天教大家安裝在3B+上
文章分為
1準備工作
2連接wifi
3安裝Homeassistant
4安裝Samba4文件局域網共享
5安裝Homebridge apple homekit
6安裝網絡編輯器cloud9
請自行科學上網
首先下載hassbian固件
https://github.com/home-assistant/pi-gen/releases/tag/v.1.3.2?
用Etcher燒錄到TF卡上 我用的是16G Etcher
1.準備工作
燒錄好的TF卡插入樹莓派3B+hdmi顯示器 usb鍵盤?
等待顯示器出現 hassbian login:
輸入
pi
再輸入密碼?
raspberry
輸入? ?? ?? ?? ?? ?? ?? ?? ?? ???
sudo raspi-config
2.連接wifi
選擇第二項network options->?Wi-fi?-> 輸入你家的wifi名->?鍵盤方向鍵選擇OK->?你家的wifi密碼->?鍵盤方向鍵選擇OK
將空間擴展至整個TF卡
選擇第七項 Advanced option -> A1 Expand Filesystem->OK-鍵盤方向鍵選擇finish
會問你是否重啟選擇 YES
等待顯示器出現 hassbian login:
輸入??
pi
再輸
入密碼? ?? ?? ?? ?? ???
raspberry
輸入? ?? ?? ?? ?? ?? ?? ?? ?? ?
ifconfig
查看wlan0狀態的第二行出現?inet 192.168.x.x??
說明已經接入你的路由器
3安裝Homeassistant在安裝前需要更新一下hassbian-config
輸入
sudo hassbian-config upgrade hassbian-script
然后安裝 homeassistant
輸入?
sudo hassbian-config install homeassistance
要加載一陣如果出現任何紅字?請檢查你的網絡鏈接狀態??并重新運行上一句代碼
等待屏幕出現?installation done . .?
然后到在同一局域網下的電腦中瀏覽器中
輸入
http://192.168.x.x:8123
http://hassbian.local:8123(我選擇這個)
看到下面這個圖表示HA安裝完畢運行中
說明你的homeassistant安裝完畢
4安裝Samba文件局域網共享
輸入?
sudo hassbian-config install samba
等待屏幕出現?installation done . .?說明你的Samba安裝完畢
接下來會顯示你的地址就是之前ifconfig 里你看到的地址? ?\\192.168.x.x\homeassistant
5安裝Homebridge apple homekit
輸入? ?? ?? ?? ?? ?? ?? ?? ?? ???
sudo hassbian-config install homebridge
這個時候會讓你輸入你的homeassistant地址和端口?http://192.168.x.x:8123
? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ???或者http://hassbian.local:8123(我選擇這個)
然后問你登陸HA的密碼默認是raspberry(可改)
輸入
raspberry
然后問你是否想把samba添加到HB中? ?? ?? ???
輸入
y
等待屏幕出現?installation done . .?說明你的homebridge安裝完畢
6安裝網絡編輯器cloud9
輸入
sudo hassbian-config install cloud9
等待屏幕出現?installation done . .?說明你的cloud9安裝完畢在線編譯器會在安裝完畢后顯示你可以打開的地址? ?http://192.168.x.x:8181
? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ? 或者http://hassbian.local:8181(我選這個)
在瀏覽器地址輸入? ?? ?? ?? ?? ?? ?? ?? ?? ???
http://hassbian.local:8181
看到這個說明你的cloud9安裝完成
致次在樹莓派3B+上的HA+HB的基本安裝完成