Everyday use

Rules that hold, right inside Home Assistant.

How Halumar makes a profile’s rules stick when someone switches a device, what Home Assistant checks, and where the limits are.

Still being built. Halumar is in beta and still evolving, so parts of this guide may be out of date or not quite right yet. Found a mistake or something unclear? Let us know, we’re happy to help.

In short

Home Assistant lets every user switch every device. Halumar changes that for devices whose profile sets Home Assistant access to Hub only or Checked: their Home Assistant user may only read, and every switch goes through the Halumar check. It runs inside Home Assistant as part of the Halumar integration. On Hub only without remote access the device holds no key at all and switches through the hub, which uses the same check.

How Halumar enforces a rule. Craig’s phone uses the House sitter profile with remote access and is away from home. In Home Assistant it may only read. Every switch goes through the Halumar check: who is asking, which profile, at home or away, what the rule says. Opening the garage door is refused because the rule says view only from away; turning off the hallway light is allowed, and the logbook names Craig’s phone. Another tool with the same access is refused by Home Assistant. Home Assistant access in the profile is Hub only, Checked or Direct.
Craig’s phone (House sitter with remote access, away from home): the hallway light is allowed, the garage door stays closed, and a direct command from another tool is refused. Open the large version

Why Home Assistant needs help here

Home Assistant knows administrators and users, but no permissions per light, lock or room. Every user may switch every device. A dashboard can hide cards, but that only changes what you see: the device’s access can still open the garage door, from any app or script.

Apps that only hide things offer comfort, not protection. Halumar does both: it shows each device what fits, and on Hub only and Checked, Home Assistant enforces what the device may switch.

What the Halumar check looks at

For every switch, the check answers four questions. Only if all of them fit does it switch the device, on behalf of the device that asked.

  1. Who is asking? Home Assistant tells the check which device sent the request. A device can’t pretend to be another one.
  2. Which profile? The device’s profile, including adjustments for this device and temporary exceptions.
  3. At home or away? Home Assistant decides from the connection itself, the same way it does for users who may only sign in at home.
  4. What does the rule say? Rooms and devices, control or view only, away from home, quick access, and for kids bedtime and limits. Only known commands with sensible values pass; scenes and scripts only if you share them.

Several devices at once, such as “All off”, work too: the check decides for each device and reports which ones switched.

Hub only, Checked or Direct

Home Assistant access is a rule in the profile. Like most rules, it has a Fixed checkbox, and you can adjust it for a single device, also for a while.

SuggestionHome Assistant access
ParentsDirect (default, changeable)
AdultChecked (default, changeable)
Wall panelChecked (default, changeable)
TVChecked (Hub only is not offered)
GuestHub only (default); Checked possible, never Direct
House sitterHub only (default); Checked possible, never Direct
Child, with parental controlsHub only (default); Checked possible, never Direct

Direct gives the device the normal rights of a Home Assistant user without administrator rights, like other apps. The rules then apply in the Halumar app, in widgets, with Siri and on Apple Watch, but not in Home Assistant. The suggestion Parents uses it; guests and children never get it. It also keeps switching if the Halumar integration ever fails.

Examples

ProfileRuleAt homeAway
House sitterGarage door from away: view onlyOpensShows the state, doesn’t open
ChildOwn room; bedtime from 20:00Night light yes, front door noNo remote access
GuestGuest room; pass until SundayGuest room until SundayOnly if the profile allows it
Wall panelKitchen and hallwayKitchen lights yes, garage noNo remote access

At home or away

Whether a request comes from home is decided by Home Assistant from the connection: your home network counts as home, Home Assistant Cloud and other connections from the internet count as away. The app can’t change that. Two setups need attention:

  • Your own reverse proxy (a server that passes requests from outside on to Home Assistant): set it up so Home Assistant sees the device’s real address (trusted proxies). Otherwise every request looks as if it came from home.
  • A VPN such as Tailscale: these connections count as away.

When something is offline

  • The Halumar Hub restarts or updates: devices with a key keep switching. The check keeps its own copy of every device’s rules and gets changes as soon as the hub is back. Only kids’ limits that count, such as actions per minute, need the Halumar Hub. Devices on Hub only without a key are offline until it is back.
  • The Halumar integration doesn’t respond: devices on Hub only and Checked still see everything, and the app shows that switching isn’t possible right now because the Halumar integration isn’t responding. You get a repair notice in Home Assistant and a note in the Halumar editor. Devices with Direct keep switching.
  • In an emergency: an administrator can give a device full rights under Settings → People → Users in Home Assistant. Once the integration is back and the profile says Checked, Halumar sets the device back to read only.

Halumar never moves a checked device to Direct by itself.

Logbook and changes in Home Assistant

The check switches on behalf of the device that asked. Home Assistant’s logbook and history therefore name that device, such as Craig’s phone, just as if it had switched directly.

If someone edits a device’s user in Home Assistant and it gets more rights that way, the Halumar integration notices and sets it back to read only right away, as long as the profile says Hub only or Checked.

What is enforced, and what isn’t

WhatOn Hub only and Checked
Switching devices: lights, blinds, locks, climate, media and moreEnforced in Home Assistant
Which rooms and devices a device may controlEnforced in Home Assistant
View only, also only when awayEnforced in Home Assistant
Bedtime and limits for kidsEnforced
Scenes and scriptsOnly those you share
Hiding devicesDisplay rule: a device with a key can still read their state
Notifications and shopping listsNot checked by Home Assistant
Devices on DirectRules apply in the Halumar app only

Halumar is not an alarm system. No profile hides important alerts (alarm, smoke, water); alerts appear while the app is open. For locks and alarms, also use the codes that Home Assistant itself asks for.