github Nerwyn/android-tv-card 3.5.0
3.5.0 - Slider Improvements

latest releases: 4.2.0, 4.2.0-beta.001, 4.2.0-alpha.031...
8 months ago

Slider Tooltip

Sliders now show a tooltip with the current value when held down on, similar to Home Assistant tile sliders. You can disable this by setting tooltip to false in a custom action for the slider.

image

The slider has also been refactored so it should perform a bit better, and shouldn't prematurely update it's value right after it sends an action, causing it to rubber band between the old and new values. The logic for turning the slider on and off has also been improved so it should update faster.

As part of standardizing the slider in this project with my other custom tile feature project, some slider related fields have been deprecated and moved to a slider custom action (old remote configs should continue to work).

  • slider_range -> custom_actions.slider.range.
  • slider_style -> custom_actions.slider.style.
  • slider_attribute -> custom_actions.slider.value_attribute.
  • enable_slider_feedback -> custom_actions.slider.haptics.

You can now also set the slider step value in a custom action for the slider.

Haptics

You can now enable or disable haptics for specific buttons by setting haptics to true or false within their custom actions.

The following fields have been renamed:

  • enable_button_feedback -> button_haptics .
  • enable_touchpad_feedback -> touchpad_haptics.
custom_actions:
  slider:
    range:
      - 0.5
      - 1
    step: 0.1
    value_attribute: brightness # defaults to volume_level
    tooltip: true # defaults to true so you don't really need this line
    haptics: false # defaults to true
    style:
      '--border-radius': 4px

Other fixes

  • Fixed slider ID logic bug which would cause multiple sliders in different copies of the same card to use the same slider ID or not work at all #67.
    • And another issue where default actions were being overwritten in one copy of this card and those changes showing up in another.

Full Changelog: 3.4.0...3.5.0

Don't miss a new android-tv-card release

NewReleases is sending notifications on new releases.