Repository navigation
Smart Home
Status: Implemented
Last Updated: 2026-11-13
Audience: Users
Last verified: 2026-11-13 against b1688a8de
Code: src/Martlet.Home, src/Martlet.Desktop/SmartHome.cs, src/Martlet.Desktop/Pages/SmartHome
Martlet works with Home Assistant. Lights, climate and more answer to her voice. Martlet tries to block sensitive actions or ask for your confirmation. Martlet can also find, set up, back up and update Home Assistant for you, and install it on one of your Linux computers.
Open Companion › Smart home.
Use one of these under Home Assistant:
- Find on my network looks for Home Assistant on your home network. Choose Use this one.
- Sign in with Home Assistant opens Home Assistant's own sign-in page in your browser. Use this for a Home Assistant you already have.
- Set up a new one checks the address you typed. When nobody owns that Home Assistant yet, a form asks for your name, username and password. See Set up a new Home Assistant.
- Type the Home Assistant address, paste a long-lived access token and press Connect with token. See Access token.
Then do these steps:
- At the top of the page, under Smart home, choose Home Assistant.
- Press Use Home Assistant when I ask.
Status questions and actions work only with the smart-home system that you choose there. Off means that Martlet doesn't control your smart home.
Martlet uses only the address that you give it. With a paired Martlet host and Keep Martlet the same on all my computers on, one connection is for all your computers. See On all your computers.
Use the address that you open Home Assistant with in your browser, for
example http://homeassistant.local:8123.
- Find on my network asks your home network once for Home Assistant. It shows each Home Assistant that answers. Choose Use this one.
- When no Home Assistant answers, type its address. Or install one on a Linux Martlet host (see Install Home Assistant on one of your computers).
- Plain
httpaddresses work only on your home network. Use anhttpsaddress outside your home network. - When Martlet says that the address answered, but not like Home Assistant, check the address. Use the exact address that you open in the browser.
Sign in with Home Assistant opens Home Assistant's own sign-in page in your browser:
- Type the address, or find it.
- Press Sign in with Home Assistant.
- Sign in to Home Assistant in your browser. Martlet waits up to 5 minutes.
- When the browser says Signed in, close the tab and go back to Martlet.
Martlet then makes and keeps its own access token. Sign in as the owner (an administrator) when you want to manage Home Assistant from Martlet.
Set up a new one checks the address. When nobody has set up that Home Assistant yet, the Set up this Home Assistant form opens. When it is already set up, use Sign in with Home Assistant.
The Set up this Home Assistant form makes the owner account of a Home Assistant that nobody has set up yet:
- Type your name and a username.
- Type a password of at least 8 characters two times.
- Press Set up Home Assistant.
Martlet then does these things:
- It makes the owner account (an administrator) with this name and password.
- It gives Home Assistant this PC's time zone, country, currency, units and language.
- It leaves the usage analytics of Home Assistant off.
- It connects with its own access token.
Your password goes only to Home Assistant, and Martlet doesn't keep it. Sign in to Home Assistant with this username and password. After the setup, set your home's location in Home Assistant (Settings › System › General).
When someone else made the owner account first, use Sign in with Home Assistant instead.
A long-lived access token is a key that lets Martlet use your Home Assistant. To make one:
- Open Home Assistant in your browser.
- Open your profile and then Security.
- Under Long-lived access tokens, create a token. Copy it.
- In Martlet, paste it in Or paste a long-lived access token.
- Press Connect with token.
Martlet keeps the token in Windows Credential Manager and sends it only to the address that you typed. When Home Assistant rejects the token, make a new one, or sign in again.
Disconnect removes the saved token from this PC, and Martlet stops using your smart home. With a paired Martlet host and Keep Martlet the same on all my computers on, it removes the token from all your computers, and your Martlet hosts forget it. When no Martlet host answers, your other computers disconnect when a host answers again.
Disconnect doesn't delete the token in Home Assistant. Revoke the token in your Home Assistant profile (Security) if you no longer need it.
Martlet can install Home Assistant on one of your Linux computers that runs Martlet's host service with Docker Engine. Martlet reaches it over SSH.
- Under Home Assistant on your Martlet hosts, press Install Home Assistant next to the computer. The Devices map has the same command.
- When it's installed, the setup form opens. Make your owner account.
Docker Desktop on Windows or macOS can't do this, because Home Assistant must be on your home network. On Windows, use a Linux computer or a Home Assistant you already have. See Setting Up a Host.
Each host line shows what the host told Martlet at its last check. After you change a host, use Check connection on the Devices map to update it. When something already uses port 8123 on a host, it is probably another Home Assistant. Connect to it with Find on my network or type its address.
The What Martlet may do card sets which devices Martlet may control:
- Status questions always work.
- Lights, switches, climate, media, scenes and blinds run immediately.
- Requests identified as actions on locks, doors, garage doors, gates, alarms and valves need Allow locks, doors and alarms and confirmation. See Locks, doors and alarms.
Martlet can reach only the devices that are exposed to voice assistants in Home Assistant (Settings › Voice assistants › Expose). Keep sensitive devices hidden unless you need them.
Screen and camera looks never control your home. Your spoken or typed requests can go to Home Assistant. Use Voice ID when Martlet should answer only you.
"Turn off the kitchen lights." "Set the living room to 21 degrees." "Is the garage door open?"
Martlet sends what you say to Home Assistant's built-in Assist. Assist acts on the sentences it knows, in Home Assistant's language. It works with every Thinking model, also models that can't call tools. Martlet then tells you, in her own words, what Home Assistant did. When Assist didn't understand, she doesn't pretend that something changed.
- The talk window shows a Home Assistant: line above her reply. Recent actions on the page lists the last actions until you close Martlet.
- Use Voice ID when Martlet should answer only you.
Recent actions at the bottom of Companion › Smart home lists what Martlet did with Home Assistant. The list clears when you close Martlet.
A Safety problem line means that Home Assistant operated a lock, door, garage, gate, alarm or valve without your confirmation. Martlet checks the words before it sends a request, but that check can miss a sensitive action. Hide sensitive devices from voice assistants in Home Assistant unless you need them.
Status questions always work: "Is the front door locked?"
To let Martlet operate locks, doors, garage doors, gates, alarms and valves:
- Under What Martlet may do, turn on Allow locks, doors and alarms. It is off by default. When it is off, Martlet blocks requests that its check identifies as sensitive. The check can miss a request.
- Each time, the talk window shows Review smart home request. Press Send request or Don't send. No answer in 30 seconds means no.
Keep locks and garage doors hidden from voice assistants in Home Assistant unless you need them.
Allow flexible smart-home requests lets your Thinking model use Home Assistant's own tools for harder requests. It needs:
- The Model Context Protocol Server integration in Home Assistant.
- A Thinking model that can call tools.
With it on, Martlet sends the names, areas and states of your exposed devices to your Thinking model when needed. Status tools and ordinary devices run at once. Locks, doors and alarms are blocked or ask every time. Other tools, such as scripts, ask every time, and Always allow is never offered. Home Assistant's server shows on Companion › Tools, managed by Smart home. Without it, Martlet uses Assist (standard commands) as before.
After you turn it on, reload an open talk window to use it. The status line under the check box tells if Home Assistant's tools are ready. When Martlet can't connect to them, it uses standard commands.
Home Assistant looks for devices on its own network, for example Hue, Sonos, Chromecast, Shelly, ESPHome, HomeKit and Matter devices. Devices Home Assistant found lists the new devices that it found:
- Add adds a device to Home Assistant.
- Ignore hides a device. Home Assistant doesn't offer it again. You can still add it from the Integrations page of Home Assistant.
- When a device needs more details (such as a code, a key or a choice), or when Home Assistant can't add it, its Integrations page opens. Finish the setup there.
- When Home Assistant is still adding a device, press Check for devices again after a moment.
- Add MQTT to Home Assistant connects the MQTT broker on the same computer.
New lights, switches, climate, media and blinds become available to Martlet automatically. Locks stay hidden.
Manage Home Assistant shows the version, integrations, last backup and waiting updates. Use Install update, Back up now, Restart and Open Home Assistant.
- Install update asks first. Home Assistant can restart to finish the update. Press Refresh after a few minutes.
- Back up now makes a backup on the disk of Home Assistant. Press Refresh after a minute to see it.
- Restart asks first. Your smart home doesn't respond for approximately a minute.
These need an administrator's sign-in. Martlet's own setup gives one, and so does Sign in with Home Assistant as the owner.
These run only when you click them. Martlet never gives them to the Thinking model. When Martlet installed Home Assistant, Update host on Devices gets newer Home Assistant versions.
Home Assistant is one connection for all your computers. With Keep Martlet the same on all my computers on, a connection made on one computer goes to all of them, and what Martlet may do is the same everywhere. Disconnect disconnects every computer.
Your paired Martlet hosts keep the address and Martlet's access token privately. They give them only to your paired computers, which then connect automatically, usually within a minute. Your other computers on the page shows which computers use the connection. Check now checks again immediately.
Companion › Vision › Use a Home Assistant camera uses a Home Assistant camera's picture as a camera for Vision. See Vision. When a camera doesn't work, see Camera problems.
More detail: Smart home, MCP, Cluster.
Martlet: download · repository · changelog · issues
These pages come from docs/wiki in the repository. To suggest a change, open an issue or a pull request there.
- Home
- Accounts and households
- Accounts and Household
- Android phones and tablets: what it takes, and the plan
- Martlet's API for other apps and scripts
- App Guides
- App Settings and Updates
- App guides: game and app knowledge from the web
- Architecture
- Bounded PCM playback
- Audio dependency inventory and notices
- Avatar guide: Live2D, VRM and speech animation
- V01a explicit microphone capture
- Chatterbox voice engines
- Cleaning up disk space
- One Martlet on all your computers
- Companion controls and behavior requirements
- Components, jobs and placement (design)
- Live conversation
- Creations
- Decision map: which file owns each decision
- Deep research: web search and long research jobs
- The desktop app: updates, notification area, exiting and appearance
- Linux and macOS desktop companion: research, decision and plan
- Developer Guide
- Dia voice engine
- Diagnostics
- Discord
- Architecture and provider contracts
- Discord
- Memory (P03a/P03b/P03c)
- Singing
- Desktop troubleshooting and local support
- Recognizing people by voice, and Parakeet
- Echo cancellation
- ElevenLabs voice: your cloned voice with tones
- F5 worker and reference-voice foundation
- FAQ
- First Steps
- Game state plan: implementation history
- Glossary: one name for each concept
- GPT-SoVITS voice
- Hosted Thinking: cloud models when Thinking can't run on this PC
- Installation and support
- Installing Martlet
- iOS and iPadOS: what it takes, and the plan
- Repository instructions for coding agents
- Repository knowledge base
- Knowledge base maintenance
- GitHub Wiki mirror
- Linux and Mac
- Listening and Voice ID
- Local model apps
- Lorebooks
- macOS: what it takes, and the plan
- Martlet MCP Server
- MCP in Martlet
- MCP: The app's window
- MCP: Apps, home and memory
- MCP: Characters
- MCP: Diagnostics and logs
- MCP: Computers, network and accounts
- MCP: Other
- MCP: Tool permissions
- MCP pages
- MCP: Server and protocol internals
- MCP: Settings
- MCP: Start here
- MCP: Thinking and models
- MCP: Voice and listening
- Memory
- Messaging apps
- Model catalog: sources, conflicts and design
- Motion host role
- Multiple Computers
- Your Martlet network
- OCR host role
- Share your language models: the OpenAI-compatible endpoint
- Packaging
- Perception worker contracts
- Personality and Characters
- Picture making
- Pictures and Creations
- Picture making host role
- Platforms: what each device can do
- Prerequisites: what Martlet bundles, installs for you, or needs from you
- Privacy and Safety
- Reading the text on your screen
- Wiki source
- Recommendation design: ask three questions, plan for three situations
- Recommended setups: one machine to unlimited budget
- Releasing
- Repository Layout
- Research and provenance ledger
- Resource footprints
- Roadmap
- Watch my screen: screen-aware commentary
- Search engine
- Image and audio models: who sees, who hears, who answers
- Setting Up a Host
- Setup, Windows credentials and local audio
- Sharing with Friends
- Singing
- Smart Home
- Smart home and cameras
- Source Projects
- Talking to Martlet
- Telegram and WhatsApp
- The Character
- Thinking
- Tools and MCP
- Troubleshooting
- Martlet desktop UI design
- User stories and target flows
- Voice activity detection
- Validating changes
- Validation and Testing
- Vision
- Voice latency: from you stopping talking to Martlet's voice
- Voice recognition host role
- Multi-engine voice setup and comparison
- Voices
- The welcome wizard
- XTTS-v2 voice engine