ข้ามไปยังเนื้อหา

OBH-IoT System Architecture

The Overbrook Hospital (OBH) IoT platform — branded RILF (RACKSYNC Integration Library & Framework) — is a multi-site healthcare IoT infrastructure deployed across Chiang Rai province, Thailand. Built by RACKSYNC Co., Ltd. on top of Home Assistant, it provides unified facility management, environmental monitoring, energy tracking, and security surveillance for a hospital campus operating under JCI FMS accreditation standards.

Key Design Principles:

  • Local-first operation (fully functional without internet)
  • Secure remote access via Cloudflare Tunnel (Zero Trust) — no port forwarding or VPN required for service access
  • Vendor-agnostic device integration (2,400+ compatible components via HA ecosystem)
  • Protocol bridging: WiFi, Zigbee, Z-Wave, BLE, IR, RS485/Modbus, Matter
  • Module and library updates every 3-6 months
Field Value
Project IoT Infrastructure for Overbrook Hospital Chiangrai
Customer Overbrook Hospital, Church of Christ in Thailand Foundation
Address 17 Singhaklai Rd., Wiang, Chiang Rai 57000
Vendor RACKSYNC Co., Ltd. (135/5 Moo 1, Khunthale, Surat Thani 84100)
Platform RILF (RACKSYNC Integration Library & Framework)
Author Damrongwit Nusuk
Source Code github.com/racksync/obh-monitor (monitoring stack)
Prior Deployments Thanto Hospital, Yingo Hospital, Maikan Hospital
Site Codename Network Subnet Location
Main Site OBH 194.1.x.x/22 Overbrook Hospital, Chiang Rai
DR-Site (แม่สาย) OBH-MS 194.2.1.x/24 Overbrook Clinic, Mae Sai
DR-Site (เชียงของ) OBH-CK 194.3.1.x/24 Overbrook Clinic, Chiang Khong
No VM Name IP Address Host OS Docker Role
1 Core 194.1.0.1 HA OS (Alpine 3.23, kernel 6.12.85-haos) HA Supervisor Home Assistant (RILF Server) — migrated 2026-05-09
2 Database / Time-Series 194.1.0.2 Debian 11 bullseye 20.10.5 InfluxDB 2.7.1, Grafana 10.0.3, MariaDB 11.0.2, Chronograf, PhpMyAdmin, Prometheus 2.46.0
3 Gateway 194.1.0.3 Debian 11 bullseye (kernel 5.10.0-21) 20.10.5 Portainer 2.29.0, Cloudflare Tunnel, node-exporter
4 Core-Frigate 194.1.0.4 Debian 12 bookworm (kernel 6.1.0-13) 20.10.24 Frigate 0.17.1 (upgraded 2026-05-10), node-exporter
5 ImageSharing Server 194.1.0.11 Ubuntu 23.10 mantic ⚠️ EOL — Chevereto, Moodle, Guacamole 1.4.0, Portainer
6 UTI-IoT-App 194.1.0.5 Debian 12 bookworm — Paperless-ngx, Plane, LineBot, Booking, FlipBook
7 UTI-IoT-DevTest 194.1.0.6 — — Development/Testing
8 UTI-IoT-AI (n8n) 194.1.0.13 Debian 12 bookworm 28.3.2 n8n 2.20.6, pgvector/pg16, pgAdmin, Portainer CE LTS
9 Monitoring 194.1.0.15 Debian 12 bookworm 28.5.1 Prometheus 2.47.2, AlertManager 0.29.0, Grafana 12.2.1, nginx 1.29.3, node-exporter 1.10.2, cloudflared 2025.11.1, Weather Station

Last verified: 2026-11-22 via live SSH audit (addon versions, container images, registries). See ma/2569/software-version-audit.md for the 2026-05 baseline inventory.

Site SSID Subnet
Main Site OBHIoT 194.1.1.0/22
DR-Site (แม่สาย) OBHMSIoT 194.2.1.0/24
DR-Site (เชียงของ) OBHCKIoT 194.3.1.0/24

WiFi APs: Ruijie hardware (firmware RGOS 11.1(6)B1P21), managed via central console.

Service URL Description
Home Assistant (RILF) rilf-iot.ovbhospital.com Central IoT Hub
Home Assistant (Tunnel) rilf-hass.ovbhospital.com HA via Tunnel Add-ons
Node-RED rilf-nodered.ovbhospital.com Flow-based Automation
Grafana (Internal) rilf-grafana.ovbhospital.com IoT Dashboards & Visualization
InfluxDB rilf-influxdb.ovbhospital.com Time-Series Database
Chronograf rilf-chronograf.ovbhospital.com InfluxDB UI
Portainer rilf-portainer.ovbhospital.com Docker Management (Gateway)
MySQL (MariaDB) rilf-db.ovbhospital.com Relational Database
Service URL Description
n8n agent.ovbhospital.com Workflow Automation & Webhook Engine
Grafana (Monitoring) metrics.ovbhospital.com Infrastructure Monitoring Dashboards
Prometheus prom.ovbhospital.com Metrics Collection (Cloudflare Zero Trust)
AlertManager alertmanager.ovbhospital.com Alert Routing (Cloudflare Zero Trust)
Runbook runbook.ovbhospital.com Troubleshooting guides linked from alerts
Weather Station weather.ovbhospital.com Weather data collection
Image Sharing imagesharing.ovbhospital.com Medical image file sharing
Component Protocol/Purpose
Mosquitto Broker MQTT message broker (core add-on 7.1.3)
Zigbee2MQTT Zigbee protocol bridge via Mosquitto
SmartIR IR-based climate control (BroadLink)
Tasmota ESP device firmware management
Sonoff Local Service Direct Sonoff device control
Tuya v2 Tuya cloud/local integration
Matter Protocol Next-gen IoT standard support
BLE Proxy Bluetooth Low Energy device support
Google Nest TTS voice alerts (Thai/English) & Google Assistant
Apple HomeKit iOS device control
UniFi Controller Network management
Coral AI Edge TPU image processing & object detection
HACS Home Assistant Community Store
Protocol Use Case
MQTT Primary IoT device communication (Tasmota, ESPHome, carts)
Modbus RTU/TCP Solar inverters (via RS485/EW11 bridges), energy meters
SNMP UPS monitoring (community: OBHIoT)
RTSP CCTV camera feeds to Frigate
Zigbee Door sensors, presence sensors, water leak sensors
IR (BroadLink) Air conditioner control
WebSocket Real-time UI communication
REST API External service integration
RS485 Industrial sensors (solar, nitrous, Emerson temp)
  • VPN: FortiClient SSL VPN via vpn1-4.ovbhospital.com (port 10443)
  • Virtualization: VMware vCenter at obhvc1.obhlocal.com
  • Cloudflare Tunnel: Secure external access to all internal services
  • Cloudflare Zero Trust: Access control for Prometheus, AlertManager
  • AnyDesk: Monitoring PCs (OBHIoTM1: 984 855 944, OBHIoTM2: 439 370 230)
  • SSH: Cloudflared ProxyCommand SSH for remote management
IoT Devices (Tasmota/ESPHome/Zigbee/SONOFF)
│
├── MQTT (Mosquitto) ──→ Home Assistant (RILF)
│ │
│ ├── InfluxDB (time-series storage)
│ │ │
│ │ └── Grafana (visualization)
│ │
│ ├── Node-RED (automation flows)
│ │ │
│ │ └── MQTT publish (processed data)
│ │
│ ├── MySQL (analytics, relational data)
│ │
│ └── Telegram/LINE/Email (notifications)
│
├── Modbus RTU ──→ EW11/Waveshare RS485 bridges ──→ Home Assistant
│ (Solar Inverters: Huawei SUN2000 series)
│
├── SNMP ──→ Home Assistant
│ (UPS: 5 units across 3 sites)
│
├── RTSP ──→ Frigate NVR (Coral Edge TPU) ──→ Home Assistant
│ (25 CCTV Cameras, person detection @ 5 FPS)
│
└── IR (BroadLink RM) ──→ Home Assistant (SmartIR)
(AC Control: Mitsubishi, TCL units)
Monitoring Stack (separate):
Node Exporter ──→ Prometheus ──→ AlertManager ──→ Email/Telegram/N8N
└──→ Grafana (metrics.ovbhospital.com)
View Content
RILF (default) UPS power bars, temperature, humidity, water level, AC switches, door sensors, CCTV
AC 3 thermostat controls (DC, DR Main, DR Mae Sai)
Power Consumption 3-phase energy for Grid 1 (Building K) and Grid 2 (Building B)
Solar Solar power monitoring
Temperature/Humidity Sensors + averages + 30-day statistics
Camera 13 RTSP feeds via WebRTC
Water Level 6 tanks (basement + rooftop) with %, meters, liters
Cart (Smart Trolley) 21 medication carts across wards PR3-PR6, KR1-KR7, ICU, NM
Settings LINE Notify tokens, automation toggles, threshold set-points
Flow Tab Purpose
Heartbeat System health monitoring
AC (DC) Data center AC automation
AC (DR) Main DR room AC automation
AC (DR-MS) Mae Sai DR room AC automation
Notify: Snap Camera snapshot on events
Notify: Power Power anomaly alerts
Notify: Water Water level alerts (3x daily)
Global Shared configuration
Math Sensor calculations & unit conversions
Cart Medicine cart battery monitoring
Phase Scope
Phase 1-2 Main Site core infrastructure, sensors, pumps, solar, cameras
Phase 3 DR-Site เชียงของ (Zigbee, AC Controllers, IR, Temp, UPS)
Phase 4 Expanded Main Site & แม่สาย (additional coordinators, AC, IR, Temp sensors)
2025 Monitoring stack (Prometheus/AlertManager), power meter survey
2026 18 additional 3-phase energy monitors (RS485), annual MA renewal

The IoT system directly supports Joint Commission International (JCI) Facility Management and Safety standards:

JCI Standard IoT System Support
FMS.06 Fire Safety LPG gas leak detection & alarm, smoke detection
FMS.07 Medical Equipment Medicine cart tracking (21 units), ZKTeco time attendance
FMS.08 Utility Systems Energy monitoring (3-phase), UPS SNMP, water level management, pump control
FMS.09 Emergency Preparedness Real-time alerting (Telegram/LINE/Email/TTS), runbook links
FMS.10 Construction Safety Environmental sensor monitoring during renovations
GHI Environmental Solar energy production tracking, energy consumption analytics