New Feature
Building upon last weeks "tap action" options, two new gestures have been added: swipe_left and swipe_right.
This adds even more options to control the card or trigger actions simply with gestures. Any action you could previously configure as chips you can now trigger right from the artwork using tap, double_tap, hold, swipe_left, or swipe_right.
Just for fun I included an example in the README of a very minimal configuration of YAMP, removing all the controls and using gesture actions instead.
type: custom:yet-another-media-player
entities:
- entity_id: media_player.office_homepod
name: Office
hidden_controls:
- previous
- play_pause
- stop
- next
- shuffle
- repeat
- favorite
- power
show_chip_row: in_menu
actions:
- service: media_player.media_play_pause
service_data:
entity_id: current
in_menu: hidden
card_trigger: tap
name: Play/Pause
- in_menu: hidden
card_trigger: hold
name: Volume Down
service: media_player.volume_down
service_data:
entity_id: current
- in_menu: hidden
card_trigger: double_tap
service: media_player.volume_up
service_data:
entity_id: current
name: Volume Up
- service: media_player.media_next_track
service_data:
entity_id: current
in_menu: hidden
card_trigger: swipe_left
name: Next Track
- service: media_player.media_previous_track
service_data:
entity_id: current
in_menu: hidden
card_trigger: swipe_right
name: Previous Track
alternate_progress_bar: true
volume_mode: hidden
What's Changed
- build(deps-dev): bump rollup from 4.55.2 to 4.56.0 by @dependabot[bot] in #228
- feat: Tweak artwork in scaled-contain mode by @jianyu-li in #229
- feat: provide visual feedback when using a card tap action by @jianyu-li in #230
- Swipe card actions by @jianyu-li in #231
- Update main features section by @jianyu-li in #232
Full Changelog: v33.0.0...v33.1.0