Staykey for Home Assistant
Staykey is a Home Assistant integration for short-term and vacation rental hosts. It connects your Airbnb and VRBO turnovers to local smart-home hardware — automating guest access on Z-Wave, Zigbee, and Matter smart locks, plus thermostats, covers, switches, and more — and streams lock and device events back to your Staykey account through a secure, persistent connection, local-first with no vendor cloud lock-in.
Learn more at getstaykey.com.
Features
- Gateway connection — a persistent WebSocket connection to Staykey for real-time, two-way device control and state streaming
- Automatic device discovery — Staykey discovers supported devices (locks, climate, covers, switches, lights, sensors) from your Home Assistant instance
- Z-Wave lock support — keypad code management, lock/unlock, and activity event forwarding
- State streaming — device state changes are forwarded to Staykey in real time
- Offline buffering — events are queued when the connection is temporarily unavailable and sent on reconnect
Requirements
- Home Assistant 2026.4 or newer
- HACS installed
- A Staykey account with a gateway token (provided by Staykey)
- Z-Wave JS integration (if managing Z-Wave locks)
Installation (HACS)
- In Home Assistant, open HACS > Integrations > menu (three dots) > Custom repositories
- Add this repository URL, select category Integration, and click Add
- Search for Staykey in HACS and click Install
- Restart Home Assistant
- Go to Settings > Devices & Services > Add Integration > Staykey
- Enter your Gateway Token (provided by Staykey)
Manual install: copy custom_components/staykey into your Home Assistant config/custom_components directory and restart.
Configuration
During setup you provide your Staykey gateway token, and Staykey checks it when you add the integration. If Staykey later stops accepting a running entry's token, Home Assistant asks for a new one with a re-authentication prompt for the entry: paste the current token from your Staykey dashboard (Properties > Integrations > Home Assistant) there. The integration keeps trying to connect in the meantime, and the prompt clears itself if the token starts working again.
After setup, you can adjust options from:
Settings > Devices & Services > Staykey > Configure
Available options:
- Gateway Token — your Staykey-provided authentication token
- Gateway URL — WebSocket endpoint (uses the default unless directed otherwise by Staykey)
- Allow support access — off by default. Turn it on to let Staykey support debug this Home Assistant: call any service, read the codes stored on your locks, and watch its events. Leave it off unless Staykey support asks you to turn it on, and turn it off again afterwards.
Supported Devices
| Type | Capabilities |
|---|---|
| Locks | Lock, unlock, user code management, activity events |
| Climate | Set temperature, set HVAC mode |
| Covers | Open, close |
| Switches | Turn on, turn off |
| Lights | Turn on, turn off |
| Sensors | State reporting |
How It Works
When configured with a gateway token, the integration maintains a persistent connection to Staykey. Through this connection:
- Staykey can send commands to your devices (e.g., lock a door, set a thermostat)
- Device state changes are streamed to Staykey in real time
- Lock activity events (keypad codes, manual operations) are forwarded automatically
The integration connects only through the gateway; webhook mode has been removed. An entry set up for webhook mode, with no gateway token, fails to set up and says why on its entry in Settings > Devices & Services. Copy the gateway token from your Staykey dashboard (Properties > Integrations > Home Assistant), add it under Configure, and the integration reloads and connects (setup guide).
Security & Privacy
- Communication uses an authenticated WebSocket over TLS
- The gateway token uniquely identifies your Home Assistant instance to your Staykey account
- Each connection also sends your Home Assistant installation ID, a random identifier Home Assistant keeps for this installation. Every Staykey entry on the same Home Assistant sends the same ID, which lets Staykey recognise a lock shared by two properties as one lock
- With Allow support access off (the default):
- only the device state and event data Staykey needs is transmitted
- Staykey can only control the devices it has set up on this entry: each device command names a Staykey device, and the integration looks up that device's entity itself
- no passwords, personal data, or network details are shared
- With Allow support access on, Staykey support can also run debugging commands: call any service, read the codes stored on your locks, and watch events. Turn it on only while Staykey support is helping you, and off again afterwards
Troubleshooting
- Logs: Settings > System > Logs > search "staykey"
- Connection issues: the integration reconnects automatically with backoff; check logs for connection status
- Z-Wave devices not appearing: ensure Z-Wave JS is set up and devices are interviewed
Development
The integration code lives in custom_components/staykey.
License
MIT
Releases
This repository uses semantic versioning with automated releases:
- Merge commits to
mainusing Conventional Commits (feat:,fix:,chore:, etc.) - The release workflow computes the next version, updates
CHANGELOG.mdandmanifest.json, creates a GitHub release, and tags it
HACS detects new releases automatically from GitHub tags.
