HomePilot adds a small smart-home tool set to the openvela packages_ai_agent
runtime. It provides room/device discovery, light/HVAC/curtain controls,
sensor reads, energy estimates, scene planning, and whole-home state queries.
The overlay is C99 and is structured for upstream review:
agent_overlay/tools: JSON callback adapters for the eight registered tools.
agent_overlay/domain: policy clamps, scoring, and scene planning.
agent_overlay/model: deterministic home model, state-machine setters, and
host-visible state snapshots.
tests/host: host C tests built with -Wall -Wextra -Werror.
scripts: overlay staging, host checks, deterministic routing evaluation,
live backend evaluation, and environment-gated QEMU helpers.
run_host_tests.sh builds and runs the C tests, then scores deterministic
tool routing over tests/prompts.jsonl. integration_check.sh stages the
overlay into a cached packages_ai_agent checkout, verifies that
patches/ai_agent_register.patch applies, checks the tool count against
MAX_TOOLS, and compiles overlay sources against the real framework headers
and cJSON.
llm_eval.sh runs configured live backends when keys are present in .env.
Without keys it still runs the deterministic simulator gate. Captured traces are
runtime artifacts under logs/ and are intentionally ignored.
The QEMU scripts require a full openvela source tree, the target board
configuration, an emulator path, and backend credentials. Host tests do not
replace that firmware run.
Tool List
Tool
Purpose
home_device_list
List rooms, devices, and capabilities.
light_set_state
Set light power, brightness, and color temperature.
env_sensor_read
Read temperature, humidity, CO2, and lux.
hvac_set_mode
Set HVAC mode under 18-28C constraints.
curtain_set_position
Set curtain position under 0-100 constraints.
energy_estimate
Return simulated whole-home power and scores.
scene_apply
Apply home_arrival, sleep, away, or eco scenes.
home_state_query
Query current whole-home state, optionally by room.
All energy and comfort values are simulation estimates, not metered hardware
values.
Vela HomePilot
HomePilot adds a small smart-home tool set to the openvela
packages_ai_agentruntime. It provides room/device discovery, light/HVAC/curtain controls, sensor reads, energy estimates, scene planning, and whole-home state queries.The overlay is C99 and is structured for upstream review:
agent_overlay/tools: JSON callback adapters for the eight registered tools.agent_overlay/domain: policy clamps, scoring, and scene planning.agent_overlay/model: deterministic home model, state-machine setters, and host-visible state snapshots.tests/host: host C tests built with-Wall -Wextra -Werror.scripts: overlay staging, host checks, deterministic routing evaluation, live backend evaluation, and environment-gated QEMU helpers.Host Verification
run_host_tests.shbuilds and runs the C tests, then scores deterministic tool routing overtests/prompts.jsonl.integration_check.shstages the overlay into a cachedpackages_ai_agentcheckout, verifies thatpatches/ai_agent_register.patchapplies, checks the tool count againstMAX_TOOLS, and compiles overlay sources against the real framework headers and cJSON.llm_eval.shruns configured live backends when keys are present in.env. Without keys it still runs the deterministic simulator gate. Captured traces are runtime artifacts underlogs/and are intentionally ignored.openvela Integration
After booting and starting
ai_agent, configure a backend key and ask for device control or scene goals:The QEMU scripts require a full openvela source tree, the target board configuration, an emulator path, and backend credentials. Host tests do not replace that firmware run.
Tool List
home_device_listlight_set_stateenv_sensor_readhvac_set_modecurtain_set_positionenergy_estimatescene_applyhome_arrival,sleep,away, orecoscenes.home_state_queryAll energy and comfort values are simulation estimates, not metered hardware values.
Documentation