This is awesome i use it every day. Would love an option for Night sound for Sonos
I prefer to not add platform specific features, but you could always use a shortcut that calls the service.
I have a Media Player that never goes off, but instead only go into the idle state. Is it possible to hide the artwork when itâs in idle state? When my device is off (read: idle) it still shows the artwork.
Hey, thereâs an optional idle view implemented in the card and itâs customizable so can manually configure what should be considered as idle
, please see the idle_view option.
The following config options should do the trick in your case:
idle_view:
when_idle: true
Awesome working on this now thank you. is it possible to change the icon based on the state of some something?
ie, if mqtt topic = on show icon cat, if off show dog?
Hey your theme is very nice!! Any chance I could get you to share? Thank you.
Hey, Itâs heavily inspired by this reddit post.
Hereâs a gist of the theme.
Some things are pretty flawed, like the sidebar, that doesnât really fit with the theme.
Iâm also using comptact-custom-header which makes the header look a lot better.
# cch config
cch:
background: rgba(155,155,155,.25)
clock_format: 24
swipe: true
swipe_animate: fade
swipe_prevent_default: true
Edit: Youâll also need to specify background: var(--background-image)
in your lovelace-ui.yaml / raw config editor
Awesome thanks dude! I use cch and have a background like that setup already also. Gonna try her on tonight thank you for sharing!
Is it possible to make the progress bar bigger? i use this a lot to jump through media, itâs quite tricky to use on a touchscreen.
The progress bar (or the touchable area of it) is actually quite a bit bigger than it shows, but it might still not be enough to be suited for touch input. Could probably make the touchable area 16px in the feature (basically the whole bottom card padding), any more and it would interfere with the buttons and rest of the card.
You could try setting --paper-progress-height: 16px !important;
on the card with card mod or similar, you can apply this style to the ha-card element.
You would probably also want increase the bottom padding so it doesnât eat into the buttons and rest of the card.
# card mode styles
ha-card {
--paper-progress-height: 16px !important;
}
.mmp-player {
padding-bottom: 32px !important;
}
Can you guys give me some inspiration for how your Multiroom Music tabs look like?
@kalkih: Love your card, really flexible!
Any chance you would consider adding a possibility to send media_player.media_stop on the toggle_power option? I am using the card with a HEOS integration, and it doesnât seem to react to neither toggle or turn_off, while media_stop does what I would want it to.
I guess I could replace the mute button with stop to achieve the same, but then I would like to keep the mute button too
Thanks!
Another option, similar to replace_mute
could work I guess (replace_power
)?
Itâs not the prettiest solution but should be fairly easy to add.
Thanks!
Feels like this should be itâs own card imo, a simpler card with larger touch control areas.
Itâs quite tough to implement multiple optional large UI changing options in one card since all options have to play nice together. It also bloats the code quite a bit since you basically have to implement several UIâs in the same card, with conditions for what to render.
A solution that makes more sense to me would be to maybe add some sort of scaling option to the card, which could scale up/down? all/some elements and possibly even hide some less important ones.
I also mentioned this in a similar feature request over at github.
@kalkih: Yeah, that would to the trick! Thanks. Another alternative could be to add an optional stop-button together with the play and fwd/rev buttons?
Hello all
I have issue with my mini media player setup and do not seem to be able to find a root cause or fix. I have two Google audio Chromecast devices and for each I have configured number of button shortcuts which calls either media_player.play_media or media_player.volume_set services. Up until month ago everything worked like charm and I could control individual players with its own button set. About month ago something changed and ever since all these buttons always execute the service for both of these players. So when I press set volume to 50% shortcut both players change volume.
Anyone would know what is causing this issue?
This is how my code looks:
- cards:
- entity: media_player.philips_fidelio
shortcuts:
buttons:
- data:
media_content_id: >-
http://bbcmedia.ic.llnwd.net/stream/bbcmedia_radio2_mf_q?s=1533459519&e=1533473919&h=18f6c5b3476af1a615500e65c019ce99
media_content_type: audio/mp4
id: media_player.play_media
name: BBC2
type: service
Thanks a lot for any advice.
Im struggling with a couple of things that I dont manage to get working! Please point me in right directionâŠ
I want to have the âmuteâ button to be shown, how do I do this? Set the hide mute to false dont work. Same with progressâŠ
Also, the volume sliders lenght is changing depending on the length of the song title/artist. Can this be a fixed lenght instead?
Yes, itâs most likely this PR which introduced a change to service calls in a recent release, should in hindsight have been documented as a breaking change.
Basically, before the card would automatically add entity_id: [entity_from_card_config]
as data in service calls, which cause problems when calling services that doesnât allow extra parameters and where entity_id
insât a valid one.
With media_player
service calls the entity_id
parameter is quite important though, and with the recent change youâll have to manually provide it in your shortcut buttons. If you omit entity_id
in media_player
service calls it will fallback to all entities within the media_player
domain I believe.
So for example, this should work
- cards:
- entity: media_player.philips_fidelio
shortcuts:
buttons:
- data:
entity_id: media_player.philips_fidelio
media_content_id: >-
http://bbcmedia.ic.llnwd.net/stream/bbcmedia_radio2_mf_q?s=1533459519&e=1533473919&h=18f6c5b3476af1a615500e65c019ce99
media_content_type: audio/mp4
id: media_player.play_media
name: BBC2
type: service
Some features only work on supported platforms, mute and progress is two of them, some components doesnât have support for these features implemented.
What media player platform is it?
Volume slider width is dynamic in collapsed view, thereâs however a min and max width, if you donât hide controls, it wonât resize depending on artist/title and only by the width of the card.
If you want to customize this behaviour yourself I would recommend checking out card-mod with which you can apply custom styling to the card.
Something like
ha-slider {
width: 150px;
}
could work, but might not play nice with other elements of the card.