v1.2.8
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 aperson/binary_sensor/device_trackeris active. - π Sensor Sparklines on Buttons (
show_sparkline,sparkline_hours,sparkline_refresh) β tiny SVG history line charts directly on sensor buttons, fetched viahistory/history_during_periodand 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#444placeholder, and lets the header collapse to its content height (room name, icon, badges, chips stay visible). Whenheader_heightis 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 forclimateentities. Tappable chips renderattributes.hvac_modes/attributes.fan_modesand callclimate.set_hvac_mode/climate.set_fan_modedirectly. 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
- @rVlad93 for #66
- @stilli00 for #81
- @antoha100505 for the discussion that became #82
- @cabr0ne for catching that the v1.2.5 features had vanished
Full diff: v1.2.7β¦v1.2.8
Commits on this release: 10
Files touched: room-card.js, CHANGELOG.md, README.md