Skip to content

Latest commit

 

History

History
154 lines (127 loc) · 12.1 KB

ui-interactions.md

File metadata and controls

154 lines (127 loc) · 12.1 KB

V2 touch and keyboard interactions

V2.1.1 retains native-button activation and the Stability hold-to-toggle behavior. Version 2.1.2 advances both V2 layouts to revision 16, superseding 1–15, with stamp schema 1 and generator contract 1 unchanged. Re-export and replace saved cards, including beta.1 revision-14 cards, for the optional-source generator correction. The footer presents UI compatibility and optional Marketplace/HACS update evidence separately. See the compatibility guide for these changes. Stable v2.1.1 notes describe the published release; earlier interaction changes retain their historical scope.

Interaction ownership

Surface Tap or click Other supported interaction
Humidity, Condensation, Mould Open HI details History uses its named native or embedded destination
7 Day Drift Open HI details Hold opens native more-info
Current Air Control Open explanation and recorded history Hold opens native more-info; chips and reason remain scrollable
Ready, Zone 1, Zone 2, AQ Open explanatory details and history These displays do not select a control lane
Stability Open snapshot details, including while Disabled Hold the badge or hold Space while focused to toggle its saved display preference
UI revision footer Open card-revision and optional Marketplace/HACS update details Enter and Space activate its native button; View update opens Home Assistant update details
System and Manual Toggle once when the input state is valid Hold opens more-info; unknown/unavailable input cannot toggle
Native Outputs header Toggle the shared expansion helper once Its native entity rows keep Home Assistant control behavior
Adaptive Outputs header Expand or collapse locally Evidence, monitoring and controls buttons open their named details
Adaptive entity/source links Open Home Assistant more-info Device controls remain owned by Home Assistant

HI detail buttons support keyboard focus and activation. Embedded history keeps Back, range selection, source selection and native-details handoff available. Close, Escape and offered backdrop dismissal remain immediate. Reopening begins a new dialog lifecycle and restores focus on dismissal where its opener still exists.

The interaction repair is scoped to HI-owned native buttons. Existing button-card service actions retain their owner; touch handling must not synthesize a second System/Manual toggle, operate an output, or turn a scroll into a tap.

VOC readings on your cards

Open the AQ badge. When HI has both VOC concentrations and monitor indices configured, VOC readings on your cards appears below the snapshot. Choose All configured readings (the default), Monitor indices only, or Concentration averages only. Your account uses the same choice for this HI installation across Mobile and Tablet. It affects only the current chip row. Each index uses its monitor’s own scale. Source mappings are in Sensors.

A single configured family appears automatically. An offline source keeps its unknown or unavailable indication. When configuration cannot be verified, the row shows verified readings. If Diagnostics goes offline, the stamped export can still show a finite reading from a mapped HI aggregate in its expected unit, alongside an AQ configuration warning. For raw gallery YAML, the HA registry must identify both the aggregate and Diagnostics as HI entities. A unitless gallery IAQ reading also needs HI’s aggregate band attribute to identify its scale. The generated export carries its own binding and can show a partial IAQ average in neutral. If only the VOC index configuration is unknown, its warning names VOC indices. Your choice resumes when both families are confirmed. If a source was added since the last export and its feed is missing, refresh the mappings and replace the saved card. While HI refreshes the preference, the chips keep the last verified filter for the same connection, account and HI entry. A read failure shows Display preference unavailable. Select Retry read to refresh the preference. When Diagnostics confirms both VOC families after an outage, the previous filter reappears for that same connection, account and entry. A fresh valid read replaces it. Without a previously verified choice, both families remain visible.

Request accepted by Home Assistant means Home Assistant acknowledged the request. If it cannot store the change, your previous choice may return after a restart. Request unconfirmed offers Resend for the attempted choice. A late acknowledgement clears that warning unless you have made a newer choice. An unconfirmed request also returns for the same connection, account and HI entry when Diagnostics recovers. If the read also fails, both messages and actions appear. Retry read leaves the unconfirmed request available. Resend sends the displayed choice again and keeps a subscription that delivered a valid preference during the resend. Both actions are available when connected.

Stability display preference

Hold the existing Stability badge to switch its presentation off or on. Disabled keeps the badge visible, with Disabled text, a static violet/indigo aurora and segmented LEDs. Tap, click, Enter and a short Space press open details and history. Holding Space on the focused existing badge performs the same hold action. No additional switch, button, checkbox or icon is introduced. Backend collection, score calculation, history and control continue unchanged.

Home Assistant's authenticated frontend user-data API stores a boolean for the signed-in user and an opaque HI entry identity. The preference survives refresh and is shared across that user's Mobile, Tablet and browser sessions for the same entry. Other accounts and HI entries are unaffected; it is not a config option or control entity. There is no localStorage fallback.

Read/save problems appear in the existing status label: Display preference unavailable or Save unconfirmed. They do not establish a saved preference or healthy environmental evidence. Clients without native dialog support retain the Diagnostics more-info fallback for tap.

Mobile and tablet touch matrix

Run this matrix separately for the generated V2 mobile and tablet layouts, including native and adaptive Outputs presentation. A desktop mouse pass does not establish touch support. Browser touch emulation must use an actual browser, enabled touch, a coarse pointer and the real supported card dependencies.

Check Mobile touch Tablet touch Expected result
Each surface in the inventory Required Required One intended activation; correct destination
Footer LED, text and extended hit area Required Required One revision dialog without overlapping another control
Tap, hold and rapid repeat Required Required Existing action distinction; no duplicate dialog or service call
Vertical scroll, horizontal chip drag and cancelled touch Required Required Scrolling remains usable; no unintended activation
Close, backdrop, reopen and history navigation Required Required Immediate dismissal; fresh dialog and correct navigation
Missing entities and unverified revision evidence Required Required Safe labels; no unavailable control toggle
Reconnect, navigation, removed and duplicate cards Required Required Listeners and timers clean up; dialogs stay independent and Stability preferences keep their user/entry scope
Stability hold, refresh and account/entry isolation Required Required One preference write; Disabled remains visible, tap works, same-user cards agree, other users/entries are unaffected, failures stay explicit
Adaptive details with custom names and guidance Required Required Literal readable text and working source/control handoffs
Inactivity and parent/child interaction Required Required Existing timer policy, no stale callback closing a later dialog

Also regress mouse and keyboard Enter/Space/Escape, focus restoration and narrow or rotated layouts. Check all resulting service requests in a controlled fixture: read-only details generate none, and an authorized control activation generates exactly its existing action. Live validation must respect the target's control boundaries; a fixture result is not physical-device proof.

Evidence and limits

See the browser regression harness for reproducible commands, dependency verification and fixture limitations.

During the beta.9 touch repair, the reported failure was reproduced with actual button-card 7.0.1 and generated card configuration in Chrome 154, using Pixel 7 mobile touch emulation (hasTouch enabled and coarse pointer). A touch tap opened zero revision dialogs; a mouse click opened one. This identifies a real browser/host interaction discrepancy, rather than relying on a synthetic click event or DOM test double.

That reproduction is not a physical Pixel, iPhone or iPad test and does not establish Safari or Companion behavior. Record the exact browser, dependency versions, viewport, input method, generated layout and source revision for repair validation. Keep unit/DOM results, real-browser touch results, physical-client results and live Home Assistant observations separate. A mobile-support claim requires the real-browser touch checks above; report physical-client coverage independently. This document records the contract and reproduction, not a completed repair test or deployment result.

Inactivity, source changes and activation

After a disconnect, the revision footer remains unverified until the connection is ready and a fresh available Diagnostics entity is rendered. A reused button-card state wrapper does not prevent recovery; cached or unavailable evidence cannot restore a verified status.

The inactivity contract remains authoritative: HI-owned details close after two minutes without interaction; passive telemetry does not renew them. Adaptive child activity renews its own and its parent's deadline. Native Outputs keeps its shared backend timer measured from opening, and Home Assistant owns its native dialogs. Revision 17 captures the V2 summary when opened and labels it with the client's capture time. Close and reopen for refreshed values. Routine telemetry keeps the same dialog, scroll position, focus, history range and inspected record. Back returns to the opening snapshot. A changed card owner, entry stamp, badge or mapped source retires the dialog. History retains its recorded timestamps and units.

A history source that returns becomes available on the next history request. A recovered source can also re-enable View history in the opening snapshot. If Retry read or Resend disappears while focused, focus returns to the current radio choice. A pending write leaves the separate read status available to assistive technology.

Renderer changes require synchronized Mobile, Tablet and gallery embeds. Stable exports revision 27. The final RC.1 exported revision 26. The final beta.1 and first RC.1 build exported revision 18, and published Stable v2.1.2 exported revision 16. After installing the complete integration and restarting Home Assistant, refresh the mappings and export fresh cards. Replace the complete saved card for each layout at revision 26 or earlier for these updates. Restart resets in-memory Stability history.

Keep the previous complete package and saved cards together for rollback. For software predating VOC index support, clear any configured index rows through Options in the supporting version first. Verify that all concentration mappings remain. Restore the previous package, restart Home Assistant to load it, then restore its matching saved cards. VOC downgrade steps Versions before v2.1.0-beta.9 retain their historical touch limitation. If rolling back across v2.1.0-beta.8 custom meanings, follow the settings and custody rollback requirements. Source validation, target activation and public release remain separate claims.