Repository navigation
Apple Home: manage bridges, accessories and what you share in one place #97
Replies: 1 comment 1 reply
|
I looked at this from the technical side, including the Figma. The notes there contain a lot more than this post, including the questions for developers. Could you copy those questions into the post, so others can answer them here too? Frontend: no concerns. This fits patterns we already have: an integration page, sub-pages like the backup settings, a list like Connectivity, a column and filter in the Entities table, repairs, and the config entry disable for pausing a bridge. Core is where the work is, and I think it needs an architecture discussion before we start on the frontend:
Assist and the expose system: the Figma keeps Assist under Voice assistants, but doesn't say what happens to the Expose tab or to Assist's "expose new entities". A few things to keep in mind:
One case I couldn't find in the Figma: a paired entity that no longer matches its bridge's rules, for example a lamp moved to another area or a type turned off. Does it stay, disappear, or move to the main bridge? Moving it makes it a new accessory in the Apple Home app, so its room, scenes and automations are gone. I'd never move or remove it silently. Also worth knowing: every accessory is its own HomeKit server with its own port and pairing, and it keeps advertising until it's paired. That's fine with the repair, but it's the cost of creating them automatically. Answers to the developer questions, based on the current code:
Small things:
|
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Problem statement
Sharing Home Assistant with the Apple Home app is hard to set up and hard to change. Today every bridge and accessory is its own HomeKit entry, set up through an options flow of domains, include and exclude lists and modes. TVs, cameras and locks each need their own entry in accessory mode. Most per-entity options, like linked sensors or showing a switch as a sprinkler, are only available in YAML (HomeKit docs).
As discussed in Discord, I worked on a redesign together with the people in that thread.
Design
The ask is to pressure-test the structure and the flows. Visual details and copy are out of scope for now.
Figma, page Iteration 4
What this is
The entity dialog stays simple
The "Voice assistants" row becomes "Shared with", the same name as the column in the Entities table. It shows a switch per platform and a status line, with no options in it. Accessories link to their own page, bridged entities to the Apple Home page.
Where we draw the line between UI and YAML
Questions for developers
The core changes, like one set of rules across bridges and the API the frontend needs, go into an architecture discussion: TODO: link
Open questions for the review
Have a look at the Figma and drop your thoughts.
Updates
All reactions