---
title: "Write Home Assistant automations from your editor · Lenexa Learn"
description: "One user connected Cursor to Home Assistant over MCP, so an agent can write automations, deploy them, and keep track of versions."
url: https://www.lenexa.ai/learn/agents/write-home-assistant-automations-from-your-editor/
site: "Lenexa Learn"
---

Cursor

# Write Home Assistant automations from your editor

One user connected Cursor to Home Assistant over MCP, so an agent can write automations, deploy them, and keep track of versions.

## Steps

1. Connect Home Assistant.
2. Describe the automation you want.
3. Review it before it's deployed.

## Prompt you can copy

```
Write a Home Assistant automation that turns on porch lights at sunset.
```

## What you get

Automations written and deployed from Cursor.

## Source

[hn](https://news.ycombinator.com/item?id=45888532) · November 2025

For Individuals. [Cursor](https://www.lenexa.ai/learn/agents/tool/cursor/). Added October 12, 2026. Shared by @Vladimir42.

## Related

### [Organize a messy mailbox](https://www.lenexa.ai/learn/agents/organize-a-messy-mailbox/)

One user had Grok Bot organize their mailbox and was very happy with how it turned out.

- Individuals
- Grok Bot

### [Chat with support to port a phone number](https://www.lenexa.ai/learn/agents/chat-with-support-to-port-a-phone-number/)

One user had Grok Bot chat with support to port a phone number. When the port failed, they told it to follow up the next day with the same details. It also cleaned up their email and unsubscribed them from lists.

- Individuals
- Grok Bot

### [Book chiropractor and dentist appointments](https://www.lenexa.ai/learn/agents/book-chiropractor-and-dentist-appointments/)

With very little help, one user's Grok Bot booked both a chiropractor and a dentist appointment.

- Individuals
- Grok Bot

The daily email

## Get 5 AI use cases every morning

A short morning email with five things AI can help with, picked for the groups you choose. It's free, we don't sell anything on this list, and every email has an unsubscribe link.
