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

OBH-IoT Home Assistant Implementation (Live System)

Data gathered from live system at cf-rilf-ha on 2026-05-06 (read-only scan).

Field Value
Hostname rilf-web
OS Debian GNU/Linux 12 (bookworm)
Kernel Linux 6.1.0-18-amd64
Machine qemux86-64 (VMware)
HA Core 2025.4.1 (latest: 2026.4.4)
Supervisor 2026.04.2
Docker 26.0.1
Timezone Asia/Bangkok
Channel stable
State running, healthy
IP (internal) 172.30.32.1
Port 8123 (no SSL, behind reverse proxy)
Metric Count
Total Entities 3,132
Total Devices 181
Installed Add-ons 18
Node-RED Flow Tabs 31
Node-RED Total Nodes 3,744
CCTV Cameras 13 (in HA)
Zigbee Coordinators 10 (8 RACKSYNC multipoint + 2 local)

Last verified: 2026-11-22 (live SSH audit — entity/device registries, flows.json scan; HA core 2026.11.1, Node-RED add-on 22.2.2, Mosquitto 7.1.3)

Domain Count
sensor 1,612
binary_sensor 172
switch 154
input_boolean 53
input_number 42
number 35
image 26
update 24
input_datetime 17
input_text 13
camera 13
device_tracker 10
light 8
media_player 6
select 5
remote 4
person 3
climate 3
button 2
tts 1
Manufacturer Count
Tasmota 61
Frigate 14
RACKSYNC Add-ons Suite 10
Apple (mobile_app) 7
Xiaomi 7
Broadlink 4
Aubess 4
Home Assistant Community Apps 3
Espressif 3
Google Inc. 3
TCL 2
Zigbee2MQTT 2
Aqara 2
Tuya 1
SONOFF 1
Others 14
Add-on Version Latest Repository
Node-RED 19.0.2 21.0.7 Community
Mosquitto Broker 6.5.0 7.1.3 Core
Advanced SSH & Web Terminal 23.0.8 23.0.8 Community
Frigate Proxy 1.5 1.6 Frigate Add-ons
Studio Code Server 5.18.4 6.0.1 Community
Cloudflare Tunnel Zero Trust 2024.8.1 2026.2.1 RACKSYNC
AutoSSH Tunnel 2023.8.2 2025.11.1 RACKSYNC
Prometheus Node Exporter 2023.10.1 2023.10.1 RACKSYNC
RS ZB #01 (Zigbee2MQTT) 1.39.0-1 2.6.0-1 RACKSYNC
RS ZB #02 (Zigbee2MQTT) 1.39.0-1 2.6.0-1 RACKSYNC
Add-on Version Repository Notes
RS ZB #3 (local) 1.32.1-1 Local Legacy local add-on
RS ZB #4 (local) 1.32.1-1 Local Legacy local add-on
RS ZB #03 1.39.0-1 RACKSYNC Coordinator offline/disconnected
RS ZB #04 1.39.0-1 RACKSYNC Coordinator offline/disconnected
RS ZB #05 1.39.0-1 RACKSYNC Coordinator offline/disconnected
RS ZB #06 1.39.0-1 RACKSYNC Coordinator offline/disconnected
RS ZB #07 1.39.0-1 RACKSYNC Coordinator offline/disconnected
RS ZB #08 1.39.0-1 RACKSYNC Coordinator offline/disconnected
Repository Slug
RACKSYNC - Add-ons Suite eb9ee392
RACKSYNC - Prometheus Node Exporter e1810f8e
Home Assistant Community Apps a0d7b954
Frigate Add-ons ccab4aaf
ESPHome 5c53de3b
Music Assistant d5369777
Local apps local
Official apps core
Integration Instance Source
hassio Supervisor system
mqtt Mosquitto broker hassio
tasmota Tasmota user
broadlink RM01-DC-IR reauth
broadlink RM02-DR-IR dhcp
broadlink RM03-DR-IR-MAESAI user
broadlink RM04-DR-IR-CK user
frigate 194.1.0.4:5000 user
webrtc WebRTC Camera user
forecast_solar OBH user
hacs HACS user
nodered Node-RED user
cast Google Cast zeroconf
google_translate TTS onboarding
google_generative_ai_conversation Google AI user
systemmonitor System Monitor import
ipp EPSON L5290 Series zeroconf
go2rtc go2rtc system
mcp_server Assist user
sun Sun import
met Weather onboarding
radio_browser Radio Browser onboarding
backup Backup system

Phanuwat’s iPhone, GooNu’s iPad, YungYingHome, SCT-Tab M10, MaNuT, M2007J22G, Redmi Note 9 Pro, MaNuT-S, OBHIPAD11 Normal, iPad

Component Purpose
frigate Frigate NVR integration
hacs Home Assistant Community Store
nodered Node-RED companion integration
smartir SmartIR climate control via IR
webrtc WebRTC camera streaming
# Include files
binary_sensor: includes/binary_sensor.yaml
camera: includes/camera/camera.yaml
climate: includes/climate.yaml
http: includes/http.yaml
influxdb: includes/influxdb.yaml
mqtt: includes/mqtt.yaml
notify: includes/notify.yaml
sensor: includes/sensors/ (merge_list from directory)
telegram_bot: includes/telegram_bot.yaml
tts: includes/tts.yaml
utility_meter: includes/utility.yaml
# Helpers
input_boolean: includes/input_boolean.yaml
input_datetime: includes/input_datetime.yaml
input_number: includes/input_number.yaml
input_select: includes/input_select.yaml
input_text: includes/input_text.yaml
# Recorder
recorder: includes/recorder/recorder.yaml (MySQL, 90-day purge)
history: includes/recorder/history.yaml
logbook: includes/recorder/logbook.yaml
logger: includes/logger.yaml
Name Device Code IR Controller Temp Sensor Humidity Sensor
ac1_dc 1121 remote.rm01_dc_ir obh_temp_01 obh_temp_01
ac2_dr 1122 remote.rm02_dr_ir obh_temp_02 obh_temp_02
ac3_dr 1122 remote.rm03_dr_ir_maesai obh_temp_03 obh_temp_03
Remote MAC Location
RM01-DC-IR ec:0b:ae:9e:47:82 Data Center (Mitsubishi)
RM02-DR-IR e8:16:56:1c:ac:91 DR Room Main (TCL)
RM03-DR-IR-MAESAI e8:16:56:1c:91:b1 DR Room Mae Sai
RM04-DR-IR-CK e8:16:56:1c:7f:be DR Room Chiang Khong
Platform Name Target
telegram IoT Electrical Chat ID from secrets
telegram IoT Water Chat ID from secrets
telegram IoT Cart Chat ID from secrets
telegram IoT Data Center Chat ID from secrets
telegram IoT Engineering Chat ID from secrets
telegram IoT Security Chat ID from secrets
telegram IoT IT Chat ID from secrets
telegram IoT Testing Chat ID from secrets

Telegram bot polling mode with 6 allowed chat IDs: Debug, Electrical, Data Center, Engineering, Security, Smart Trolley.

Google Translate text-to-speech with caching (5-min memory).

Trusted proxies: 127.0.0.1, 194.1.0.3 (gateway), 194.1.0.1 (self). CORS: rilf-dashboard-rev.wizroute.com, rilf-iot.ovbhospital.com, rilf-hass.ovbhospital.com, weather.ovbhospital.com.

MySQL at 194.1.0.2, database ha, charset utf8mb4. 90-day purge, 15-second commit interval.

InfluxDB v2 at 194.1.0.2:8086, organization MTD-OBH, bucket hass. Selective entity inclusion — only energy, solar, water, temperature, UPS, and cart entities are stored.

Category Helpers
Pump Control pump_1/2/3_automate, pump_notify
Notifications telegram_notify, line_notify, water_notify, smt_notify
Power power_monitor
Camera camera_snap, camera_ai
AC Automation air_condition_automate_1-4 (DC, DR, CK, MS)
AC Auxiliary air_condition_auxiliary_1-4 (DC, DR, CK, MS)
Safety smoke_detect, door_notify, motion_detect, heartbeat_monitor
Temp/Humidity temp_humid_notify, condition_temp_humid_1-6
Lighting automate_light, schedule_light_1-4, schedule_switch_1-4
Tap Water tapwater_tank1/2_automate, tapwater_tank1/2_alarm
Gas lpg_powerloss_notify, lpg_leak_notify, midical_gas_notify
Flood flood_level_notify
Misc ac_swap_delay_node_notify
Category Helpers Range
Water Pump Thresholds setpoint_water_pump_1-3_min/max 0-100%
Tap Water Thresholds setpoint_tapwater_tank1-2_min/max 0-100%
Power Alert watts_threshold 0-50,000 W
AC Interval ac_time_interval_1-4 1-12 hours
Temperature setpoint_temp_max/min 18-35°C
AC Auxiliary Temp setpoint_temp_auxiliary_max/min 18-35°C
Humidity setpoint_humid_max/min 10-100%
Light Delay delay_light_off 5-20 min
Water Level water_level_low/high_setpoint 0-50% / 50-100%
Cart (SMT) smt_battery_low (24.9V), smt_pc_current_high (3.5A), smt_battery_charge_high (3.5A), smt_servo_current_high (1.5A), smt_mcu_voltage_low/high (3.2/3.4V), smt_sensor_voltage_low/high (4.8/5.2V), smt_pc_voltage_low/high (19.8/20.2V) Various
Flood setpoint_flood_fulldistance, green/yellow/red level min/max 0-300 CM
Tab Nodes Purpose
SOLAR: K1 293 Inverter K1 Modbus data processing
SOLAR: K2 293 Inverter K2 Modbus data processing
SOLAR: B 293 Inverter B Modbus data processing
SOLAR: D 293 Inverter D Modbus data processing
Smart Logger 234 SmartLogger 3000 data aggregation
Notify : Water 199 Water level notifications (3x daily + alerts)
Global 181 Global variables, shared config, MQTT connections
Math 144 Sensor calculations, unit conversions, energy math
Water Level 140 Water tank monitoring, calibration, MQTT publish
Ground Water 135 Underground water tank processing
Tap Water 107 Tap water emergency auto-fill logic
AC (DC) 95 Data Center AC rotation & auxiliary
AC (DR) 94 DR Main AC rotation & auxiliary
AC (DR-MS) 94 Mae Sai AC rotation & auxiliary
AC (CK) 94 Chiang Khong AC rotation & auxiliary
Notify Snap 64 Camera snapshot on motion events
Notify : SMT 59 Smart Trolley (medicine cart) battery alerts
Flood Level Monitor 56 Flood level monitoring (multi-zone color alerts)
LWT 54 Last Will & Testament — device online/offline tracking
CRON 41 Scheduled tasks & periodic reporting
Notify: Gas 39 LPG & medical gas leak alerts
Notify : DW 29 Door/window sensor alerts
Notify : Power 24 Power anomaly & threshold alerts
Notify: Pump 24 Pump status notifications
Utility & Safety 22 Utility meter resets, safety checks
Telegram 20 Telegram bot command handling
InfluxDB 20 Custom InfluxDB writes
IoTDEV 5 Development/testing
Tab Nodes Purpose
Notify : Temp 136 Temperature notifications (disabled — likely moved to another flow)
MODSCAN 123 Modbus scanner/discovery (disabled — development tool)
Node Type Count Purpose
function 766 JavaScript logic, calculations, data transformation
mqtt out 433 MQTT message publishing
inject 374 Timers, triggers, scheduled events
modbus-getter 283 Modbus TCP/RTU register reads (solar inverters)
change 267 Variable setting, message routing
poll-state 224 HA entity state polling
api-call-service 220 HA service calls (notify, switch, climate)
delay 203 Timing delays between operations
server-state-changed 119 HA entity state change listeners
api-current-state 115 Current HA entity state reads
switch 100 Conditional routing/branching
debug 76 Debugging outputs
rbe 32 Report-by-exception (only on change)
calculator 18 Mathematical operations
mqtt in 11 MQTT message subscription
modbus-client 8 Modbus connection configs
http request 5 External API calls
exec 5 System command execution
Topic Entity Description
obh/emon/building/k/pv/activepower Building K PV Active Power Solar PV combined (K1+K2)
obh/emon/building/k/mdb/activepower Building K MDB Active Power Main distribution board K
obh/emon/building/k/load/summarize Building K Load Summarize Total building K load
obh/emon/building/b/load/summarize Building B Load Summarize Total building B load
obh/emon/building/d/load/summarize Building D Load Summarize Total building D load

6 flood level sensors (water/flood1 through water/flood6), unit: cm.

6 tanks with multi-topic MQTT structure: water/tank/{01-06}/{m|cm|percent|capacity/L|capacity/cubicM|mm-lowpass}

Energy tracking with monthly/quarterly/yearly cycles:

Meter Source Cycles
MDB Summary emon_mdb_total_energy monthly, yearly
MDB K1 obh_emon3p_03_energy_total monthly, yearly
MDB K2 obh_emon3p_04_energy_total monthly, yearly
MDB B1 obh_emon3p_05_energy_total monthly, yearly
PV Total emon_pv_total_energy_daily monthly, quarterly, yearly
Building K PV integrate_building_k_pv_energy monthly, yearly
Building K MDB integrate_building_k_mdb_energy monthly, yearly
Building K Load integrate_building_k_load_energy monthly, yearly
Building B Load integrate_building_b_load_energy monthly, yearly
Building D Load integrate_building_d_load_energy monthly, yearly

Energy integration (power → energy, kWh, left method):

Source Integration
Building K PV Active Power Building K PV Energy
Building K MDB Active Power Building K MDB Energy
Building K Load Summarize Building K Load Energy
Building B Load Summarize Building B Load Energy
Building D Load Summarize Building D Load Energy
Inverter K1 PV1-PV5 Power Per-string PV energy
Inverter K2 PV1-PV5 Power Per-string PV energy
Inverter B PV1-PV5 Power Per-string PV energy
Inverter D PV1-PV5 Power Per-string PV energy
Container Image Uptime
homeassistant qemux86-64-homeassistant:2025.4.1 23 hours
addon_a0d7b954_nodered node-red/amd64:19.0.2 2 days
addon_core_mosquitto amd64-addon-mosquitto:6.5.0 2 days
addon_a0d7b954_ssh ssh:23.0.8 11 days
addon_ccab4aaf_frigate-proxy frigate-proxy:1.5 5 months
addon_a0d7b954_vscode vscode/amd64:5.18.4 12 months
addon_e1810f8e_racksync-prometheus-node-exporter 2023.10.1 13 months
addon_eb9ee392_racksync-autossh-tunnel 2023.8.2 13 months
addon_eb9ee392_racksync-cloudflare-tunnel-zerotrust 2024.8.1 12 months
addon_eb9ee392_racksync-multipoint-zigbee-01 zigbee2mqtt:1.39.0-1 13 months
addon_eb9ee392_racksync-multipoint-zigbee-02 zigbee2mqtt:1.39.0-1 13 months
hassio_supervisor latest 4 days
hassio_cli 2026.05.0 8 hours
hassio_dns 2026.02.0 2 months
hassio_audio 2026.02.0 2 months
hassio_multicast 2026.02.0 2 months
hassio_observer 2026.02.0 3 weeks