Skip to content

v1.2.8

Choose a tag to compare

@lop1505 lop1505 released this 09 May 07:57
31552e5

Release v1.2.8 β€” Restoration & Climate Controls

πŸ›  The 1.2.6 Regression, Fixed

When room-card.js was rewritten in v1.2.6 (#76), four features that shipped with v1.2.5 quietly disappeared from the codebase. v1.2.8 brings every one of them back, ported cleanly onto the current architecture and re-validated against the original issues.

Restored

  • πŸŒ— Header Image Grayscale by Light State (image_entity) β€” header image fades to grayscale with a 0.8 s transition when a chosen light/switch/input_boolean/group is off. Re-closes #66.
  • 🚢 Presence Indicator Chip (presence_sensor) β€” green chip in the header when a person / binary_sensor / device_tracker is active.
  • πŸ“ˆ Sensor Sparklines on Buttons (show_sparkline, sparkline_hours, sparkline_refresh) β€” tiny SVG history line charts directly on sensor buttons, fetched via history/history_during_period and refreshed on a configurable cadence. Re-closes #55.
  • 🏠 Area-Based Auto-Setup β€” pick a Home Assistant area, hit Generate from Area and the card auto-populates the climate entity, controls (light/switch/cover/fan/media_player/lock), temperature/humidity sensors, window/door sensors and battery sensors. Existing controls are preserved, generated buttons appended. Re-closes #54.
  • 🚨 Configurable Alert Sensors (alert_sensors, alert_chip_mode, alert_border_color) β€” sensor thresholds (state / above / below) trigger red header chips and a red card outline. Collapsed mode shows a single count badge that opens a list dialog. Re-closes #57.

✨ New in 1.2.8

  • 🚫 Hide Background Image (show_image: false) β€” closes #82. Hides the header <img>, drops the dark gradient and #444 placeholder, and lets the header collapse to its content height (room name, icon, badges, chips stay visible). When header_height is explicitly set it still wins; otherwise the bar auto-shrinks.

  • πŸ”₯ HVAC Mode & Fan Speed Chips (show_hvac_modes, show_fan_modes) β€” closes #81. Per-button toggles for climate entities. Tappable chips render attributes.hvac_modes / attributes.fan_modes and call climate.set_hvac_mode / climate.set_fan_mode directly. The active mode is highlighted; HVAC chips ship with matching MDI icons (off/auto/heat/cool/heat_cool/dry/fan_only).

🧰 Editor

Every option above is exposed in the visual editor β€” no YAML required:

  • Image section: Show background image switch, Light Entity (Grayscale when off) picker
  • Sensors section: Presence Sensor picker, Alert Sensors list (entity + above/below/state) plus Show as badges (collapsed) toggle and Card Border Color field
  • Configuration tab: new collapsible Area Setup section at the top
  • Button editor: Show Sparkline + History (hours) on every button row; HVAC Mode Chips and Fan Speed Chips in the climate row

🌐 i18n

All new strings are translated into English, German and French.

πŸ”„ Backwards compatibility

100% additive. Every new option defaults to a value that preserves pre-1.2.8 behaviour. Cards configured for v1.2.5 / v1.2.6 / v1.2.7 work unchanged.

πŸ™ Thanks


Full diff: v1.2.7…v1.2.8
Commits on this release: 10
Files touched: room-card.js, CHANGELOG.md, README.md