Conversation
- Add _resolveRangeBounds(): resolves template min/max for band ranges - Add _resolveRangeColor(): routes object configs through resolveStateColor(), strings through _resolveColorValue(); coerces result to string for SVG attrs - Add _extractRangeEntityDependencies(): scans range templates for external entity refs (token + JS bracket syntax), stores in _rangeTemplateEntities - Override _shouldUpdateOnHassChange(): also watches _rangeTemplateEntities so external entity changes trigger re-renders without a page refresh - Move _resolveMarkerValues() outside primary-entity guard in _handleHassUpdate so cards with no entity but dynamic range templates also respond - Update all four rendering paths (getPillColor, markerPillMap, _generateGaugeBandRanges, _generateShapedRangeBands, gauge inline path) to use resolved bounds + _resolveRangeColor - Update pills memoization hash to include _resolvedRangeBounds - Schema: ranges[].min/max accept string templates; ranges[].color accepts stateColorSchema (object form for state-aware syntax) - Base: _shouldUpdateOnHassChange JSDoc @Private → @Protected to allow override
…rrectness
- Fix getPillColor(): when _invertFill is true, mirror the pillValue calculation
(displayMax - valuePercent*displayRange) so band ranges color the pills that
visually correspond to their value positions, consistent with the swapped
gradient and reversed fill direction in _updatePillOpacities
- Fix pills memoization hash: append entity state + classified button state so
state-aware range colors (e.g. { active: red, inactive: gray }) bust the cache
on entity state change without requiring a page refresh
…ent (Group 3)
- background.min/max now clamp extent in _generateProgressBar() zone renderer
- background.radius {start,end} object form available in editor (per-end fields)
- fill bar radius field replaced with radius.start/end per-end fields in editor
- editor: Progress Bar section groups Fill and Background Track as collapsible sub-sections
- horizontal input overlay constrained to control-range footprint in display space
- vertical drag overlay constrained to control-range band; value handlers simplified
… template support - Gauge memoization hash: add classifiedState, resolvedMarkerValues, resolvedRangeBounds so state-driven range colors and template-bound range extents correctly bust the cache - Per-band pill opacity (#12): add getRangeOpacity() alongside getPillColor() in _generatePillsSVG(); embed resolved opacity as data-unfilled-opacity on each pill rect; _updatePillOpacities() reads per-pill opacity so band-specific opacity values are honoured during live updates - Attribute template support (#9): new _resolveControlAttribute() method handles {entity.attributes.xxx}, {entity.state}, and [[[JS]]] templates; used in _getEntityValue() so the slider can read from a dynamically-resolved attribute name - Open GitHub issue #309 for Group 7 #10 drag interaction visual state (deferred)
…lue strings and improve fallback handling
- Bump version to 2026.03.29.1 - Upgrade jsdom from 27.1.0 to 29.0.1 - Upgrade custom-card-helpers from 1.9.0 to 2.0.0
…iable for all workflows
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.