Installing the Staykey Home Assistant Plugin
The Staykey plugin for Home Assistant is the recommended way to connect your smart devices to Staykey. It opens a secure outbound connection from your Home Assistant to Staykey's cloud — so you never need to expose your Home Assistant instance to the internet.
What the plugin does
- Connects securely without port forwarding — The plugin opens an outbound connection to Staykey. No public URL, no Nabu Casa subscription, no Tailscale setup required.
- Streams device state in real time — Lock status, thermostat readings, battery levels, and more are pushed to your Staykey dashboard instantly.
- Executes commands locally — When you or a guest locks a door or adjusts a thermostat from Staykey, the plugin handles it directly inside Home Assistant for fast, reliable response.
- Captures lock activity — Keypad unlocks, manual operations, and code slot usage are reported to your activity feed.
- Verifies access code writes — After setting a code on a Z-Wave lock, the plugin reads the slot back to confirm it took, handling retries automatically.
- Reports device health — Battery levels, connectivity status, and Z-Wave mesh quality are captured and sent to Staykey. Dashboard surfacing for health alerts is coming soon.
Requirements
- Home Assistant 2026.4 or newer
- Z-Wave JS integration configured with your lock(s)
- A Gateway Token from Staykey (found in your property's integration settings)
- Internet access (the plugin connects outbound — no incoming ports needed)
Get your Gateway Token
In Staykey, go to Properties → [Your Property] → Integrations → Home Assistant and copy the gateway token. You'll paste it into Home Assistant at the end of the install.
Install on Home Assistant 2026.11 or newer (Marketplace)
Home Assistant 2026.11 and newer include the Marketplace, which replaces HACS. Staykey is listed in it, so there's nothing extra to install first and no GitHub account needed.
- In Home Assistant, go to Settings → Marketplace
- The first time you open it, read the notice about community projects and select I understand the risks and agree
- Search for Staykey and open it
- Select Install
- The setup flow opens straight away. Paste your Gateway Token and click Submit
No restart is needed for a new install.
Install on Home Assistant 2026.4 to 2026.10 (HACS)
On these versions, Staykey installs through HACS (Home Assistant Community Store).
Step 1: Install HACS (if you don't have it)
If HACS is already in your sidebar, skip to Step 2.
- In Home Assistant, go to Settings → Add-ons → Add-on Store
- Search for Terminal & SSH, install it, start it, and open the terminal
- Run this command to download HACS:
wget -O - https://get.hacs.xyz | bash -
- When the script finishes, restart Home Assistant (Settings → System → Restart)
- Go to Settings → Devices & Services, click Add Integration, and search for HACS
- Follow the setup wizard. You'll authorize HACS with your GitHub account and accept its terms
- Once it's done, HACS appears in your sidebar
Step 2: Download Staykey
- Open HACS from your Home Assistant sidebar
- Search for Staykey
- Open it and click Download, then confirm
- Restart Home Assistant (Settings → System → Restart)
Step 3: Configure the integration
- After restart, go to Settings → Devices & Services
- Click Add Integration and search for Staykey
- Paste your Gateway Token and click Submit
The plugin will connect to Staykey automatically. You should see a "Connected" status within a few seconds.
Already added Staykey as a custom repository?
Before Staykey was listed, the install steps had you add it to HACS as a custom repository. You don't need to change anything: your install switches over to the catalog listing and keeps getting updates. If you upgrade to Home Assistant 2026.11, the plugin moves into the Marketplace along with everything else you installed through HACS.
How it works
The Staykey plugin maintains a persistent, encrypted connection from your Home Assistant to Staykey's cloud. This means:
- Your Home Assistant stays private — No need to open ports, set up a reverse proxy, or subscribe to Nabu Casa for Staykey access.
- Commands are fast — Staykey sends commands through the existing connection. The plugin executes them locally inside Home Assistant for minimal latency.
- Events stream in real time — Lock activity, state changes, and health data are pushed to Staykey as they happen.
- Reconnects are automatic — If your internet drops or Home Assistant restarts, the plugin reconnects with exponential backoff. No manual intervention needed.
What data is sent?
The plugin sends device data for the devices you've added to Staykey:
- State updates: Lock status, thermostat readings, switch states, battery levels
- Lock activity: Keypad unlocks, manual operations, which code slot was used
- Device health: Battery warnings, connectivity status, Z-Wave mesh quality
- Device metadata: Manufacturer, model, firmware version (during device discovery)
Supported capabilities
- Device Actions (lock, open, turn_on, etc)
- Access code management (set, clear, verify)
- State streaming for all tracked devices
- Device discovery with rich metadata
- Health and battery monitoring
- Diagnostic bundles (on request from Staykey dashboard)
Updating your Gateway Token
If you need to change the gateway token after setup:
- Go to Settings → Devices & Services
- Find Staykey and click Configure
- Enter the new gateway token
- Click Submit
Migrating from webhook-based setup
If you previously used the Staykey plugin with a webhook URL, upgrading is straightforward:
- Update the plugin to the latest version from Settings → Marketplace (or HACS on Home Assistant 2026.10 and older)
- Go to Settings → Devices & Services
- Find Staykey and click Configure
- Enter your gateway token (from Staykey's integration settings)
- Click Submit
The plugin will switch to the gateway connection. You can remove your Nabu Casa subscription or Tailscale Funnel setup if they were only used for Staykey.
Troubleshooting
Plugin not appearing after install:
- On Home Assistant 2026.10 and older, make sure you restarted Home Assistant after downloading Staykey in HACS
- Check that Staykey shows as installed in Settings → Marketplace (or in HACS on older versions)
- Can't find HACS on Home Assistant 2026.11 or newer? That's expected: use Settings → Marketplace instead
"Connection failed" or plugin won't connect:
- Verify the gateway token is correct (copy it fresh from Staykey)
- Check that your Home Assistant has internet access
- Look at Home Assistant logs: Settings → System → Logs and search for "Staykey"
"Invalid gateway token" error:
- Make sure you're using the gateway token from your property's integration settings
- The token may have been rotated — copy a fresh one from Staykey
Events not showing in Staykey:
- Check that your devices are added to Staykey (the plugin only tracks devices you've added)
- Verify the plugin shows "Connected" status in Devices & Services
- Check that your lock is using the Z-Wave JS integration (not the older Z-Wave integration)
Plugin shows "Disconnected":
- Check your internet connection
- The plugin reconnects automatically — wait a minute and check again
- If it persists, restart Home Assistant and check the logs for errors
Checking logs
To see plugin activity and troubleshoot issues:
- Go to Settings → System → Logs
- Search for "Staykey"
- Look for entries showing connection status, events being sent, or any errors
Source code
The Staykey plugin is open source and available on GitHub:
github.com/staykey/staykey-ha-plugin
Related articles
Still need help? Contact support with your plugin logs and we'll take a look.
Still have questions? We're here to help.