my-cards is now in the official HACS store!
You can find My Cards directly in HACS by searching for it now, no custom repository needed anymore.
This release promotes six beta releases (v2.1.0-beta.1 through v2.3.0-beta.2) to stable. Same code that has been running as pre-releases and in production for months with no reported issues, no longer tagged beta.
Full Changelog: v1.0.6...v2.3.0
New features
Colour-picker sliders (#20, #28)
Light color sliders can show the color scale as the track itself.
- New
mode: rgb: a hue picker with a rainbow track (writes the hue at full saturation). Picker look is on by default. colorTrack: trueturns temperature, hue, or saturation into a picker. Opt-in, existing color sliders are unchanged.- Track is the color gradient, progress fill goes transparent, thumb is a slim see-through handle so the gradient shows through the point you're selecting.
- Custom
styles: track,styles: progress, orstyles: thumbstill take priority.
Script sliders (#58)
Set entity to a script.* and the slider becomes slide-to-run: rests at minThreshold, sliding past maxThreshold runs the script, then snaps back. Pair with allowTapping: false so only a deliberate slide fires it.
Track markers (#56)
markers: list draws static reference lines on the track (a 0 dB midpoint on an EQ slider, a threshold). Styleable via styles: marker:.
In-slider label (#5)
New label: key. label: true shows the entity's friendly_name, a string shows fixed text, a template puts the live value on the slider: label: '[[[ return entity.state + " %" ]]]'. Styleable via styles: label:, doesn't block dragging.
Attribute sliders (#48)
New attribute: option reads/writes an entity attribute instead of state. Main use case: humidifier target humidity. Range defaults from the entity's own min_<attribute>/max_<attribute> when present.
Fan preset modes (#13)
New presetMode: key switches a fan into the named preset before setting percentage, for fans (Xiaomi purifiers) that only accept a stepless percentage in a specific preset.
Show value while dragging (#23)
showValue: true floats a value bubble above the thumb while dragging. Styleable via styles: value:.
colorFromEntity (#28)
colorFromEntity: true fills a light slider's progress bar with the bulb's current colour. Mostly replaced by the color-picker track above, still available.
Intermediate drag improvements
intermediate: true now tracks your pointer correctly while dragging instead of snapping back on the first update, on mouse and touch. New intermediateInterval option (default 100ms) throttles updates during a drag.
Fixes
- Non-zero entity min no longer leaves a dead zone at the top of the track or writes values Home Assistant rejects (#75).
color_temp_kelvinsent on modern HA for temperature mode (#73).- Out-of-range values fixed for min>0 ranges in inverse mode (#63).
showValuebubble shows the real entity value with a hidden minimum, no longer flickers combined withintermediate: true.- Fixed a crash when tapping the exact left/top edge of a slider.
styles: thumb: right:no longer ignored on vertical sliders.- Dragging a slider in the instant before its first render no longer throws.
- Fixed a memory leak: entity state changes used to add permanent document-level listeners that ran on every mouse move and kept removed cards alive. Listeners are now registered once per card and cleaned up on removal.
Internal
- Build toolchain modernized: Rollup 1 to 4, TypeScript 3.9 to 6, official
@rollupplugins, Babel removed. - Test suite grown to 155+ tests, including a smoke test of the built bundle.
- Slider internals cleaned up: shared math extracted into tested pure functions, fewer redundant computations per render.
Docs
- Clarified what
showMindoes: keeps the minimum visible and scales the bar to the full range, not a bug. - Documented
sliderId,attribute:sliders, corrected the supported-domains list.