Automate per-room heating control in Home Assistant
A homeowner built an add-on and MCP server so Cursor could write and deploy Home Assistant automations for per-room temperature control, iterating through five versions over a weekend.
Done withCursor
- What they did
- The homeowner used Home Assistant with Zigbee radiator valves and a relay wired in parallel with the old thermostat as a fallback. After the first version, manual YAML copying became tedious, so they built an add-on and MCP server. Cursor could then edit, deploy and restart automations from the IDE. Every change was committed to a local Git repository.
- How it went
- Five versions of the control logic in one weekend. The final one switches the boiler off slightly early so the radiators coast to target, which improved comfort and saved a noticeable amount of energy. The source gives no figures.
- Worth knowing
- Building the deployment tooling after version one was what made fast iteration possible, and the Git commits allow safe rollback.
Try it yourself with Cursor
Open my Home Assistant config folder [path or SSH host] and help me set up per-room heating control for [list of rooms] using my [thermostat / TRV / sensor entities]. Write the automations with target temperatures and schedules of [your schedule], explain each one, and stop once they pass a config check. Show me the diff and wait for my approval before deploying anything to the live system.
Want help getting this working? Join the Vibe Coding Academy ↗ Run by Alex Finn, who also runs this site.
2 more accounts of this
Source: coolver.github.io · Undated
Related use cases
Keep coding agents running autonomously for long stretches
Cursor's write-up on scaling long-running autonomous coding.
Run Terraform plan and apply through an MCP agent
The author had Cursor run Terraform against Postgres via MCP; the apply hit a permissions error and he finished from the terminal.
Turn Sentry bug reports into fix pull requests
Sentry's Seer passes root cause analysis and issue context to a Cursor Cloud Agent, which writes the fix and opens a pull request in the user's repo.
Get a second opinion on an MRI
One person's account of using Claude Code to analyze their own MRI.
Hand everyday errands to a local agent
A commenter lists tasks given to a trusted local agent: planning flights and hotels, converting music, finding DRM-free ebooks, designing 3D-printed holders, and tracking email appointments.
Custom agent
Run a personal health agent over FHIR records
A personal OpenClaw agent reads health data via a guardrail proxy to prep appointments, draft follow-ups, fill forms, write insurance appeals and track trends.
Get 5 like this every morning
The best things people got an AI agent to do, each with the prompt to try it.