Home Assistant
If you run Home Assistant (free software that runs a smart home from a small computer in your house), the Braiins Deck can show and control the things in it. Read the outdoor temperature from across the room, turn the coffee machine on with a tap, or start a scene from your desk.

Each thing gets its own widget, Home Assistant Tile. It works like the Tile card on a Home Assistant dashboard: one entity per widget. An entity is one thing Home Assistant knows about, such as a light, a switch or a temperature sensor. Put several widgets in a combined scene and the Deck becomes a small control panel.
What You Need
- Home Assistant 2024.3 or newer, on the same network as the Deck.
- The address you open Home Assistant at, starting with
http://, such ashttp://homeassistant.local:8123. - Deck software 26.11 or newer. The update installs the Home Assistant Tile widget for you.
No Home Assistant yet? Its own guides walk you through installing it and the first-time onboarding, where you create your user and set your home's location. Come back here once you can open Home Assistant in a browser.
The Deck connects to Home Assistant over plain http:// only. If you reach Home Assistant only through an https:// address, such as a Home Assistant Cloud link, use its local address instead.
Create a Token in Home Assistant
A long-lived access token (a code Home Assistant gives you to use instead of your password) lets the Deck log in.
- In Home Assistant, click your name at the bottom left of the sidebar, then open the Security tab.
- Scroll to Long-lived access tokens at the bottom and click Create token.
- Name the token after where you use it, such as "Braiins Deck", and click Create token again.
- Copy the token. Home Assistant shows it only once.

The token can do everything its Home Assistant user can do. For a Deck in a shared room, create a separate Home Assistant user without administrator rights, log in as that user and create the token there. Such a user cannot change Home Assistant's settings, but it can still control every device. See Authentication in the Home Assistant docs.
Connect the Deck to Home Assistant
You save the address and the token once, as a connected account. Every Home Assistant widget on the Deck then uses it.
- Open the Deck's web interface and choose Connected Accounts in the menu.
- Choose Add New Account and pick the Home Assistant type.
- Type an Account Name, such as "My Home Assistant".
- In Address, type the address you open Home Assistant at, for example
http://homeassistant.local:8123orhttp://192.168.1.20:8123. Leave out anything after the port, such as/lovelace. - Paste the token into Long-lived access token.
- Choose Add New Account.

The Deck sends the token only to the address you saved. It refuses to save an address that starts with https:// or has a path after it.
To change the address later, edit the account and enter the token again too.
Add a Home Assistant Widget
Each widget needs the entity ID of one thing in Home Assistant. It looks like light.kitchen or input_boolean.coffee_machine: the type of entity, a dot, and a name.
Find the entity ID
- In Home Assistant, open Settings, then Devices & services, then the Entities tab.
- Search for the thing by its name and click it.
- In the window that opens, click the cogwheel in the top right corner.
- Copy the text in Entity ID. The button next to the box copies it for you.

Clicking the thing on a Home Assistant dashboard opens the same window. If you do not see Settings, your Home Assistant user has no administrator rights: ask whoever set up your Home Assistant for the ID.
Put it on the Deck
- On Display Widgets, choose Add New, then Full Screen or Combined Scene. In a combined scene, pick a free cell.
- In the Add New Widget picker, open the Utility category and pick Home Assistant Tile.
- In Configure Widget, choose the size, then pick your account under Home Assistant.
- Paste the entity ID into Entity ID.
- If you want a shorter label than the one from Home Assistant, type it into Name.
- Choose Done.

The widget shows the entity's current state. A change made in Home Assistant, from its app or a wall switch, shows on the Deck within about a second. Repeat the steps for each thing you want on the screen. To build the scene itself, see Scenes and Widgets.
What the Widget Can Show
The widget handles these types of entity; its entity ID starts with one of the prefixes in parentheses. For any other type, it says Type not supported yet.
- Buttons, scenes and scripts (
button.,input_button.,scene.,script.): a tap presses the button, activates the scene or starts the script. A tap on a running script stops it. - Switches (
switch.,input_boolean.,automation.,siren.,remote.): a tap turns it on or off. For an automation, that means on or off; the tap never runs it. - Lights (
light.): a tap turns the light on or off. Larger sizes add brightness and color controls. - Sensors (
sensor.,binary_sensor.): the widget shows the value large enough to read across the room. A tap does nothing.
The widget uses Home Assistant's standard icon for the type of entity and its state, such as a toggle for a switch or a thermometer for a temperature. An icon you picked for the entity in Home Assistant does not show on the Deck.
Buttons, scenes and scripts
Under the name, the widget says when the button was last pressed, such as "5 minutes ago", or "Never pressed". While a script runs, the widget reads "Running" with an amber icon, whether you started it from the Deck or from anywhere else.
Switches
While the switch is on, the icon sits on an amber disc. While it is off, the disc disappears and the icon turns grey. The widget flips at once when you tap it. If Home Assistant does not confirm the change within 2 seconds, the widget goes back to the state Home Assistant last reported.
Lights
A tap on the widget turns the light on or off. Where there is room, rows of controls sit beside or under the name: brightness with − and + buttons around a bar, color temperature, color, and brightness presets of 25, 50, 75 and 100%. Each row shows only for a light that supports it. A smaller widget leaves out rows from the end of the list:
− and + move the brightness in steps of 10%. A tap on a bar sets the value under your finger. For 3 seconds after each change on the rows, the Deck's light strip glows in the light's new color.
The bars react to a tap only. Dragging along a bar does not work yet: a swipe that starts on the widget moves to the next scene instead.
Sensors
- Numbers show as they do in Home Assistant, such as "4.2 °C".
- Times show how long ago they were or how soon they come, such as "in 4 minutes".
- Binary sensors show Home Assistant's words for their kind: "Open" or "Closed" for a door, "Detected" or "Clear" for smoke.
At Medium size and larger, the widget also says when the value last changed.
The number of decimals comes from Home Assistant, not from the widget's settings on the Deck. To change it, open the entity's settings in Home Assistant and change Display precision. The Deck shows the new precision within 5 minutes.
Guard an Action With a Hold
A widget can wait for a press and hold, so an accidental touch never opens the gate or rings the siren.
To make a hold the only way to act, set Hold to toggle to a time and Tap action to Nothing. The widget then shows the hold time after the state, such as "Hold 2 s", and a ring fills around the icon while you hold. Letting go early reads "Released too early".
With both settings on, a tap acts too. With both off, the widget only shows the state.
Error Messages
When something is wrong, the widget shows one of these messages in place of the entity's state. Orange text means something needs your attention.
- No account set: Open the widget's settings and pick your account under Home Assistant.
- No entity set: Fill in Entity ID in the widget's settings.
- Invalid entity ID: Check the ID. It is a type, a dot and a name, such as
light.kitchen. - Entity not found: Home Assistant has no entity with this ID. Check its spelling, or whether the entity was renamed.
- Type not supported yet: The widget cannot show this type of entity. See What the Widget Can Show.
- Token refused: Create a new token in Home Assistant, then edit the account and enter the address and the new token.
- Use an http:// address: The account has an
https://address. Edit it and use the localhttp://address. - Home Assistant too old: Update Home Assistant to 2024.3 or newer.
- Can't connect, retrying…: The Deck cannot reach Home Assistant. Check that it is running and that the address works in a browser on the same network.
- Communication error: The widget could not read Home Assistant's reply. If it stays, send a support archive.
- Reconnecting…: The connection dropped. The widget reconnects on its own and ignores taps until then.
- Unavailable: Home Assistant reports the device as unavailable, for example because it is unplugged or offline.
After a tap, the line under the name can say "Home Assistant refused", "No answer" or "Connection lost" for a few seconds. The tap did not work: check the device in Home Assistant. "Too many taps" means earlier taps are still waiting for an answer.
Under the hood
The widget is a WebAssembly widget. It opens a WebSocket connection to Home Assistant at ws://<address>/api/websocket, follows the entity's state live and calls Home Assistant services for each action.
The token is stored on the Deck as a Home Assistant account. The widget's code never reads it: the Deck adds it to the connection, and only for the address saved with the account. Saving a new token reaches every widget at once; widgets connected with the old token are disconnected and reconnect with the new one.
The connection is not encrypted, so the token and the states travel in plain text over your home network. Keep the Deck and Home Assistant on a network you trust.
Limits of this version: a light's color is set by hue alone, at full saturation, with no effects or favorite colors. A sensor that reports one of a list of options shows the raw value, such as partly_cloudy, not the translated text a Home Assistant dashboard shows. The widget's own words are in English.