pet/: voice/camera companion app (Python + ADB + Termux)android-flash-kit/: phone flashing/rooting related assetsimages/: boot/twrp/patched imagesmeta/: kernel/vbmeta/dtb/ramdisk artifactstools/: magisk/busybox/apk/toolslib/: extracted native libs
Build a practical home safety system for a 3.5-floor house:
- Easy SOS access (especially near stairs)
- Minimal privacy impact
- Reliable alerts to family
ESP32 SOS buttonsdistributed by floor/stairsPi4as central receiver and alert routerPhoneas optional secondary path (not single point of failure)Camerafor event-triggered snapshots only (no default 24/7 recording)
- Floor 1: 1 SOS button near living area
- Floor 2: 1 SOS button near bedroom/living area
- Floor 3: 1 SOS button near frequently used space
- Stairs:
- 1 button at lower landing
- 1 button at upper landing
- Optional: 1 large slap/pull type trigger at middle segment
Suggested device IDs:
F1_MAIN,F2_MAIN,F3_MAIN,STAIR_LOW,STAIR_HIGH,STAIR_MID
- Raspberry Pi 4B (already available)
- microSD card (high endurance recommended)
- Official/quality Pi power supply
- Stable Wi-Fi AP / Mesh node (for full-house signal)
- ESP32 development boards x 5-6
- Large momentary buttons x 5-6 (high visibility)
- Enclosures x 5-6
- USB power adapters + cables (where wall power exists)
- Battery kits for no-outlet areas (stairs):
- 18650 holder + protected 18650 cells OR AA battery pack
- Optional charging board / battery protection module
- Buzzer or siren module (local audible confirmation)
- LED indicator strips/buttons (visual confirmation)
- PIR/mmWave sensor for inactivity detection (stairs/high-risk zones)
- UPS/power bank for Pi backup power
- 1 low-cost USB webcam or Pi camera
- Use event-triggered snapshot only, no always-on stream by default
- Pi Receiver: Python FastAPI/Flask or Node.js endpoint
- Transport: HTTP webhook (simple) or MQTT (scalable)
- Notification: LINE Notify alternative / Telegram bot / SMS provider
- Logging: local JSON/SQLite event log
- Heartbeat monitor: offline alert when SOS node stops reporting
- Short press:
assist(normal help request) - Long press (>=3 sec):
emergency - All events include:
device_idevent_typetimestampbattery_level(if available)
Escalation example:
- Send instant message to family
- If no acknowledgement in 60 sec, re-alert + backup contact
- Optional local buzzer feedback to confirm event was sent
- No continuous audio recording
- No continuous public streaming
- Camera snapshots only on event trigger
- Auto-delete event images after retention window (e.g., 24-72h)
- Define final button count and install locations
- Buy 2 prototype ESP32 + buttons first
- Build Pi receiver endpoint (
/sos) - Send Telegram/LINE alert from Pi on event
- Implement short/long press detection on ESP32
- Add heartbeat ping from ESP32 to Pi (every 5-10 min)
- Add offline alert if heartbeat missing > 30 min
- Deploy full 5-6 SOS nodes with unique IDs
- Label each device physically (same as
device_id) - Validate Wi-Fi coverage on every floor and stair segment
- Add battery status report + low battery alert
- Add local LED/buzzer confirmation on button press
- Add backup power for Pi (UPS/power bank)
- Add event log dashboard (last 7 days)
- Add monthly maintenance checklist
- Run family drill: simulate emergency and verify notification path
- Weekly: test at least one button per floor
- Monthly: battery inspection/replacement plan for stair buttons
- Quarterly: full end-to-end emergency drill
- Existing
pet/app remains available for voice/camera interaction. - Safety SOS path should be independent from voice recognition reliability.