Skip to content

v4.0.0: Multi-user support

Latest

Choose a tag to compare

@PersephoneKarnstein PersephoneKarnstein released this 16 Mar 22:18

Multi-user support

Multiple users can now track their estradiol levels independently on the same Home Assistant instance. Each user gets their own PK curve, scaling factor, blood tests, and dose history.

New features

  • Per-user traces: Each user's estradiol curve renders as a separate colored trace on the chart
  • Per-user E2 indicators: Card header shows color-coded current E2 values for each visible user
  • Show all users toggle: Card option to show only the selected entity's trace or all users' traces
  • Card-mod trace coloring: CSS custom properties (--estrannaise-color-<user_id>) and SVG CSS classes (estrannaise-user-<user_id>) for per-user color overrides via card-mod
  • User ID in sensor names: Sensor entities include [user_id] for disambiguation when multiple users share an ester
  • Per-config regimen data: Suggested/cycle-fit regimens computed per config entry

Fixes

  • Editor focus-loss in dose and blood test button cards
  • Dose validation red flash for whole numbers (changed to step: any)
  • Entity's user always gets the configured line color (not alphabetically first)
  • Removed redundant user_id field from dose/test button editors (implicit from entity)

Card-mod integration

Override per-user trace colors:

card_mod:
  style: |
    :host {
      --estrannaise-color-alice: #E91E63;
      --estrannaise-color-bob: #00BCD4;
    }