Skip to content

v1.0.12

Choose a tag to compare

@f17mkx f17mkx released this 16 May 20:28

What's new

Hue scene picker

A new scenes_list gesture action opens a popup listing every scene that targets the light. Configure it on any group-icon or member-icon:

type: custom:everyday-light-card
entity: light.wohnzimmer
gestures:
  group_icon:
    double_tap: scenes_list

Tap a scene to fire it. The card discovers scenes two ways:

  • HA-native and light_group scenes via the scene's entity_id attribute.
  • Hue-bridge scenes via the scene's group_name matching the light's friendly name (when the light is itself a Hue room).

That second path is what makes favourited Hue-app scenes show up automatically. The card filters out its own internal snapshot scenes (scene.everyday_group_* from the toggle-with-state-restore feature).

Edit-mode (hide / restore scenes)

Long-press an active row to enter edit-mode. Long-press again to hide that scene; tap a grayed row to restore it. Tap outside any row to exit. Persistence via scenes_picker.source helper:

scenes_picker:
  source: helper:input_text.wohnzimmer_active_scenes
  transition: 0.4
  editable: true

Without source the curated order lives in memory only (lost on reload).

Parallel-axis sliders adapt to card width

The default_view_mode: parallel layout now resizes its sliders to fit the card, using the same overflow algorithm the compact-group view runs. Place a parallel card next to a compact-group card and both rows share visual rhythm (gap shrinks first, then slider width, with a 24 px floor so touch targets stay comfortable).

Config knobs (full list)

scenes_picker:
  scenes:               # optional: explicit list, replaces auto-discovery
    - scene.wohnzimmer_konzentriert
    - scene.wohnzimmer_entspannen
  source: helper:input_text.<id>  # optional: persist hide/restore state
  transition: 0.4       # seconds, passed to scene.turn_on
  name_strip_prefix: true   # strip "Wohnzimmer " from "Wohnzimmer Konzentriert"
  editable: true        # long-press to enter edit-mode (default true)

Backwards compatibility

  • Existing cards keep working unchanged. effects_list, color_wheel, saved_colors, cycle_mode, etc. are untouched.
  • default_view_mode: parallel cards visually adapt to width automatically. If you want the old fixed-60-px-slider look, set slider.width: 60 explicitly.

Visual editor

The double-tap action dropdown gains a new "Open scenes list" option.

Tests

172 vitest cases pass (16 new in scenes-discovery covering both match paths, prefix-strip, override, dedupe, snapshot filter).