kalkih / mini-media-player

Minimalistic media card for Home Assistant Lovelace UI
MIT License
1.52k stars 207 forks source link

Problem with first show when i have add mini media player #39

Closed ghost closed 5 years ago

ghost commented 5 years ago

Hi I have added to my config as i show mini media player. After first login to HA i have an error but when go to other cards/tab and then come back to my first card with mini media player all is ok. Why ?

`resources:

title: Mój dom views:

POKOJE

1

2

kalkih commented 5 years ago

Hello, This is an issue when using the card nested inside the custom:vertical-stack-in-card card. Custom cards doesn't always play nice together and I can't maintain support for every custom card available unfortunately.

There are a couple of issues opened in the vertical-stack-in-card repo regarding this already (#23, #22)

Try updating vertical-stack-in-card to the latest version if you haven't already, #28 might have fixed this issue.

Btw, I recommend you to switch over to the bundle version of mini-media-player (follow the install instructions again).

ghost commented 5 years ago

I have latest 0.0.8 version vertical-stack-card

What you mean write about

Btw, I recommend you to switch over to the bundle version of mini-media-player (follow the install instructions again).

ghost commented 5 years ago

i folowed step by step by manual and the same probem is...

kalkih commented 5 years ago

Ok, then vertical-stack-in-card doesn't work properly when this card is nested. If you use this card outside of the vertical-stack-in-card it will work as expected.

You can also try replacing the vertical-stack-in-card with a vertical-style-card.

ghost commented 5 years ago

In vertical-style-card is also problem. But on this also after refresh not show entity mini-media-player

3

kalkih commented 5 years ago

Hey @pepeEL I just tried this myself and both vertical-stack-in-card and vertical-style-card work perfectly fine together with the mini-media-player.

Make sure you've followed the installation instructions correctly and are using the latest version of each card and Home Assistant.

screenshot 2018-12-07 at 17 49 40

Example card configuration:

- type: custom:vertical-stack-in-card
  title: custom:vertical-stack-in-card
  cards:
    - entity: media_player.chromecast_badrum
      type: custom:mini-media-player
    - entity: media_player.chromecast_sovrum
      type: custom:mini-media-player
    - entity: media_player.chromecast_vardagsrum
      type: custom:mini-media-player

- type: custom:vertical-style-card
  title: custom:vertical-style-card
  cards:
    - entity: media_player.chromecast_badrum
      type: custom:mini-media-player
    - entity: media_player.chromecast_sovrum
      type: custom:mini-media-player
    - entity: media_player.chromecast_vardagsrum
      type: custom:mini-media-player
kalkih commented 5 years ago

@pepeEL Did you get it to work?

ghost commented 5 years ago

No still no working

kalkih commented 5 years ago

Okey, that's weird. Are you using the bundle version now? what browser are you using? Please post your yaml again, in code blocks please.

ghost commented 5 years ago

Now i use Home Assistant 0.84.0b4 beta and it has change configuration Lovelace. It store configuration in file lovelace in path /.storage no as old in ui-lovelace.yaml

But from GUI i can copy you RAW configuration by RAW EDITOR. It is this: https://pastebin.com/FsTb4gHs

kalkih commented 5 years ago

It looks like you are still using the raw source (mini-media-player.js) and not the bundle (mini-media-player-bundle.js)?

Also, I see no vertical-stack-in-card card used anymore?

ghost commented 5 years ago

Now I don't use vertical to test that still is problem.

I must use mini-media-player.js or mini-media-player-bundle.js in configuration?

kalkih commented 5 years ago

You should use the mini-media-player-bundle.js. Read the Instructions again and look at the examples if you are unsure.

ghost commented 5 years ago

Ok i test it

kalkih commented 5 years ago

Ok, let me know the results 👍

ghost commented 5 years ago

Looks to be ok but please wait to tommorow.

kalkih commented 5 years ago

Cool, yes, let me know.

ghost commented 5 years ago

Ok yes it is ok