RAIA™ Specification

Documentation

The IoT Home Agent Roadmap outlines how connected smart appliances are securely controlled and audited by autonomous agent systems.

← Back to Developer Hub TEXTBOOK SPECIFICATION
RAIA™ (Real estate Artificial Intelligence Agent) Specification

The IoT Home Agent Roadmap outlines how connected smart appliances are securely controlled and audited by autonomous agent systems.

🧩 Section A: In Plain English

IoT Home Agent Roadmap — Smart Property & MCP Integration

The IoT Home Agent pipeline positions EstateAigents as the first UK property management platform with a fully integrated AI-driven smart property layer — monitoring locks, meters, sensors, and HVAC through autonomous agents.

Synopsis

The RAIA (Real estate Artificial Intelligence Agent) OS IoT Home Agent pipeline positions Sovereign Pilot Agency / EstateAigents.com as the first UK property management platform with a fully integrated, AI-driven smart property layer. Inspired by the open-source Home Assistant ecosystem — now augmented by the Model Context Protocol (MCP) — this roadmap defines how autonomous AI agents will monitor, manage, and respond to real-time signals from physical properties: door locks, energy meters, water sensors, occupancy detectors, HVAC systems, and more.

The pipeline is structured in three phases. Phase 1 establishes the hardware and data plumbing. Phase 2 connects those signals to the RAIA (Real estate Artificial Intelligence Agent) Agent Brain via MCP. Phase 3 closes the loop: the system acts autonomously — without landlord or agent involvement — for routine property events, escalating only genuine exceptions to the HITL tier.

Chapter 1 — Why IoT for Property Management?

Real-Time Awareness

Property managers currently learn about issues reactively — after tenant complaint. IoT sensors deliver proactive awareness: water leak detected before flood, HVAC failure before winter, door left open at 3am.

Agentic Control Loop

Combined with Home Assistant MCP and Hermes, IoT becomes an actuator — not just a sensor. The RAIA (Real estate Artificial Intelligence Agent) agent can turn off water mains, lock/unlock doors, schedule contractors, and notify tenants — all from a single LLM decision cycle.

Compliance & Net Zero

UK MEES 2028 mandates EPC Band C minimum. Real-time energy monitoring is the cheapest compliance tool available — and it doubles as a landlord upsell. Smart meters + RAIA (Real estate Artificial Intelligence Agent) = automatic EPC impact tracking per property.

Keyless & Frictionless

Smart locks remove the #1 operational pain in letting: key handover. The RAIA (Real estate Artificial Intelligence Agent) agent issues time-limited digital keys for viewings, maintenance access, and tenant move-in/move-out — zero landlord involvement required.

Landlord Trust Signal

A landlord who can see a live dashboard of their property — occupancy, temperature, energy, maintenance tickets — is a landlord who renews. IoT turns RAIA (Real estate Artificial Intelligence Agent) from a letting agent into an always-on digital estate manager.

Franchise Multiplier

Each Postcode Partner franchise kit ships with an IoT starter bundle — one smart lock, one smart meter dongle, one water sensor. RAIA (Real estate Artificial Intelligence Agent) OS centrally manages all franchisee properties. Network effects compound across every postcode.

Chapter 2 — Development Pipeline Diagram

Hand-drawn architecture diagram. Open in Excalidraw to edit and share. Designed using the Hermes Excalidraw skill.

Excalidraw Diagram
RAIA (Real estate Artificial Intelligence Agent) OS — IoT Home Agent Roadmap
Phase 1 — Foundation
Q3 2025 — Q4 2025
Home Assistant Core + ESPHome
↕
IoT Device Layer (Locks, Sensors, Meters)
↕
Supabase Realtime Property Events DB
↕
Tailscale VPN (Secure Remote Access)
↕
Hermes Webhook Subscriptions
Phase 2 — Intelligence
Q1 2026 — Q3 2026
HA MCP Server (AI Tool Bridge)
↕
RAIA (Real estate Artificial Intelligence Agent) Home Agent (Hermes + HA Skills)
↕
NLP + Voice Layer (Telegram, WhatsApp)
↕
Event Rules Engine (HA Automations)
↕
RAIA (Real estate Artificial Intelligence Agent) Portal Live Property Dashboard
Phase 3 — Autonomy
Q4 2026 — 2027
Predictive Maintenance AI (Anomaly Detection)
↕
Digital Twin per Property (Live State Model)
↕
Energy & Compliance Reporting (MEES 2028)
↕
Autonomous Response (Lock, Alert, Dispatch)
↕
Franchise IoT Kit (Postcode Partner Bundle)
1

Chapter 3 — Phase 1: Foundation

Q3 2025 – Q4 2025 · Status: Planning

3.1 Home Assistant Core Deployment

Deploy Home Assistant OS on a dedicated mini-PC (Intel NUC or Raspberry Pi 5) at each managed property. Each hub runs locally — cloud optional. Integrates via ESPHome for custom sensor firmware, Zigbee2MQTT for mesh devices, and Z-Wave for legacy hardware.

→ One hub per property or HMO building
→ Nabu Casa cloud backup (optional, £6.50/mo per hub)
→ Tailscale mesh: zero-config VPN across all properties
→ Hermes connects via native MCP client in config.yaml

3.2 IoT Device Layer

Standardise on a hardware stack for cost predictability and bulk procurement. All devices must support local protocols (Zigbee, Z-Wave, Thread/Matter) — no cloud-only devices.

Smart Locks: Yale Linus / Nuki Smart Lock 4.0 (Zigbee)
Energy Meters: Shelly Pro EM / Sonoff POW Elite
Water Leak: Aqara Water Leak Sensor (Zigbee)
Occupancy: Aqara FP2 mmWave Presence Sensor
HVAC: Nest or Tado thermostat (API integration)
Cameras: Reolink PoE (local RTSP, no cloud)

3.3 Supabase Realtime Events Schema

HA state changes stream to Supabase via webhook. Each property event is recorded as an immutable ledger row.

-- property_iot_events
id          uuid primary key
property_id uuid references properties(id)
device_id   text          -- HA entity_id
event_type  text          -- lock_open, leak_detected...
payload     jsonb         -- full HA state payload
severity    text          -- info | warning | critical
created_at  timestamptz default now()

3.4 Hermes Webhook Subscriptions

Using the existing Hermes webhook-subscriptions skill, register HA as an event source. Critical severity events trigger immediate Hermes agent runs.

✓ leak_detected → auto-dispatch plumber + notify landlord
✓ door_open_2am → alert property manager
✓ energy_spike → log + recommend action
✓ no_presence_7d → welfare check trigger
2

Chapter 4 — Phase 2: Intelligence

Q1 2026 – Q3 2026 · Status: Future

4.1 Home Assistant MCP Server Integration

The hass-mcp server exposes every Home Assistant entity as an MCP tool callable by any LLM. This is the critical bridge: Hermes gains the ability to act on physical space.

# config.yaml — Hermes MCP client
mcp:
servers:
home_assistant:
command: uvx hass-mcp
env:
HA_URL: http://100.x.x.x:8123
HA_TOKEN: <long-lived-access-token>

Once registered, Hermes can call mcp_home_assistant_call_service, mcp_home_assistant_get_state, and automation controls directly — enabling full bidirectional control of the physical property from natural language.

Repository Code

The live codebase implementation for this specification sits within the following repository folder:

4.2 RAIA (Real estate Artificial Intelligence Agent) Home Agent Skill

A dedicated Hermes skill encapsulates the home agent workflows — built on the same skill system as all other RAIA (Real estate Artificial Intelligence Agent) skills.

→ homeassistant skill: control devices, read state
→ property-iot-triage skill: event → action decision tree
→ smart-key-dispatch skill: generate/revoke access codes
→ energy-ledger skill: property EPC impact tracking

4.3 Portal Live Dashboard

A new "Property Health" section in the RAIA (Real estate Artificial Intelligence Agent) portal shows landlords their live property state: battery levels, lock status, energy consumption, and open maintenance tickets — all pulled from Supabase Realtime.

→ Supabase Realtime subscription in Next.js
→ One card per device per property
→ Red/amber/green health status
→ 30-day energy and occupancy trend charts
3

Chapter 5 — Phase 3: Autonomy

Q4 2026 – 2027 · Status: Vision

5.1 Predictive Maintenance AI

Train a time-series anomaly model on rolling property sensor data. Surface failure-probability scores for appliances before they break — schedule preventive contractor visits in advance, not in crisis.

5.2 Digital Twin per Property

Each property gets a structured JSON state model: current sensor readings, historical baselines, tenant behaviour patterns, and predicted next-action queue. The twin is the context window the agent reads before any property decision.

5.3 Energy & Compliance Reporting

Auto-generate energy certificates, MEES compliance snapshots, and net-zero progress reports per property. Feed landlord portfolios with actionable retrofit recommendations ranked by ROI — insulation, glazing, heat pump — with contractor quotes pre-attached.

5.4 Fully Autonomous Response

The end state: RAIA (Real estate Artificial Intelligence Agent) OS handles the full property event lifecycle — detect → decide → act → record — without human involvement. Leak → shut water → call plumber → notify tenant → file insurance claim. HITL is reserved for disputes and novel situations only.

Chapter 6 — Data Model

Three new tables extend the existing RAIA (Real estate Artificial Intelligence Agent) Supabase schema (db_esoteric). All IoT data is property-scoped and tenant-anonymised for GDPR compliance.

-- tbl_iot_devices
id           uuid primary key default gen_random_uuid()
property_id  uuid references properties(id)
entity_id    text unique not null   -- HA entity_id e.g. lock.front_door
device_type  text not null          -- lock | meter | sensor | camera | hvac
device_name  text
protocol     text                   -- zigbee | zwave | wifi | matter
installed_at date
active       boolean default true
created_at   timestamptz default now()

-- tbl_iot_events
id           uuid primary key default gen_random_uuid()
device_id    uuid references tbl_iot_devices(id)
property_id  uuid references properties(id)
event_type   text not null          -- lock_opened | leak_detected | energy_spike
state_from   text
state_to     text
payload      jsonb
severity     text default 'info'    -- info | warning | critical
agent_action text                   -- what RAIA (Real estate Artificial Intelligence Agent) agent did in response
resolved_at  timestamptz
created_at   timestamptz default now()

-- tbl_property_digital_twin
id           uuid primary key default gen_random_uuid()
property_id  uuid references properties(id) unique
twin_state   jsonb not null         -- full live state snapshot
health_score int                    -- 0-100 composite health
last_synced  timestamptz
created_at   timestamptz default now()
updated_at   timestamptz default now()

Chapter 7 — Integration Stack

🏠
Home Assistant
Local hub, 3000+ integrations
🔌
ESPHome
Custom firmware for sensors
📡
Zigbee2MQTT
Protocol mesh, 3000+ devices
🔗
hass-mcp
MCP tool bridge for AI
⚡
Supabase Realtime
Event streaming + DB
🛡️
Tailscale
Zero-trust remote access
🤖
Hermes Agent
Orchestration + decision
💬
Telegram / WA
Landlord / tenant interface

Chapter 8 — Postcode Partner IoT Franchise Bundle

Every Postcode Partner franchise signs up with a starter IoT kit — hardware supplied at cost, managed centrally by RAIA (Real estate Artificial Intelligence Agent) OS. This creates recurring monitoring revenue, locks in the franchisee technically, and multiplies the property intelligence network across every postcode.

Starter Kit (per property)
  • 1x Smart Lock (Yale Linus)
  • 1x Energy Meter (Shelly Pro EM)
  • 1x Water Leak Sensor (Aqara)
  • 1x Hub (Raspberry Pi 5 + HA OS)
  • 1x Zigbee Coordinator (Sonoff)
Managed Services (monthly)
  • Remote monitoring + alerting
  • Automatic firmware updates
  • RAIA (Real estate Artificial Intelligence Agent) portal property health tab
  • AI maintenance dispatch
  • Energy compliance reporting
Revenue Model
  • Hardware at cost (break-even)
  • £15–25/mo SaaS per property
  • Landlord upsell: live dashboard
  • Compliance report add-on
  • Insurance discount referral

Chapter 9 — Hermes Skills Roadmap

New Hermes skills to be authored as each phase ships. Skills encode the operational workflows — not just tool calls.

homeassistant
Control HA devices, read entity states, call services. Phase 2 core skill.
Phase 2
smart-key-dispatch
Generate time-limited access codes for locks, revoke on move-out, audit trail.
Phase 2
property-iot-triage
Event → decision tree for all IoT alert types. Severity-gated agent response.
Phase 2
energy-ledger
EPC impact tracking, MEES 2028 gap analysis, retrofit ROI ranking per property.
Phase 3
digital-twin-sync
Build and maintain property digital twin JSON from live HA state. Used as agent context window.
Phase 3
Implementation Note

This is a future roadmap document. No IoT hardware has been deployed in production as of June 2026. Phase 1 requires a technology pilot at 1–2 internal properties before franchisee rollout. Contact the RAIA (Real estate Artificial Intelligence Agent) Tech team to propose a pilot property.

🔧 Section C: Developer Guide

Architecture Details

Multi-agent architecture with a hierarchical orchestration model. The orchestrator agent manages task decomposition, worker agent dispatch, and result aggregation. Each agent runs in an isolated context with its own toolset and memory, communicating via a shared message bus.

  • Core Component: Agent orchestration engine
  • Data Flow: User Request → Orchestrator → Task Decomposition → Worker Agents → Result Aggregation → Response
  • Integration Points: Hermes Agent framework, tool registry, memory stores, delegation bus

Configuration Reference

Key configuration parameters for this system:

Parameter Type Default Description
max_concurrent_agents integer 3 Maximum number of parallel worker agents
agent_timeout_seconds integer 300 Agent execution timeout
model_routing_policy string cost_optimized Model selection strategy (precision, cost_optimized, speed)
AGENT ARCHITECTURE — ORCHESTRATOR → WORKER → RESULT 1. ORCHESTRATOR Task Decomposition Worker Dispatch 🎯 Orchestrator 2. WORKER AGENTS Isolated Execution Tool & Memory Access 🤖 Workers 3. RESULT AGGREGATION Merge & Validate Response Formatting 📊 Aggregation Hierarchical agent architecture: orchestrator decomposes tasks, workers execute in isolation, results are aggregated and validated Isolated contexts · Tool access control · Memory injection · Result validation Orchestrator / Dispatch Workers / Execution Aggregation / Output Data flow →

Figure 2: Agent architecture — component interaction and data flow.

Troubleshooting

Issue Cause Resolution
Agent timeout Complex task or downstream dependency failure Increase timeout or break task into smaller subtasks
Orchestrator loop detected Circular delegation or self-referencing task Enforce max_spawn_depth and cycle detection
Repo Reference RAIA

This component is part of the RAIA (Real estate Artificial Intelligence Agent) platform mono-repo. Implementation details, API contracts, and integration tests are available in the repository.