Mini-media-player: Problem with first show when i have add mini media player

Created on 6 Dec 2018  路  18Comments  路  Source: kalkih/mini-media-player

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:

  • url: /local/mini-media-player.js?v=0.9.5
    type: module
  • url: /local/vertical-stack-in-card.js?v=0.0.8
    type: js
  • url: /local/layout-card.js?ver=7db164
    type: js
  • url: /local/dark-sky-weather-card.js?ver=0.1.5
    type: js
  • url: /local/tracker-card.js?v=0.1.5
    type: js
  • url: /local/slider-entity-row.js
    type: js

title: M贸j dom
views:

POKOJE
  • id: pokoje
    icon: mdi:home-assistant
    title: Pomieszczenia
    panel: false
    badges:

    • sun.sun

    • updater.updater

      cards:

    • id: pokoje_salon

      type: custom:vertical-stack-in-card

      show_header_toggle: false

      title: Salon

      cards:



      • type: glance


        show_name: false


        entities:





        • sensor.salon_temperature





      • type: entities


        entities:





        • entity: light.salon_stol



          name: O艣wietlenie nad sto艂em



          icon: mdi:lightbulb



        • entity: light.salon_kinkiety



          name: O艣wietlenie kinkiety



          icon: mdi:lightbulb



        • entity: switch.fibaro_system_fgwpef_wall_plug_switch



          name: Salon gniazdo TV



          icon: mdi:power-socket-eu



        • entity: light.fibaro_system_fgrgbwm441_rgbw_controller_level_3



          name: LEDy 3



          icon: mdi:led-strip



        • entity: light.fibaro_system_fgrgbwm441_rgbw_controller_level_4



          name: LEDy 4



          icon: mdi:led-strip



        • entity: light.fibaro_system_fgrgbwm441_rgbw_controller_level_5



          name: LEDy 5



          icon: mdi:led-strip



        • entity: light.fibaro_system_fgrgbwm441_rgbw_controller_level_6



          name: LEDy 6



          icon: mdi:led-strip



        • entity: light.fibaro_system_fgrgbwm441_rgbw_controller_level_7



          name: LEDy 7



          icon: mdi:led-strip



        • type: divider





      • type: custom:mini-media-player


        entity: media_player.tv_salon


        icon: mdi:television


        hide_controls: false


        volume_stateless: true


        hide_volume: false


        power_color: true


        show_source: true


      • type: custom:mini-media-player


        entity: media_player.denon_salon


        icon: mdi:audio-video


        hide_controls: false


        hide_volume: false


        power_color: true


        scroll_info: true


        show_source: true


        `



1

2

bug question

All 18 comments

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).

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).

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

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.

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

3

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

@pepeEL Did you get it to work?

No still no working

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.

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

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?

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?

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

Ok i test it

Ok, let me know the results 馃憤

Looks to be ok but please wait to tommorow.

Cool, yes, let me know.

Ok yes it is ok

Was this page helpful?
0 / 5 - 0 ratings

Related issues

davanda picture davanda  路  3Comments

darkkatarsis picture darkkatarsis  路  4Comments

fleXible picture fleXible  路  5Comments

gerard33 picture gerard33  路  3Comments

magnusoverli picture magnusoverli  路  5Comments