Skip to content

hobbyquaker/she

Repository files navigation

she - smart home engine

Warning

This project is under heavy development. The API is changing frequently and there are no stability guarantees yet.

Your home, your rules - written in plain JavaScript.

she is a Node.js daemon that loads your .js scripts into a sandboxed VM and wires them up to MQTT, Matter, and everything else your smart home throws at them. No cloud, no lock-in, no YAML sprawl, no opinionated bloated schemata. Just scripts that do exactly what you (if you want: with the help of the integrated AI assisstant) tell them.

  • Scripts — Monaco-based Script IDE, AI assistant, git integration, autocompletion, hot-reload without process restart
  • MQTT — subscribe, publish, react to state changes with wildcards, conditions, and delays
  • Matter — control Matter devices directly from your scripts
  • sheDB — lightweight document store with map/reduce views, right in the daemon
  • Scheduler — cron expressions and solar events (sunrise, sunset, …) in one call
  • Script HTTP routes — scripts can register their own REST endpoints under /api/<scriptName>/
  • require() — load npm packages from ~/.she/node_modules/ or relative files inside scripts
  • Supports InfluxDB, Elasticsearch and Redis — convenience methods for time series, full text indexing, shared states across multiple she instances
  • Web UI — script editor, package manager, MQTT browser, Matter device manager, sheDB frontend, log viewer

Quick start

npm install -g smart-home-engine
she

Then open http://localhost:8080 and start creating scripts

Docs

Getting started Install, write your first script, configure
CLI reference All flags and environment variables
Sandbox API Everything available inside a script
HTTP API REST endpoints and WebSocket
sheDB Embedded document store — script API, views, examples
Examples Real-world script patterns

Trademark and Certification Notices

Important

This project implements/supports the Matter protocol. Matter™ is a trademark of the Connectivity Standards Alliance.

This project is not certified by, endorsed by, supported by, or affiliated with the Connectivity Standards Alliance.

Quick look

AI assistant proposing changes to an existing script with inline diff ... more screenshots

Motivation

She is built around a simple idea: home automation should stay understandable, even as it grows. Instead of collecting adapters, bindings, integrations, and configuration layers, you work directly with devices, events, and logic. The result is a system that scales with your home without turning into a project of its own.

At some point every smart home platform starts promising simplicity and ends up teaching you its own ecosystem. She takes a different approach. She's built around devices, messages, and automation logic - not around ever-growing collections of adapters, bindings, and abstractions.

Spend your time automating your home, not maintaining your automation software. Less clicking through configuration screens, fewer plugins talking to plugins, and no need for YAML archaeology when something stops working. Just a straightforward path from devices to automations, built on open standards and designed for people who prefer understanding their system over managing it.

The ideas behind she are the result of more than a decade of building smart home software. I started publishing home automation projects on GitHub in 2012 with ccu.io and later initiated the ioBroker project before leaving it in 2014. Shortly after I worked on mqtt-smarthome and created mqtt-scripts, which has been running my own home automation ever since. Over the years I have continued working professionally in the smart home industry.

Recently, while experimenting with GitHub Copilot, I started modernizing parts of my existing software stack. What began as a small refactoring exercise quickly evolved into a bigger idea: replacing my twelve-year-old automation engine with a modern successor. The result is she - a combination of the proven concepts from mqtt-scripts, the architecture of mqttDB, a built-in Matter controller and a modern web interface with AI assistance. A system that embraces open standards, integrates the growing Matter ecosystem, and remains true to the principles that made mqtt-scripts reliable enough to run a home for more than a decade.

The goal is simple: a smart home that remains understandable years later. No migration-guide marathons, no plugin jungles. Just automation infrastructure that grows with your home instead of growing into a hobby of its own.

License

MIT © Sebastian Raff

About

she - scriptable smart home automation engine with AI assistance

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors