Can I use FluxGlow with Home Assistant?
Yes. A short script reads the entities you choose from Home Assistant's API and writes them as a board file. Show the board on a wall tablet or a TV, or put it inside a Home Assistant dashboard with a Webpage card.
What it looks like
The question this board answers is the one asked on the way to bed: is everything shut, and is anything wrong?
{
"title": "Home",
"nodes": [
{ "id": "lock.front_door", "label": "Front door", "state": "ok", "badge": "Locked", "caption": "Changed", "since": "2026-11-11T15:25:00Z" },
{ "id": "cover.garage_door", "label": "Garage", "state": "warn", "badge": "Open", "caption": "Changed", "since": "2026-11-11T16:35:00Z" },
{ "id": "binary_sensor.back_door", "label": "Back door", "state": "ok", "badge": "Closed", "caption": "Changed", "since": "2026-11-11T11:50:00Z" },
{ "id": "binary_sensor.kitchen_leak", "label": "Kitchen leak", "state": "ok", "badge": "Dry", "caption": "Changed", "since": "2026-10-28T19:40:00Z" },
{ "id": "binary_sensor.smoke_alarm", "label": "Smoke alarm", "state": "ok", "badge": "Clear", "caption": "Changed", "since": "2026-10-14T05:40:00Z" },
{ "id": "freezer", "label": "Freezer", "state": "ok", "value": -18, "unit": "°C", "badge": "Cold" }
]
}Why use it alongside Home Assistant's own dashboards
Home Assistant's dashboards are made for control: you walk up, read the cards and tap things. A FluxGlow board is made for the other moment, when you are across the room and only want to know whether anything needs you. It has nothing to tap. It is big, and it is either green or it is not.
What the states mean at home
| State | At home |
|---|---|
ok, green | As it should be: locked, closed, dry, cold. |
warn, amber | Worth a look before bed: a door open, a battery low. |
bad, red | Needs someone now: water on the floor, smoke, a freezer warming up. |
run, blue | Something is under way: the washing machine, the car charging. |
idle, grey | No reading. The sensor is unavailable. |
The script
"""Reads a few entities from Home Assistant and writes them as a FluxGlow board."""
import json
import os
import urllib.request
HA_URL = os.environ.get("HA_URL", "http://homeassistant.local:8123")
HA_TOKEN = os.environ["HA_TOKEN"] # a long-lived access token, made on your profile page
# entity, label, the state that means all is well, what to say then, what to say otherwise, how bad that is
WATCH = [
("lock.front_door", "Front door", "locked", "Locked", "Unlocked", "warn"),
("cover.garage_door", "Garage", "closed", "Closed", "Open", "warn"),
("binary_sensor.back_door", "Back door", "off", "Closed", "Open", "warn"),
("binary_sensor.kitchen_leak", "Kitchen leak", "off", "Dry", "Water found", "bad"),
("binary_sensor.smoke_alarm", "Smoke alarm", "off", "Clear", "Smoke", "bad"),
]
def read(entity_id):
request = urllib.request.Request(
f"{HA_URL}/api/states/{entity_id}",
headers={"Authorization": f"Bearer {HA_TOKEN}"},
)
with urllib.request.urlopen(request, timeout=10) as response:
return json.load(response)
nodes = []
for entity_id, label, fine, good, otherwise, severity in WATCH:
node = {"id": entity_id, "label": label} # ids can be 32 characters at most
try:
entity = read(entity_id)
except OSError:
entity = {"state": "unavailable"}
if entity["state"] in ("unavailable", "unknown"):
node.update(state="idle", badge="No reading")
elif entity["state"] == fine:
node.update(state="ok", badge=good)
else:
node.update(state=severity, badge=otherwise)
if "last_changed" in entity:
node.update(caption="Changed", since=entity["last_changed"])
nodes.append(node)
# A number instead of a yes or no: warn when the freezer warms up.
try:
freezer = float(read("sensor.freezer_temperature")["state"])
nodes.append({
"id": "freezer",
"label": "Freezer",
"state": "ok" if freezer <= -15 else "bad",
"value": round(freezer),
"unit": "°C",
"badge": "Cold" if freezer <= -15 else "Too warm",
})
except (OSError, ValueError):
nodes.append({"id": "freezer", "label": "Freezer", "state": "idle", "badge": "No reading"})
with open("board.json.tmp", "w") as f:
json.dump({"title": "Home", "nodes": nodes}, f, indent=2)
os.replace("board.json.tmp", "board.json")Setting it up
- In Home Assistant, open your profile, go to Security, and create a long-lived access token. Copy it when it is shown, because it is only shown once.
- Change the
WATCHlist to your own entities. Each line gives the entity, the label for the orb, the state that means all is well, the words for each case, and whether the other case iswarnorbad. - Run the script on any machine that can reach Home Assistant, with the token in
HA_TOKENand, if the default does not suit, your address inHA_URL. - Run it every minute from cron, and copy the file to where the board reads it each time.
* * * * * cd /home/pi/board && HA_TOKEN=your-token python3 home_assistant.py && aws s3 cp board.json s3://your-bucket/board.json --content-type application/json --cache-control no-cacheThink about what the file says
A board file can be read by anyone who has its address. A file that says the front door is unlocked is not one to leave on the open internet. Three ways to deal with that, from most to least careful:
- Serve the file from inside your home network over https, so that only screens at home can read it. How that works.
- Leave locks and doors off a file that is hosted publicly, and keep it to things like the freezer, the leak sensors and the washing machine.
- Use labels that mean something only to you.
Showing it
- On a wall tablet or an old phone: open the board's address in the browser and leave it on its charger.
- On a TV: see how to put a dashboard on a TV.
- Inside a Home Assistant dashboard: add a Webpage card with the board's address. Embedding a board has the card's YAML.
Related questions
-
How do I make a status board for a homelab or home server?
Run one shell script from cron that checks your apps, your disk and your last backup, and writes a node for each. An old tablet or a spare monitor then shows the lot as a grid of orbs.
-
Can I embed a board in another page or dashboard?
Yes. The board page can be placed in an iframe, so it works anywhere that can show a web page: an intranet home page, a wiki, or a Home Assistant dashboard.
-
Can FluxGlow see what is on my board?
No. Your browser fetches the board file straight from wherever you host it and draws it on the spot. The contents of the file never pass through FluxGlow.