Richie瑞奇
    • Create new note
    • Create a note from template
      • Sharing URL Link copied
      • /edit
      • View mode
        • Edit mode
        • View mode
        • Book mode
        • Slide mode
        Edit mode View mode Book mode Slide mode
      • Customize slides
      • Note Permission
      • Read
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Write
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
    • Invite by email
      Invitee

      This note has no invitees

    • Publish Note

      Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note No publishing access yet

      Your note will be visible on your profile and discoverable by anyone.
      Your note is now live.
      This note is visible on your profile and discoverable online.
      Everyone on the web can find and read all notes of this public team.

      Your account was recently created. Publishing will be available soon, allowing you to share notes on your public page and in search results.

      Your team account was recently created. Publishing will be available soon, allowing you to share notes on your public page and in search results.

      Explore these features while you wait
      Complete general settings
      Bookmark and like published notes
      Write a few more notes
      Complete general settings
      Write a few more notes
      See published notes
      Unpublish note
      Please check the box to agree to the Community Guidelines.
      View profile
    • Commenting
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Suggest edit
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
    • Emoji Reply
    • Enable
    • Versions and GitHub Sync
    • Note settings
    • Note Insights New
    • Make a copy
    • Transfer ownership
    • Delete this note
    • Save as template
    • Insert from template
    • Import from
      • Dropbox
      • Google Drive
      • Gist
      • Clipboard
    • Export to
      • Dropbox
      • Google Drive
      • Gist
    • Download
      • Markdown
      • HTML
      • Raw HTML
Menu Note settings Note Insights Versions and GitHub Sync Sharing URL Create Help
Create Create new note Create a note from template
Menu
Options
Make a copy Transfer ownership Delete this note
Import from
Dropbox Google Drive Gist Clipboard
Export to
Dropbox Google Drive Gist
Download
Markdown HTML Raw HTML
Back
Sharing URL Link copied
/edit
View mode
  • Edit mode
  • View mode
  • Book mode
  • Slide mode
Edit mode View mode Book mode Slide mode
Customize slides
Note Permission
Read
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Write
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
  • Invite by email
    Invitee

    This note has no invitees

  • Publish Note

    Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note No publishing access yet

    Your note will be visible on your profile and discoverable by anyone.
    Your note is now live.
    This note is visible on your profile and discoverable online.
    Everyone on the web can find and read all notes of this public team.

    Your account was recently created. Publishing will be available soon, allowing you to share notes on your public page and in search results.

    Your team account was recently created. Publishing will be available soon, allowing you to share notes on your public page and in search results.

    Explore these features while you wait
    Complete general settings
    Bookmark and like published notes
    Write a few more notes
    Complete general settings
    Write a few more notes
    See published notes
    Unpublish note
    Please check the box to agree to the Community Guidelines.
    View profile
    Engagement control
    Commenting
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    • Everyone
    Suggest edit
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    Emoji Reply
    Enable
    Import from Dropbox Google Drive Gist Clipboard
       Owned this note    Owned this note      
    Published Linked with GitHub
    2
    • Any changes
      Be notified of any changes
    • Mention me
      Be notified of mention me
    • Unsubscribe
    Home Assistant&Raspberry Pi 4最速安裝教學 == 在開始之前,對於我這篇文章有什麼不了解的或是建議都歡迎在下方留言區與我分享,這次文章是基於我的一位新朋友想聊解如何在樹梅派安裝Home Assistant而誕生的文章 :::info 以下文章的「HA」是Home Assistant的縮寫 ::: 前置準備 -- * 電腦 你說「就樹梅派而已還需要電腦幹嘛?」 原因很簡單,樹梅派要能正常進入系統,是必須要有引導,也就是「OS」,但引導要如何製作? 依照樹梅派官方說法,製作引導需要電腦下載系統後,使用燒入軟體對Micro SD卡進行寫入 [![image](https://hackmd.io/_uploads/B17M4IJS6.png)](https://www.raspberrypi.com/documentation/computers/getting-started.html#installing-the-operating-system "想不到吧我還貼心給你超連結呵呵~") * Raspberry Pi 依照HA官方說法`Raspberry Pi 3 Model B`也可以安裝,只是後面的版本因為RAM不夠大沒辦法運行 * Raspberry Pi電源線 這很基本,不然你說一個樹梅派不用供電就能啟動的理由,~~不包含外掛電源套件~~ * Micro SD(建議64GB) 品牌不侷限,能用就好 * SD卡轉USB(非必要) 因為大多數電腦已經沒有讀卡機,如果沒有的可能需要另行準備一個SD卡轉USB的轉接器 * 網路線 這裡是看個人喜好,HA一樣可以連接WiFi,但依照穩定性而言,網路線是可以勝任的,但在這裡還是一照當下環境決定 以上就是大致的前置準備,這裡唯一要提醒的就是關於樹梅派是否需要散熱? 我個然建議樹梅派一定要加裝散熱鋁片,至於是否需要風扇就看各人了 系統安裝 -- 開始進入第一階段安裝環節 這裡我是依照官方的教學來進行,會這麼做的原因就是「簡單」,以目前來說沒有更簡單的方式了,除非你直接買別人幫你燒好的,那就...沒事 * 安裝Raspberry Pi Imager 他是一款基於樹梅派官方訂製燒入軟體,你不需要手動下載img包,在選擇燒入裝置後就可以選擇你要安裝的系統,這不是簡單什麼叫簡單? 官方提供Windows、Mac OS、Linux三種版本 Windows[點我下載](https://downloads.raspberrypi.org/imager/imager_latest.exe) Mac OS[點我下載](https://downloads.raspberrypi.org/imager/imager_latest.dmg) Linux安裝方式有兩種: 1. [點我下載安裝檔直接安裝](https://downloads.raspberrypi.org/imager/imager_latest_amd64.deb) 2. 開啟終端機輸入`sudo apt install rpi-imager`即可快速安裝(我超推薦這方案) 這裡我就先以windows做於教學 ![image](https://hackmd.io/_uploads/BkReJvJHp.png) 點擊「下載windows版」等待下載好後,雙擊安裝 安裝好後會出現以下畫面 ![image](https://hackmd.io/_uploads/Ske5lPkra.png) 到這裡你已經成功了10% 接下來我們點擊「Raspberry Pi Device」 ![image](https://hackmd.io/_uploads/ByEXbP1Sp.png) 這個我是第一次看到能選擇多代樹梅派的介面,以前是沒有的,猜測是因為新的Pi5才這樣設計 這裡就依照自己購買的是哪款來選擇,我選擇Pi4 接下來要開始選擇系統 ![image](https://hackmd.io/_uploads/rypLM5kBa.png) 點擊後會彈出一個視窗,眼看都是樹梅派操作系統,哪來的HA? 別急,滾輪往下滾會看到一個選項「Other specific-purpose OS」 ![image](https://hackmd.io/_uploads/H1IqV91Ha.png) 點進去後就能看到HA了 ![image](https://hackmd.io/_uploads/rJ1WBqkSp.png) 點進去後一眼就能看到那熟悉的HA了 ![image](https://hackmd.io/_uploads/B1BUr9JHT.png) 點進去後會有兩個選項,我們只要按第一個選項即可 ![image](https://hackmd.io/_uploads/SkY6SqyHT.png) 接下來就要開始安裝系統,這時候你會說「欸不是?系統不用下載嗎?」 不用擔心接下來的步驟結束後開始燒入時就會開始下載 只是在之前我們要選擇你的SD卡 請先將Micro SD卡插入電腦 :::info 現在大多數電腦已經不再搭載SD卡讀卡機,如果沒有也沒關西,蝦皮上都有賣SD卡轉USB的讀卡機,大約30$就可以入手一個了 ::: 接上電腦後不需要格式化,但如果你的Micro SD卡有存資料的請先備份好以免開始安裝後會清除Micro SD卡數據,到時候你怎麼哭都沒用了 ![image](https://hackmd.io/_uploads/HkXg5qyB6.png) 點擊「選擇SD卡」後選擇你的裝置,如果你顯示的裝置有好幾個,我建議先把其他裝置卸載,只保留要燒入的Mcro SD卡,這樣做是避免燒錯裝置 ![image](https://hackmd.io/_uploads/ryLyj5Jrp.png) (因為我手邊沒有SD卡只好拿USB充當Micro SD卡...LOL 接下來就可以按下NEXT開始進行燒入 ![image](https://hackmd.io/_uploads/SyDcs5JHa.png) 這時候他會跳出 ![image](https://hackmd.io/_uploads/rkTji5kB6.png) 前面說過了,除非你不在乎SD卡裡的資料,那可以按下「是」 接下來就是漫長的下載、燒入、驗證,然後完成 由於我手邊沒有多餘的Raspberry Pi這裡就先暫時不演示,我再找時間開新的專題文 那以上就是這次的Home Assistant&Raspberry Pi 4最速安裝教學 其實這要算是最快速嗎... 我必須說樹梅派的軟體也是開發的非常容易上手,雖然我自己不是使用樹梅派來運作HA,只是近期在[Taiwan Home Assistant 同好交流](https://www.facebook.com/groups/151166072456061)上發現許多人也在研究如何讓更多聯網設備接入HA,在大學無聊的我也突然想動手裝飾一下我的宿舍,因而拿出樹梅派玩玩 總之希望這篇文章對你們有幫助,有任何問題有歡迎提出,期待我下一篇HA教學也歡迎追蹤一下我的推特,我會不定時更新推文(多多跟我這個邊緣人互動QAQ) * Twitter: [傳送們](https://twitter.com/RichieNitroTW) > 2023/11/27更新 > 感謝[Taiwan Home Assistant 同好交流](https://www.facebook.com/groups/151166072456061)的版主大佬`Yeh Jerry`[補充提醒](https://www.facebook.com/groups/151166072456061/posts/1089264161979576/?comment_id=1089266585312667)Raspberry Pi Image軟體下載下來的img檔會存在系統路徑`C:\Users\richiemeow\AppData\Local\Raspberry Pi\Imager\cache`的`lastdownload.cache`裡面,至於要如何獲取裡面的img可以使用winRAR或是7zip來打開讀取內部資料

    Import from clipboard

    Paste your markdown or webpage here...

    Advanced permission required

    Your current role can only read. Ask the system administrator to acquire write and comment permission.

    This team is disabled

    Sorry, this team is disabled. You can't edit this note.

    This note is locked

    Sorry, only owner can edit this note.

    Reach the limit

    Sorry, you've reached the max length this note can be.
    Please reduce the content or divide it to more notes, thank you!

    Import from Gist

    Import from Snippet

    or

    Export to Snippet

    Are you sure?

    Do you really want to delete this note?
    All users will lose their connection.

    Create a note from template

    Create a note from template

    Oops...
    This template has been removed or transferred.
    Upgrade
    All
    • All
    • Team
    No template.

    Create a template

    Upgrade

    Delete template

    Do you really want to delete this template?
    Turn this template into a regular note and keep its content, versions, and comments.

    This page need refresh

    You have an incompatible client version.
    Refresh to update.
    New version available!
    See releases notes here
    Refresh to enjoy new features.
    Your user state has changed.
    Refresh to load new user state.

    Sign in

    Forgot password
    or
    Sign in via Google Sign in via Facebook Sign in via X(Twitter) Sign in via GitHub Sign in via Dropbox Sign in with Wallet
    Wallet ( )
    Connect another wallet

    New to HackMD? Sign up

    By signing in, you agree to our terms of service.

    Help

    • English
    • 中文
    • Français
    • Deutsch
    • 日本語
    • Español
    • Català
    • Ελληνικά
    • Português
    • italiano
    • Türkçe
    • Русский
    • Nederlands
    • hrvatski jezik
    • język polski
    • Українська
    • हिन्दी
    • svenska
    • Esperanto
    • dansk

    Documents

    Help & Tutorial

    How to use Book mode

    Slide Example

    API Docs

    Edit in VSCode

    Install browser extension

    Contacts

    Feedback

    Discord

    Send us email

    Resources

    Releases

    Pricing

    Blog

    Policy

    Terms

    Privacy

    Cheatsheet

    Syntax Example Reference
    # Header Header 基本排版
    - Unordered List
    • Unordered List
    1. Ordered List
    1. Ordered List
    - [ ] Todo List
    • Todo List
    > Blockquote
    Blockquote
    **Bold font** Bold font
    *Italics font* Italics font
    ~~Strikethrough~~ Strikethrough
    19^th^ 19th
    H~2~O H2O
    ++Inserted text++ Inserted text
    ==Marked text== Marked text
    [link text](https:// "title") Link
    ![image alt](https:// "title") Image
    `Code` Code 在筆記中貼入程式碼
    ```javascript
    var i = 0;
    ```
    var i = 0;
    :smile: :smile: Emoji list
    {%youtube youtube_id %} Externals
    $L^aT_eX$ LaTeX
    :::info
    This is a alert area.
    :::

    This is a alert area.

    Versions and GitHub Sync
    Get Full History Access

    • Edit version name
    • Delete

    revision author avatar     named on  

    More Less

    Note content is identical to the latest version.
    Compare
      Choose a version
      No search result
      Version not found
    Sign in to link this note to GitHub
    Learn more
    This note is not linked with GitHub
     

    Feedback

    Submission failed, please try again

    Thanks for your support.

    On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

    Please give us some advice and help us improve HackMD.

     

    Thanks for your feedback

    Remove version name

    Do you want to remove this version name and description?

    Transfer ownership

    Transfer to
      Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.

        Link with GitHub

        Please authorize HackMD on GitHub
        • Please sign in to GitHub and install the HackMD app on your GitHub repo.
        • HackMD links with GitHub through a GitHub App. You can choose which repo to install our App.
        Learn more  Sign in to GitHub

        Push the note to GitHub Push to GitHub Pull a file from GitHub

          Authorize again
         

        Choose which file to push to

        Select repo
        Refresh Authorize more repos
        Select branch
        Select file
        Select branch
        Choose version(s) to push
        • Save a new version and push
        • Choose from existing versions
        Include title and tags
        Available push count

        Pull from GitHub

         
        File from GitHub
        File from HackMD

        GitHub Link Settings

        File linked

        Linked by
        File path
        Last synced branch
        Available push count

        Danger Zone

        Unlink
        You will no longer receive notification when GitHub file changes after unlink.

        Syncing

        Push failed

        Push successfully