Commit Graph
25 Commits
Author SHA1 Message Date
Dermot Duffy 858c5d0610 fix: Move upgrade button to top of editor (#2687) 2026-08-14 21:13:10 -07:00
Dermot Duffy 17146c8ca6 fix: Clear the initialized condition state when the card is not usable (#2646)
The `initialized` state (used in conditions/triggers) was written once
and never cleared, so it meant "has this card ever been initialized"
while everything reading it took it as "is this card usable now". Home
Assistant takes a card off the page and puts it back whenever its
dashboard tab is left and returned to, so the card initialized again
while the state claimed it was initialized throughout: `trigger:
initialized` fired once per card rather than once per startup, and
automations were dropped in between.

The card lifecycle is now an explicit state machine (`SessionManager`),
the only writer of `initialized`, which separates a card that is
starting up from one initializing part of itself again while it runs. A
new `ever` parameter (conditions/triggers) selects the old latched
behaviour.

`remote_control` uses that parameter to keep its two camera priorities
correct under repeated starts. With `camera_priority: entity` the card
now re-reads the entity every time it starts, so a camera selected while
the card was away is picked up on return. With `camera_priority: card`
the card writes the entity on its first start only, unchanged, since
repeating that write would overwrite a camera the user had selected.

Closes: #2642


BREAKING CHANGE: `condition: initialized` is now `false` whenever the
card is not usable, and `trigger: initialized` fires each time the card
starts up rather than only the first time. Set `ever: true` on either to
keep the previous behaviour.
2026-08-02 12:52:58 -07:00
Dermot Duffy f24064689a fix: Restore keyboard focus for key triggers (#2634) (#2639)
- Closes #2634
2026-07-30 20:52:54 -07:00
Dermot Duffy ad89aa9538 test: Split test utilities to improve test times (#2622) 2026-07-26 16:29:53 -07:00
Dermot Duffy 7dc29865b8 chore: Enforce consistent type imports via @typescript-eslint/consistent-type-imports (#2545) 2026-06-30 17:45:13 -07:00
Dermot Duffy a96dc2e863 chore: Enforce import order via @ianvs/prettier-plugin-sort-imports (#2542) 2026-06-30 17:45:13 -07:00
Dermot Duffy a31816c168 feat: Add event-based automation triggers (#2537) 2026-06-30 17:45:13 -07:00
Dermot Duffy 15e335a647 feat: Add support for inbound "calls" from triggers (#2500) 2026-06-30 17:45:13 -07:00
Dermot Duffy df3614f793 fix: Various editor / diagnostic improvements (#2363)
- Closes: #2360 
 - Closes: #2328
2026-02-21 09:31:10 -08:00
Dermot Duffy fc32727860 feat: Add support for Frigate reviews / detections [initial PR] (#2315)
- Add support for Frigate reviews / detections.
 - Add support for GenAI metadata.
- Significant internal refactor to more flexible "UnifiedQuery" to allow
mixing cameras with simple metadata and review metadata (e.g. a timeline
view of a Frigate camera with reviews, and a Reolink camera with simple
metadata).
 - Add support for folder media as camera media.

There are a few more PRs to commit prior to this going live, but
commiting this for now due to the scale of the change.

BREAKING CHANGE: `media_type` and `events_type` are retired under
`live`, `viewer` and `timeline` configuration sections, instead media
type is associated (once) with the camera under `media`.
2026-01-19 13:32:50 -08:00
Dermot Duffy a241e02594 fix: Touch gestures should count as card interactions (#2265)
- Closes: #2245
2025-12-08 18:43:28 -08:00
Dermot Duffy 75ae7720d3 fix: Confirmations should apply to all actions (#1959)
This also refactors how generic HA actions are handled, and improves
typing of actions.


[skip ci]
2025-03-15 14:32:48 -07:00
Dermot Duffy ed0bb99a45 fix: Panel height should be 100% when casted (#1750) 2024-12-13 08:11:26 -08:00
Dermot Duffy 9ca56d061f fix: Improve media background image (#1635)
* fix: Improve media background image

* Simplify loading spinner.

This is slightly less fancy, but removes code. I'm guessing no-one will notice or care enough to raise it! (BMFW).
2024-10-12 14:31:26 -07:00
Dermot Duffy d7fa2933da fix: Show a background image in case media doesn't load (#1622) 2024-10-06 14:51:44 -07:00
Dermot Duffy 4e3b16f9b8 fix: Multiple cards should form a masonry layout (#1585) 2024-09-24 20:01:49 -07:00
Dermot Duffy 429dd90972 Use custom websocket to avoid needing admin privileges. 2024-08-24 20:00:00 -07:00
Dermot Duffy 7ab545738d Add initial keyboard shortcut support. 2024-06-05 21:44:17 -07:00
Dermot Duffy 7917e5c537 Add support for pre-defined zoom/pan settings. 2024-04-27 14:55:38 -07:00
Dermot Duffy 18bbe3a641 Fix element tests. 2024-04-07 21:24:35 -07:00
Dermot Duffy f67620397f Set timeline to now not to most recent event. 2024-04-07 20:21:09 -07:00
Dermot Duffy 88bea0ae7d Allow camera engines to signal events to the card. 2024-03-03 15:40:20 -08:00
Dermot Duffy a4108b73c5 Allow microphone state to be used in conditions. 2024-02-02 20:32:53 -08:00
Dermot Duffy 5e72070c96 Add interaction and triggered conditions. 2024-01-25 22:06:21 -08:00
Dermot Duffy ed91c87899 Move card-controller out of utils. 2023-10-03 20:14:08 -07:00