Journal

Earthquake Sensor in the Bedroom: Safety Technology You May Not Know About

เซนเซอร์ตรวจจับแผ่นดินไหวในห้องนอน เทคโนโลยีเพื่อความปลอดภัยที่คุณอาจยังไม่รู้

May 16, 2026 · 1 min read
Earthquake Sensor in the Bedroom: Safety Technology You May Not Know About

Why Your Bedroom Needs an Earthquake Sensor

You spend roughly one-third of your life in the bedroom — and during sleep, environmental awareness drops to near zero. If an earthquake strikes at night, delayed awakening wastes the critical seconds needed to take cover or evacuate. While Thailand is not a primary seismic nation, tremors from earthquakes in Myanmar, Indonesia, and northern Thailand itself have caused alarm and damage across multiple regions. A bedroom earthquake sensor acts as a round-the-clock watchman, ready to alert you instantly while you sleep.

How Earthquake Sensors Work

Modern earthquake sensors use MEMS (Micro-Electro-Mechanical Systems) accelerometers that detect acceleration across three axes: X (left-right), Y (front-back), and Z (up-down). When ground movement causes any axis reading to exceed a set threshold, the device triggers an alert immediately. In seismic physics, earthquakes release two main wave types: P-waves (Primary waves) — faster, less destructive — followed by S-waves (Secondary waves), which travel slower but cause the actual damage. High-quality sensors that detect P-waves can provide 10–60 seconds of early warning before the damaging S-wave arrives — enough time to get under a table or reach a doorway.

Recommended Devices for the Bedroom

The Xiaomi Aqara Vibration Sensor (approx. 800–1,200 THB, Zigbee) suits condo bedrooms — compact, two-year battery life, mountable with double-sided tape on any surface, and directly compatible with Home Assistant. For higher accuracy, the Shelly Earthquake Sensor (Wi-Fi) sends alerts via cloud email and push notification, integrating well with Home Assistant. For the Maker community, a Grove Vibration Sensor paired with an ESP32 (under 600 THB total) allows full sensitivity customisation and communicates with Home Assistant via MQTT.

Home Assistant Automation for Maximum Safety

When the sensor detects above-threshold vibration, Home Assistant can execute multiple simultaneous actions: turn on all lights to illuminate escape routes; play a voice alert through Smart Speakers (“Vibration detected — please take precautions”); push notifications to all household smartphones; close the gas valve via Smart Relay; and temporarily cut power to high-risk circuits. A key advantage of Home Assistant is that automations run locally — no internet required — meaning the system still works if connectivity goes down during an event.

Questions & answers

What is a MEMS earthquake sensor?
A MEMS accelerometer is a tiny chip measuring acceleration across X, Y, and Z axes — the same technology used in smartphones. When ground movement exceeds a set threshold, it triggers an instant alert.
What is the difference between P-waves and S-waves?
P-waves arrive first, travel faster, and cause less damage. S-waves arrive later but are far more destructive. Sensors detecting P-waves provide 10–60 seconds of early warning before damaging shaking begins.
Can the Aqara Vibration Sensor be installed in a condo?
Yes. It is compact, battery-powered (no wiring needed), and mounts with double-sided tape — ideal for condos where drilling walls is prohibited.
Does Home Assistant run earthquake automations locally without internet?
Yes. Home Assistant processes automations locally, so the system continues to function even if internet connectivity is lost during an event — a critical advantage in emergencies.
Is the DIY ESP32+Grove Vibration Sensor difficult to set up?
It requires basic Arduino/ESPHome knowledge, but extensive online documentation and community support make it accessible. Total cost is under 600 THB with full sensitivity customisation.

Related reading