Hello, I am curious to know what is your LMS setup and especially your card/lovelace setup.
I have a 3 RPi setup with PicorePlayer and a LMS server on MAC.but my lovelace setup sucks, I need inspiration and guidance. I am kinda new to the Home assistant world. Would you be kind enough to show your current setup, I would really like to be able to learn from you, I sould say learn MORE from you because youāve been helping me learn a whole lot already.
Hi, a user recreated my previous setup and has shared his code. So you can use that
I now use a LMS webview in fullscreen, which I can access through Lovelace with webcard. There is not much to share about that, since its just my LMS server (with material skin) which I added the volume popup sliders to.
But that is a separate thing, this thread is only about the media player card, which I use on my dashboard as media entities.
Thats also what Ive been using with my rpi4 + khadas LeTone 2 DAC. I am really digging this little DACā¦ its the best sounding thing iāve boughtā¦ you should check it out its cheap for the sound qualityā¦ anyways im off topic. thanks for this answer ill go check it out. Ill let you know what ive ended up doingā¦ thanks for answering!
Hey @ASNNetworks
Love you media card.
I have implemented it in Mattiasās homekits beautiful concept but I get errors. Iām thinking itās styling errors?
The music works though and the cover art is shown.
Hi, Iāve been busy on holidays. Have you gotten everything working now? Yes, I changed the codes when card_mod was updated. I donāt visit this thread much, so havenāt updated the code on here.
@ASNNetworks Yes, itās all working great.
I had one though. When nothing is playing, itās blank right? Do you have any else going on while itās blank? I mean, did you update it to show something else or you just see it blank?
Glad you got it working. I just updated the code in my post. Btw regarding the favorite/heart button: I used that prior when I used Spotcast and created a script using IFTTT. I switched all my audio to Logitech Media Server for a while now and ditched IFTTT. Currently itās a non-functional button in my own setup.
When nothing is playing the card is blank, since there is no artwork. In my case all my media players are hidden. All my speakers have their own media card, which are all inside their own conditional card. So when a speaker is off, the specific media card is hidden. I also wrapped them all inside one swiper card, so I can easily swipe between media cards/speakers.
Oh wow, thatās cool. Something new I have to do nowā¦ arghā¦ haha. It just never ends it seems.
You wouldnāt happen to have your code on a github.
I know Mattias also did something like this, with conditions. I didnāt dwell into conditions yet.
On your code, the only thing that doesnāt work are the actions. For some reason, the three dot actions and the main whole button press action donāt work at all.
I have somewhat changed the code throughout time because I started using decluttering-card. But the three dots should open more-info. So make sure that service call is still correct. Same applies to the main play/pause button.
I believe browser_mod has been changed a few times as well, which changes the more_info command. I donāt use it as a more-info anymore myself. I think you can just set it as:
tap_action:
action: more-info
And get rid of browser_mod command there.
Regarding conditions: itās very simple, the HA documentations explain the usage of that card very well: Conditional Card - Home Assistant
Example in your case:
type: conditional
conditions:
- entity: media_player.media_player.lesboutin
state_not: 'off'
- entity: media_player.media_player.lesboutin
state_not: unavailable
card:
type: picture-elements
image: 'local/tablet/overlay.svg'
REST OF THE CODE OF THIS MEDIA CARD
This will hide the card if itās either off or unavailable for some reason (like disconnected). When itās playing, idle, paused etc it will show. You can change the conditions to what you see fit yourself.