
Build it yourself: Homey
Learn step by step how to build Homey yourself.
Step 1 of 4
Create device database in Supabase
Create tables for devices and automations with status tracking, room assignment, and trigger definitions.
sql
create table devices (
id uuid primary key default gen_random_uuid(),
user_id uuid references auth.users,
name text not null,
type text check (type in ('light','thermostat','lock','sensor','camera')),
room text,
status jsonb default '{"online": true}',
last_updated timestamptz default now()
);
create table automations (
id uuid primary key default gen_random_uuid(),
user_id uuid references auth.users,
trigger_type text not null,
trigger_value jsonb,
action jsonb not null,
active boolean default true
);Learn to build Homey
Module 05: Chaos to Order
Apply everything you've learned directly: build agents that turn your personal chaos into a working system – just like Ben's own agent family. From task management to news filtering.
3.5 hours10 Lessons
Go to course module