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