◆

oakWeb Designer

Start free

GUIDE

How to put your Home Assistant on a website

Give family, guests or staff a simple web page to switch lights, run scenes, check sensors and use the alarm: no Home Assistant account for them, no app to install, and Home Assistant itself never exposed. About 15 minutes.

Before you start

A Home Assistant that oakWeb can reach. With oakWeb's cloud that means an address on the internet: Home Assistant Cloud (Nabu Casa) gives you one, or your own domain with HTTPS. With oakWeb Server running at home, the address on your home network is enough (http://homeassistant.local:8123 or its IP).

An oakWeb account: free at oakweb.net, or your own oakWeb Server.

1. Make a token in Home Assistant

In Home Assistant, open your profile (your name at the bottom left), then the Security tab. Under Long-lived access tokens, click Create token, name it oakWeb, and copy it: Home Assistant shows it only once.

Tip: make a Home Assistant user just for this, so you can see what it does and remove it any time.

2. Connect your home in oakWeb

In your site's admin page, open 🏠 Smart home, click + Connect a home (another brand or account), choose Home Assistant, and paste its address and the token. Click Test the connection, list the devices: your devices are listed (lights, switches, scenes, sensors, alarm panels…), each with its id.

The token is kept on the server only. The pages never see it, nor your Home Assistant's address.

3. Put devices on your pages

In the editor, open 🧩 Plugins → Smart home and drag in what you want: a Devices list (every light, or light.kitchen_*), a Switch for one light, a Sensor value, a Scene button, the Alarm panel with its keypad, or a Camera. Choose each one's device from the list your home gave.

Faster: start from the Home control panel template, which has scenes, the alarm, lights, plugs, doors, motion and temperatures on one page, and cameras on another.

4. Choose who may use it

Back in 🏠 Smart home, write the emails of the people who may switch things (or tick Anyone signed in to this site). They sign in on your site with that email. Tick Visitors not signed in can see too if anyone may look (never switch).

Only the devices placed on your pages can be seen or used. An alarm is armed and disarmed with its code, typed each time and never kept.

5. Publish

Click Update site. Your home is on your site's address, live: oakWeb keeps a WebSocket open to Home Assistant, so a light switched at home changes on the page at once. People can add the page to their phone's home screen and use it like an app.

QUESTIONS

Asked often

Does it work with Nabu Casa?

Yes: use your Home Assistant Cloud remote address and a long-lived token.

Can I use SmartThings, Shelly or Tuya instead?

Yes: they connect the same way (their keys in 🏠 Smart home), and several homes can be on one site.

Is this an official Home Assistant add-on?

No: oakWeb uses Home Assistant's public REST and WebSocket APIs with a token you make and can revoke any time.