The best Raspberry Pi microSD cards for Home Assistant

Disclosure: This post contains affiliate links. If you click through and make a purchase, I will earn a commission, at no additional cost to you. Read my full disclosure here.
A person inserting an SD card into a Macbook.

Despite the emergence of Home Assistant Blue, the Raspberry Pi is quite possibly the most popular device to run Home Assistant on. It is small, relatively cheap, and won’t make a noticeable dent in your electricity bill. But, the Raspberry Pi has one pitfall: It uses microSD cards for storage, and microSD cards aren’t very reliable at the best of times. This issue only gets exacerbated when they’re constantly being written to. Unfortunately, that is precisely what Home Assistant does. For that reason, I have put together this list of the best microSD for your Raspberry Pi running Home Assistant.

While there are ways of using external SSDs, which are much more resilient, they can be quite complicated to set up. And despite the downsides of using microSD cards, I still recommend them for absolute beginners who are only getting their feet wet. Once you are well into the project and haven't given up on Home Assistant, you can start to think about other storage solutions.

So, what is one to do in this situation? My recommendation is to choose the most suitable microSD card for a Raspberry Pi running Home Assistant to begin with. If your cheap microSD card bought from a dodgy store fails within a few weeks, you will quickly become disheartened and might give up on getting to know Home Assistant. By choosing the right microSD card for the job, your setup should survive for longer. Even if the recommended cards cost more than the alternatives, they will save you money over time simply by not dying.

CanaKit Raspberry Pi 4 Extreme Kit - Aluminum Edition (8GB RAM)
GeeekPi Raspberry Pi 4 8GB Starter Kit - 64GB Edition, Raspberry Pi 4 Case with PWM Fan, Raspberry Pi 18W 5V 3.6A Power Supply with ON/Off Switch, HDMI Cables for Raspberry Pi 4B (8GB RAM)
CanaKit Raspberry Pi 4 4GB Starter PRO Kit - 4GB RAM
CanaKit Raspberry Pi 4 4GB Basic Kit with PiSwitch (4GB RAM)
Product
CanaKit Raspberry Pi 4 Extreme Kit - Aluminum Edition
GeeekPi Raspberry Pi 4 8GB Starter Kit
CanaKit Raspberry Pi 4 4GB Starter PRO Kit
CanaKit Raspberry Pi 4 Basic Kit
Model
Raspberry Pi 4 Model B (8 GB)
Raspberry Pi 4 Model B (8 GB)
Raspberry Pi 4 Model B (4 GB)
Raspberry Pi 4 Model B (8 GB)
PSU
Power supply with noise filter
USB-C power supply (5V/3.6A)
Power supply with noise filter
Power supply with noise filter
Accessories
Premium Aluminum Case with Built-In Passive Heat Sink Cooling
Case; cooling fan wit four aluminium heatsinks, 64 GB microSD card, two HDMI cables
Premium High-Gloss Case with Integrated Fan Mount, Low Noise Bearing System Fan
Set of 3 aluminium heat sinks
Price
$189.99
$279.99
Price not available
Price not available
Amazon Prime
Amazon Prime
-
-
CanaKit Raspberry Pi 4 Extreme Kit - Aluminum Edition (8GB RAM)
Product
CanaKit Raspberry Pi 4 Extreme Kit - Aluminum Edition
Model
Raspberry Pi 4 Model B (8 GB)
PSU
Power supply with noise filter
Accessories
Premium Aluminum Case with Built-In Passive Heat Sink Cooling
Price
$189.99
Amazon Prime
GeeekPi Raspberry Pi 4 8GB Starter Kit - 64GB Edition, Raspberry Pi 4 Case with PWM Fan, Raspberry Pi 18W 5V 3.6A Power Supply with ON/Off Switch, HDMI Cables for Raspberry Pi 4B (8GB RAM)
Product
GeeekPi Raspberry Pi 4 8GB Starter Kit
Model
Raspberry Pi 4 Model B (8 GB)
PSU
USB-C power supply (5V/3.6A)
Accessories
Case; cooling fan wit four aluminium heatsinks, 64 GB microSD card, two HDMI cables
Price
$279.99
Amazon Prime
CanaKit Raspberry Pi 4 4GB Starter PRO Kit - 4GB RAM
Product
CanaKit Raspberry Pi 4 4GB Starter PRO Kit
Model
Raspberry Pi 4 Model B (4 GB)
PSU
Power supply with noise filter
Accessories
Premium High-Gloss Case with Integrated Fan Mount, Low Noise Bearing System Fan
Price
Price not available
-
CanaKit Raspberry Pi 4 4GB Basic Kit with PiSwitch (4GB RAM)
Product
CanaKit Raspberry Pi 4 Basic Kit
Model
Raspberry Pi 4 Model B (8 GB)
PSU
Power supply with noise filter
Accessories
Set of 3 aluminium heat sinks
Price
Price not available
-

microSD card failure prevention

There are ways of limiting the amount of data your Home Assistant writes to your Raspberry Pi's microSD card. Limiting those writes is the easiest way of extending the lifetime of your microSD card. The most frequent writes come from the recorder, which stores details from all of your sensors and switches etc. in Home Assistant’s database.

Be prepared to burn through some microSD cards

It is recommended to set the commit_interval of Home Assistant’s recorder to a higher value (at least 30 seconds) when using a microSD card. Making that one adjustment should extend your microSD card’s lifetime considerably.

Home Assistant disaster prevention

Any microSD will most likely fail at some point. I won’t be recommending any indestructible microSD cards, simply because they don't exist. Were your microSD to fail, you wouldn't want to start configuring your Home Assistant from scratch. The easiest way of assuring you don't have to do so, is by making sure you frequently back up your Home Assistant configuration.

There are multiple ways of backing up Home Assistant, and you can even have your backups automatically uploaded to Google Drive and other cloud storage providers. Setting up an automated backup task should be one of the first things you do, right after installing Home Assistant on your Raspberry Pi. It is never too early to start backing up your Home Assistant configuration.

Avoid these microSD cards for the Raspberry Pi

Whatever you do, do never buy a microSD card for your Raspberry Pi running Home Assistant from an unreliable source. microSD cards bought from a Chinese store you never heard of might be cheaper, but you have no way of knowing their legitimacy until you have them in your hands. Even then, some counterfeits are almost impossible to identify as such. To add to that, selling fake microSD cards, which will report a larger storage capacity than they actually have, is a common scam.

Additionally, when buying microSD cards from an untrustworthy source, you will probably also have issues when it comes to replacing the card under warranty. Save yourself the headache and only go with well-known and recommended brands.

The best microSD cards for Home Assistant

The Home Assistant developers recommend you go with an Application Class 2 rated microSD card. While that is certainly good advice, I'm going to take it one step further and recommend you buy an endurance microSD card. Endurance microSD cards are meant to be used in dashcams and security cameras. Just like Home Assistant does when running on a Raspberry Pi, those cameras are continuously writing to the microSD card.

When it comes to size, I would go with at least a 32 GB microSD card. However, that is the absolute minimum I can recommend. If your budget allows it, go with a 128 GB or larger card to future-proof your setup. Below you will find a list of the best microSD cards for Home Assistant. The endurance numbers are for the 128 GB version of each microSD card.

SanDisk MAX Endurance and Samsung PRO Endurance

SanDisk and Samsung are the manufacturers of the most impressively specced microSD cards rated for endurance. This should come as no surprise, as SanDisk (who was bought up by Wester Digital seceral years ago) and Samsung are two of the largest manufacturers of NAND flash memory. As such, they always get to keep the best chips for themselves.

The SanDisk MAX Endurance beats the Samsung PRO Endurance in terms of write speed, overall endurance, and warranty. While the Samsung PRO Endurance might be slightly cheaper, I would always opt for more endurance. Especially if you are planning on using the Raspberry Pi for more than a couple of months.

Best choice
SanDisk 128GB MAX Endurance microSDXC Card with Adapter for Home Security Cameras and Dash cams - C10, U3, V30, 4K UHD, Micro SD Card - SDSQQVR-128G-GN6IA
SanDisk 64GB MAX Endurance microSDXC Card with Adapter for Home Security Cameras and Dash cams - C10, U3, V30, 4K UHD, Micro SD Card - SDSQQVR-064G-GN6IA
Samsung PRO Endurance 128GB 100MB/s (U1) MicroSDXC Memory Card with Adapter (MB-MJ128GA/AM)
Samsung PRO Endurance 64GB 100MB/s (U1) MicroSDXC Memory Card with Adapter (MB-MJ64GA/AM)
Title
SanDisk MAX Endurance
SanDisk MAX Endurance
Samsung PRO Endurance
Samsung PRO Endurance
Size
128 GB
64 GB
128 GB
64 GB
Use
Video monitoring
Video monitoring
Video monitoring
Video monitoring
Write speed
Up to 40MB/s
Up to 40MB/s
Up to 30MB/s
Up to 30MB/s
Read speed
Up to 100MB/s
Up to 100MB/s
Up to 100MB/s
Up to 100MB/s
Endurance
Up to 60,000 hours (over 13 years) of Full HD video; total hours less for 4K
Up to 30,000 hours
Up to 43,800 hours of 4K and Full HD recording and playback
Up to 43,800 hours of 4K and Full HD recording and playback
Other features
Temperature proof, waterproof, shockproof, and x-ray proof
Temperature proof, waterproof, shockproof, and x-ray proof
Shockproof, waterproof, temperature proof, x-ray proof, and magnetic proof
Shockproof, waterproof, temperature proof, x-ray proof, and magnetic proof
Warranty
10-year limited manufacturer warranty
10-year limited manufacturer warranty
5-year limited warranty
5-year limited warranty
Price
$26.99
$16.49
$39.99
$19.07
-
Amazon Prime
-
Amazon Prime
Best choice
SanDisk 128GB MAX Endurance microSDXC Card with Adapter for Home Security Cameras and Dash cams - C10, U3, V30, 4K UHD, Micro SD Card - SDSQQVR-128G-GN6IA
Title
SanDisk MAX Endurance
Size
128 GB
Use
Video monitoring
Write speed
Up to 40MB/s
Read speed
Up to 100MB/s
Endurance
Up to 60,000 hours (over 13 years) of Full HD video; total hours less for 4K
Other features
Temperature proof, waterproof, shockproof, and x-ray proof
Warranty
10-year limited manufacturer warranty
Price
$26.99
-
SanDisk 64GB MAX Endurance microSDXC Card with Adapter for Home Security Cameras and Dash cams - C10, U3, V30, 4K UHD, Micro SD Card - SDSQQVR-064G-GN6IA
Title
SanDisk MAX Endurance
Size
64 GB
Use
Video monitoring
Write speed
Up to 40MB/s
Read speed
Up to 100MB/s
Endurance
Up to 30,000 hours
Other features
Temperature proof, waterproof, shockproof, and x-ray proof
Warranty
10-year limited manufacturer warranty
Price
$16.49
Amazon Prime
Samsung PRO Endurance 128GB 100MB/s (U1) MicroSDXC Memory Card with Adapter (MB-MJ128GA/AM)
Title
Samsung PRO Endurance
Size
128 GB
Use
Video monitoring
Write speed
Up to 30MB/s
Read speed
Up to 100MB/s
Endurance
Up to 43,800 hours of 4K and Full HD recording and playback
Other features
Shockproof, waterproof, temperature proof, x-ray proof, and magnetic proof
Warranty
5-year limited warranty
Price
$39.99
-
Samsung PRO Endurance 64GB 100MB/s (U1) MicroSDXC Memory Card with Adapter (MB-MJ64GA/AM)
Title
Samsung PRO Endurance
Size
64 GB
Use
Video monitoring
Write speed
Up to 30MB/s
Read speed
Up to 100MB/s
Endurance
Up to 43,800 hours of 4K and Full HD recording and playback
Other features
Shockproof, waterproof, temperature proof, x-ray proof, and magnetic proof
Warranty
5-year limited warranty
Price
$19.07
Amazon Prime

Cheaper microSD cards for Home Assistant

If the options above are too pricey for your liking, you will find a handful of cheaper endurance cards from multiple manufacturers. These will obviously not last as long as the more expensive options and have a shorter warranty.

Best choice
Western Digital WDD128G1P0A WD Purple 128 GB MicroSDXC
SanDisk 128GB High Endurance Video MicroSDXC Card with Adapter for Dash Cam and Home Monitoring systems - C10, U3, V30, 4K UHD, Micro SD Card - SDSQQNR-128G-GN6IA
Kingston High Endurance 128GB MicroSD SDXC Flash Memory Card High Performance, 1080P, Full HD, Up to 95MB/S Read, (SDCE/128GB)
Title
Western Digital WD Purple
SanDisk High Endurance
Kingston High Endurance
Use
Video monitoring
Video monitoring
Video monitoring
Write speed
Up to 60MB/s
Up to 40MB/s
Up to 45MB/s
Read speed
Up to 100MB/s
Up to 100MB/s
Up to 95MB/s
Endurance
Up to 64 TBW (terabytes written)
Up to 10,000 hours of Full HD
Up to 20, 000 hours of Full HD
Other features
Supports -25°C to 85°C temperature range and is humidity resistant
Temperature proof, waterproof, shockproof, and x-ray proof
Shockproof, waterproof, temperature proof, and protected from x-rays
Warranty
3-year limited manufacturer warranty
2-year manufacturer warranty
2-year warranty
Price
$49.99
$14.97
$19.99
Best choice
Western Digital WDD128G1P0A WD Purple 128 GB MicroSDXC
Title
Western Digital WD Purple
Use
Video monitoring
Write speed
Up to 60MB/s
Read speed
Up to 100MB/s
Endurance
Up to 64 TBW (terabytes written)
Other features
Supports -25°C to 85°C temperature range and is humidity resistant
Warranty
3-year limited manufacturer warranty
Price
$49.99
SanDisk 128GB High Endurance Video MicroSDXC Card with Adapter for Dash Cam and Home Monitoring systems - C10, U3, V30, 4K UHD, Micro SD Card - SDSQQNR-128G-GN6IA
Title
SanDisk High Endurance
Use
Video monitoring
Write speed
Up to 40MB/s
Read speed
Up to 100MB/s
Endurance
Up to 10,000 hours of Full HD
Other features
Temperature proof, waterproof, shockproof, and x-ray proof
Warranty
2-year manufacturer warranty
Price
$14.97
Kingston High Endurance 128GB MicroSD SDXC Flash Memory Card High Performance, 1080P, Full HD, Up to 95MB/S Read, (SDCE/128GB)
Title
Kingston High Endurance
Use
Video monitoring
Write speed
Up to 45MB/s
Read speed
Up to 95MB/s
Endurance
Up to 20, 000 hours of Full HD
Other features
Shockproof, waterproof, temperature proof, and protected from x-rays
Warranty
2-year warranty
Price
$19.99

2 thoughts on “The best Raspberry Pi microSD cards for Home Assistant”

Leave a comment

Share to...