Skip to content

v2.3.0-beta.1

Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 21 Jul 22:23

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 entity to a script.* and the slider becomes slide-to-run: it rests at minThreshold, sliding past maxThreshold runs the script, then it snaps back. Pair with allowTapping: false so 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 via styles: marker:.
  • In-slider label (#5). New label: key. label: true shows 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 via styles: label:, and it never blocks dragging.
  • Colour from the light (#28). colorFromEntity: true fills a light slider's progress bar with the bulb's current colour (from rgb_color, or approximated from colour temperature). Your own styles: 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 showMin does (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