18.05.28手動(dòng)在樹莓派3B+上安裝Homeassistant和homebridge

論壇好多都是如何安裝HA到樹莓派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

https://etcher.io/

1.準(zhǔn)備工作

燒錄好的TF卡插入樹莓派3B+hdmi顯示器 usb鍵盤?

等待顯示器出現(xiàn) hassbian login:

輸入

pi

再輸入密碼?

raspberry

輸入? ?? ?? ?? ?? ?? ?? ?? ?? ???

sudo raspi-config

2.連接wifi

選擇第二項(xiàng)network options->?Wi-fi?-> 輸入你家的wifi名->?鍵盤方向鍵選擇OK->?你家的wifi密碼->?鍵盤方向鍵選擇OK

將空間擴(kuò)展至整個(gè)TF卡

選擇第七項(xiàng) Advanced option -> A1 Expand Filesystem->OK-鍵盤方向鍵選擇finish

會(huì)問你是否重啟選擇 YES

等待顯示器出現(xiàn) hassbian login:

輸入??

pi

再輸

入密碼? ?? ?? ?? ?? ???

raspberry

輸入? ?? ?? ?? ?? ?? ?? ?? ?? ?

ifconfig

查看wlan0狀態(tài)的第二行出現(xiàn)?inet 192.168.x.x??

說明已經(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)行中

說明你的homeassistant安裝完畢


4安裝Samba文件局域網(wǎng)共享

輸入?

sudo hassbian-config install samba

等待屏幕出現(xiàn)?installation done . .?說明你的Samba安裝完畢

接下來會(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è))

然后問你登陸HA的密碼默認(rèn)是raspberry(可改)

輸入

raspberry

然后問你是否想把samba添加到HB中? ?? ?? ???

輸入

y

等待屏幕出現(xiàn)?installation done . .?說明你的homebridge安裝完畢

6安裝網(wǎng)絡(luò)編輯器cloud9

輸入

sudo hassbian-config install cloud9

等待屏幕出現(xiàn)?installation done . .?說明你的cloud9安裝完畢在線編譯器會(huì)在安裝完畢后顯示你可以打開的地址? ?http://192.168.x.x:8181

? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ? 或者h(yuǎn)ttp://hassbian.local:8181(我選這個(gè))


在瀏覽器地址輸入? ?? ?? ?? ?? ?? ?? ?? ?? ???

http://hassbian.local:8181

看到這個(gè)說明你的cloud9安裝完成


致次在樹莓派3B+上的HA+HB的基本安裝完成

?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時(shí)請(qǐng)結(jié)合常識(shí)與多方信息審慎甄別。
平臺(tái)聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡(jiǎn)書系信息發(fā)布平臺(tái),僅提供信息存儲(chǔ)服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

友情鏈接更多精彩內(nèi)容