Pre-release for beta testers. Five new features and three fixes for my-slider-v2.
Install via HACS: open my-cards, Redownload, "Need a different version?", pick v2.3.0-beta.1. Normal users are not prompted to update to a pre-release.
New features
- Script sliders (#58). Set
entityto ascript.*and the slider becomes slide-to-run: it rests atminThreshold, sliding pastmaxThresholdruns the script, then it snaps back. Pair withallowTapping: falseso only a deliberate slide fires it. - Track markers (#56). Add a
markers:list to draw static reference lines on the track (a 0 dB midpoint on an EQ slider, a threshold, and so on). Each marker sits exactly where the thumb would for that value, and they are styleable viastyles: marker:. - In-slider label (#5). New
label:key.label: trueshows the entity's friendly_name, a string shows fixed text, and a template puts the live value on the slider:label: '[[[ return entity.state + " %" ]]]'. Styleable viastyles: label:, and it never blocks dragging. - Colour from the light (#28).
colorFromEntity: truefills a light slider's progress bar with the bulb's current colour (fromrgb_color, or approximated from colour temperature). Your ownstyles: progress:background still wins. - Fan preset modes (#13). New
presetMode:key switches a fan into the named preset before setting the percentage, for fans (Xiaomi purifiers) that only accept a stepless percentage in a specific preset.
Fixes
- Non-zero entity min (#75). Sliders on an entity whose minimum is not 0 no longer have a dead zone at the top of the track and no longer write values Home Assistant rejects. Thanks to StijnVdd for the report and the first fix attempt.
- showValue with a hidden minimum (F-11). The drag bubble now shows the real entity value instead of a number that was too low by the minimum.
- Edge tap crash (F-12). Pressing the exact left or top edge of a slider no longer throws.
Docs
- Clarified what
showMindoes (it keeps the minimum visible and scales the bar to the full range, rather than being a bug).
Full Changelog: v2.2.0-beta.4...v2.3.0-beta.1