Set up Getwello with Hubitat
Local hub, Maker API, virtual sensor. About 20 minutes for the first wire-up.
Hubitat exposes the Maker API for external integrations. This guide creates a virtual contact sensor, exposes it, and toggles it from a Getwello webhook.
What you need
- A Hubitat hub.
- A Getwello Coordinator account with active subscription.
- 20 minutes.
Step 1: Enable Maker API
- On the Hubitat web UI: Apps → Add Built-In App → Maker API.
- Configure: pick which devices to expose, generate an access token, note the App ID.
- Allow Cloud access if you want to reach the hub from our servers.
Step 2: Create a virtual contact sensor
- Devices → Add Virtual Device.
- Type: Virtual Contact Sensor. Name: “Mum's check-in”.
- Add it to the Maker API exposed device list.
Step 3: Build a relay
Tiny Cloudflare Worker that toggles the sensor on our webhook:
export default {
async fetch(req, env) {
const HUB = `${env.HUB_URL}/apps/api/${env.APP_ID}`;
const TOKEN = env.MAKER_TOKEN;
const SENSOR = env.SENSOR_ID;
await fetch(`${HUB}/devices/${SENSOR}/open?access_token=${TOKEN}`);
await new Promise(r => setTimeout(r, 2000));
await fetch(`${HUB}/devices/${SENSOR}/close?access_token=${TOKEN}`);
return new Response('ok');
}
};
Step 4: Create the Getwello webhook subscription
Settings → Developer API → Webhooks. URL is your relay. Tick check_in.created.
Step 5: Build a Rule Machine rule
Apps → Add Built-In App → Rule Machine → Create rule. Trigger: contact sensor closes. Action: whatever you want (lights, speakers, TTS).
Troubleshooting
Relay can't reach the hub: use Hubitat's Cloud API endpoint, not the local IP, when calling from the internet.
Rule doesn't fire: check the contact sensor actually changed state (Maker API shows current values). If not, the relay isn't reaching the hub.
More on developer api, mcp and webhooks
- What the Developer API is for, in plain English
- Create your first API key
- Set up the Getwello MCP server with Claude Desktop
- What webhooks are, and why you would want one
- Set up your first webhook
- Recipe: Sonos announces "Mum has just checked in" via Home Assistant
- Troubleshooting integrations
- Set up Getwello with Slack, end to end
- Set up Getwello with Amazon Alexa
- Set up Getwello with Apple Shortcuts and Siri
- Set up Getwello with Google Home and Nest
- Set up Getwello with Zapier
- Set up Getwello with Notion
- Set up Getwello with n8n
- Set up Getwello with Make.com
- Set up Getwello with Discord
- Set up Getwello with Microsoft Teams
- Set up Getwello with Telegram
- Set up Getwello with IFTTT
- Set up Getwello with Pushover
- Set up Getwello with Cursor
- Set up Getwello with Ollama
- Set up Getwello with Apple HomeKit
- Set up Getwello with SmartThings
- Set up Getwello with Tasker
- Set up Getwello with Sonos
- Set up Getwello with Google Calendar
- Set up Getwello with Apple Calendar
- Set up Getwello with Obsidian
- Set up Getwello with ntfy
Didn't answer your question?
Email hello@getwello.co.uk