Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

my-button entity support, my-slider-v2 seekbar and more. #54

Merged
merged 7 commits into from
Feb 5, 2024

Conversation

AnthonMS
Copy link
Owner

@AnthonMS AnthonMS commented Feb 5, 2024

Description

my-button now support light, cover, switch, input_boolean, button, lock, media_player and blank entity.
my-slider-v2 media_player now has mode: 'seekbar' that will make the slider act as a seekbar for currently playing media.
my-slider-v2 new config key 'sliderMin'. This is a percentage that it should always show of the progress.
Lots and lots of bug fixes.

Related Issue

#52 Seekbar mode

Motivation and Context

Multiple changes to my-button to make it more versatile for more entity types as default.
The seekbar mode for the slider is nice. Thanks @sharn25 for the suggestion!

How Has This Been Tested

Extensively in my local setup. So far it seems to behave the same for me. There might be changes in peoples behavior if they were using transition on progress bar. There is some default transition now, and it will remove it when actively moving the slider to make it a smoother user experience.

Types of changes

  • 🐛 Bug fix (non-breaking change which fixes an issue)
  • 🚀 New feature (non-breaking change which adds functionality)
  • 🌎 Translation (addition or update a translation)
  • ⚠️ Breaking change (fix or feature that would cause existing functionality to change)

Checklist

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have tested the change locally.

Fixed bug on slider-v2 with switch & lock in vertical position not transitioning correct style
More style changes to the button component. Again breaking changes if you use custom styling for the cards.
With the new styling has come a new row/column of buttons. Readme has been updated to show config
my-button has been updated to accept button, lock & no entities.
my-button has been updated so there are default actions on the card for some of the entity types
better config management in the code. Should not change anything for the user, except better stability maybe.
Fixed bug in my-slider-v2 where card would not load state correctly
changed colorMode/coverMode to just be mode. They will still work for now, but are deprecated, so you should use mode now.
lock entity buttons accept the 'camera' key which is a string like 'camera.front_door'. This will show a mini livestream in the stats container which is opened on tap.
label config now accept 'extra' key which is a string that will display an extra text underneath the main label
styles has been updated so they can be nested in the configs they belong to.
Better helper functions thanks to the wonderful authors of the custom button-card over at https://github.com/custom-cards/button-card
Better typesafety in code thanks to aboive changes.
…media_player as entity and set mode 'seekbar'
my-slider-v2 new config key 'sliderMin'. This is to determine the minimum percentage progress to show always. To be honest, I am uncertain what showMin is for?
There has always been bugs loading the initial states for the different entity domains. I am trying to address these. But having a hard time finding them all. Also input_numbers using decimals have never worked in this card. I am trying to address this as well.
my-button media_player support. It has seekbar in bottom, pause/play button in bottom left before seekbar, volume slider in right side if active and will show song title and artist under label and give it scrolling effect if text is too long to be displayed
 There has been a lot of bugs around some of the new logic with sliderMin and trying to get a transition to look nice on the slider by default. Hopefully I have found and fixed them all.
@AnthonMS AnthonMS added bug Something isn't working enhancement New feature or request labels Feb 5, 2024
@AnthonMS AnthonMS self-assigned this Feb 5, 2024
@AnthonMS AnthonMS merged commit aea9aca into main Feb 5, 2024
3 checks passed
@sharn25
Copy link

sharn25 commented Feb 6, 2024

Thank Mate, you solved me long pending issue with my custom media card.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants