Support / Guides / Eisy ai

Developer mode

Developer mode walks you through building a real, working eisy/IoX plugin end to end, conversationally: researching the target device or service, defining how it shows up as a node, generating the actual plugin code, testing it on a real eisy, debugging it in VS Code, and pushing it to GitHub. Switch into it as described in 2.3 above.

Three rules that apply across the whole workflow:

  • Generating a plugin only ever touches your local disk — nothing changes on a real eisy until you explicitly install it.
  • Secrets never get written into generated code. An OAuth client_id/client_secret is always a placeholder at generation time; you set the real values after install.
  • Deleting a plugin's registration or an installed plugin previews first, then requires your very next reply to be the literal word YES.

Click the Development tab in eisy-ui.

eisy-ui's Development tab, showing the Local Plugins and My Published Plugins sections

There are two sections here:

  1. Local Plugins — plugins installed locally that aren't published to the store. Everything you build with eisy-ai in developer mode lives here: it's stored locally on eisy and installed directly from eisy into its own sandbox environment, never touching the store.

    Although eisy-ai manages all of your plugin's configuration for you, clicking on it here lets you configure its settings manually, and even watch it build and update its code right in front of your eyes.

    Local Plugins list with a plugin selected

    The plugin's detail view, with the Code tab highlighted

    The plugin's live code/build view

  2. My Published Plugins — if you're a vetted developer, this is where you take a plugin from Local Plugins and publish it to the official store, optionally earning money by selling it.

Want to publish and sell your plugins? Becoming a vetted developer is required before you can publish to the store. Contact us at universal-devices.com/my-tickets to get started.

Prompting eisy-ai in developer mode

Think of this as a conversation that moves through the following stages — you don't need to name each tool, just describe what you want at each point and eisy-ai drives the workflow:

  1. Set up your developer identity (once per workspace). The first time you use developer mode, eisy-ai asks for your email, display name, and optionally a GitHub URL — this gets stamped into every plugin you generate. It won't ask again once this is on file, and won't overwrite it without you asking to change it.
  2. Describe the device or service you want to support. "I want to build a plugin for my SimpliSafe alarm." eisy-ai checks the plugin store first (and recommends stopping there if a plugin already covers it), then searches GitHub and the web for the device's own API docs or an existing reference implementation. This research step is a hard prerequisite — generation refuses without it.
  3. Define how the device shows up. eisy-ai proposes properties, commands, and settings UI for the device (its "Dynamic Profile"), looking up standard property/unit ids rather than inventing new ones where a standard one exists. You can keep refining this in plain language — "actually, make the target temperature a range from 60 to 90" — before anything is generated.
  4. Generate the plugin. "Looks good, generate it." — this produces the actual plugin directory: Python code, registration file, requirements, install script, README/LICENSE, a starter test suite. If files already exist, you'll see what would conflict before anything is overwritten.
  5. Install and test it on your real eisy. "Install it." — registers, installs, and starts the plugin, reporting each stage separately. From here you can ask it to check status, read or write its configuration, start/stop/restart its service, or call its own features — the same tools a customer-facing conversation would use.
  6. Debug, push to GitHub, and package for the store — covered in detail below.

Setting up GitHub

eisy-ai automates the local git side of publishing your plugin, but it never creates a GitHub repository on your behalf — that part is deliberately left to you.

  1. Create a GitHub account, if you don't already have one, at github.com/join.

  2. Create a new, empty repository for your plugin (no README, license, or .gitignore — eisy-ai writes its own). Copy its URL (e.g. https://github.com/yourname/your-plugin.git).

  3. Make sure eisy itself can authenticate to GitHub. eisy-ai's push is plain git push, so eisy needs SSH access to your repository. The easiest way is to ask eisy-ai to set it up: "Set up GitHub access for https://github.com/yourname/your-plugin.git, my GitHub email is you@example.com." This writes a real private key plus SSH config on eisy, so it only runs once you've explicitly agreed. You must be signed in, and the GitHub email you give has to match the email you're signed in with (otherwise it stops and tells you how to fix that, since over SSH there's no other way to confirm whose account it is). It then:

    • Creates a key used only for that one repository (a GitHub deploy key, the default). Say so if you'd rather have one key for your whole GitHub account instead (an account key, which reaches every repository you own, not just this one).
    • Trusts GitHub's host key, only after verifying its fingerprint against GitHub's own published one, and tests the connection.
    • Gives you the public key, a suggested title (eisy - <your eisy's hostname>, or your own if you asked for one), and exact steps for the one part it can't do: adding the key on GitHub.com. For a deploy key: open the repository's own Settings → Deploy keys → Add deploy key, paste the key, and tick Allow write access (or the push will be rejected). For an account key instead: your account's Settings → SSH and GPG keys → New SSH key, paste the key there.
    • Once you've added it, ask eisy-ai to try again — it verifies the connection and, now that it succeeds, gives you the SSH form of your repository's URL (ssh_remote_url) to use in step 4 below.

    It's safe to ask again at any time; if access already works it changes nothing.

    Prefer to do it by hand? An SSH key is the simplest option, and since you talk to eisy-ai through chat rather than a terminal, you generate and read it by asking eisy-ai to run the commands for you (this is the same host-shell capability described under Diagnostics in customer mode; nothing special needs to be enabled for it in developer mode). These are the same steps eisy-ai automates above:

    1. Check whether eisy already has a key. Ask: "Run ls -la ~/.ssh for me." If you already see an id_ed25519/id_rsa pair listed, skip to sub-step 3.

    2. Generate a new key pair on eisy, with no passphrase (there's no interactive prompt to type one into later, since eisy-ai runs commands non-interactively):

      "Run this for me: ssh-keygen -t ed25519 -C "your-email@example.com" -f ~/.ssh/id_ed25519 -N """

      This writes a private key (~/.ssh/id_ed25519, which never leaves eisy) and a public key (~/.ssh/id_ed25519.pub, safe to share — this is the one that goes to GitHub).

    3. Ask eisy-ai to show you the public key: "Run cat ~/.ssh/id_ed25519.pub and show me the output." Copy the single line it returns (starts with ssh-ed25519).

    4. Add it to your GitHub account:

      • On GitHub.com, click your profile photo → Settings → SSH and GPG keys (in the left sidebar, under "Access") → New SSH key.
      • Give it a Title that identifies this eisy (e.g. eisy - living room), leave Key type as Authentication Key, and paste the public key you copied into the Key field.
      • Click Add SSH key (GitHub may ask you to re-enter your password or 2FA code to confirm).
    5. Pre-trust GitHub's host key, so the first real push doesn't hang waiting for an interactive "are you sure you want to continue connecting?" prompt that eisy-ai's non-interactive shell tool can never answer:

      "Run ssh-keyscan -t ed25519 github.com >> ~/.ssh/known_hosts for me."

    6. Test the connection: "Run ssh -T git@github.com and show me the result." A successful setup replies with something like "Hi yourname! You've successfully authenticated, but GitHub does not provide shell access." — that message is expected and means authentication worked.

    7. Use the SSH form of your repository's URL (not the https:// one) so git actually uses this key: git@github.com:yourname/your-plugin.git instead of https://github.com/yourname/your-plugin.git.

    Prefer HTTPS instead? The alternative is a personal access token (github.com/settings/tokens) stored in git's own credential store on eisy — ask eisy-ai to run git config --global credential.helper store once, then the first push will prompt for your username and the token as the password and remember it after that. SSH is generally simpler here precisely because it needs no stored password at all.

  4. Ask eisy-ai to push your plugin, giving it the ssh_remote_url step 3 handed back (for a deploy key it looks like git@github.com-yourname-your-plugin:yourname/your-plugin.git; for an account key or the manual steps, git@github.com:yourname/your-plugin.git): "Set up the GitHub repo at <that ssh_remote_url>." From there it will:

    • Run git init (skipped if the plugin directory is already a repo).
    • Write a .gitignore that guarantees your local secrets file (.iox_env) is never committed.
    • Make the first commit, using your developer identity from step 1 of "Prompting" above.
    • Add your repository URL as the origin remote and push.

    This only happens with your explicit go-ahead, and is safe to run again later — it skips anything already done. If you forget the remote URL, eisy-ai tells you to create the empty repo yourself and re-ask with its URL.

  5. Everyday git work (status, diffs, log, stashing, pulling, ad hoc commits) isn't a special eisy-ai feature — just run ordinary git commands in your plugin's directory, or ask eisy-ai to run them for you via its shell-command tool.

VS Code integration

Once your plugin is installed on a real eisy, ask eisy-ai to set up debugging — e.g. "set up VS Code debugging for this plugin." It will:

  1. Read the live credential (PG3INIT) the installed service is actually running with, and write it to a local .iox_env file in your plugin's directory — the exact same credential the live service uses, so a debugger attached locally behaves identically to the real thing.

  2. Write a .vscode/launch.json debug configuration pointing at your plugin's main.py and loading that .iox_env file.

  3. Open your plugin's folder in VS Code, open the Run and Debug panel, select the generated configuration, and start debugging — you can now set breakpoints and step through your plugin's code while it runs against the real eisy.

VS Code's Run and Debug panel, showing the generated eisy-ai plugin launch configuration selected

This credential rotates every time the live service actually restarts, so it's safe (and sometimes necessary) to redo this step after a restart — just ask again and both files get rewritten.

Remote VS Code support

Beyond debugging from your own machine, eisy-ai can also set up your eisy itself to accept a direct VS Code Remote-SSH connection, so you can open your plugin's files and run VS Code's own tooling right on the hub instead of only attaching a debugger to it remotely.

The first time you ask for VS Code setup (see above), eisy-ai also offers this one-time, hub-side step: installing the packages and environment VS Code's Remote-SSH extension needs on your eisy. Because this makes a real change on the hub itself, it always asks for your explicit confirmation first — it won't do this silently as a side effect of the local debug setup above.

Once you confirm, eisy-ai runs the hub-side setup and gives you a ready-to-use SSH config snippet, built from your eisy's own real address and name, for example:

Host my-eisy
    HostName 192.168.1.50
    User admin
    SetEnv BASH_ENV=".bash_linux"
  1. Add that block to your own machine's ~/.ssh/config file.
  2. In VS Code, install the Remote - SSH extension if you haven't already.

VS Code Install Remote SSH extension

  1. Open VS Code's Remote-SSH host picker and connect to my-eisy (or whatever name your snippet used).

VS Code's Remote-SSH "Connect to Host" picker showing the eisy host entry

  1. Once connected, open your plugin's folder directly on my-eisy — you're now running VS Code against the real filesystem and Python environment your plugin executes in, not a local copy.

This eisy-side setup only needs to be done once per plugin output root; eisy-ai tracks that it's already been done and won't ask again unless you explicitly ask it to redo it.

Packaging for the plugin store

Once your plugin works the way you want, ask eisy-ai to package it — e.g. "package this plugin for the store." This builds a ready-to-share archive (code, profile, README, license, requirements, install script) named after your plugin and its version, always leaving out dev-only clutter (your local secrets file, certificates, debug configuration, test files, persisted/session data) — and refuses outright if anything that looks like a real secret value turns up in a file that would be included. Packaging is safe to redo any time; a new archive replaces the old one. Actually submitting the archive to the plugin store is still a manual step you do yourself.

Remember: submitting to the store requires being a vetted developer. As noted under Navigating the Development tab, you can package and test your plugin locally without any special status, but moving it from Local Plugins to My Published Plugins requires that vetting. If you haven't gone through that yet, contact us at universal-devices.com/my-tickets first.