#How can I re-create this card?

1 messages · Page 1 of 1 (latest)

hollow steeple
#

HA added this to Overview automatically.... I tried creating a card from the entity but the suggestion HA makes looks nothing like this. How to re-create?

#

How can I re-create this card?

indigo forge
#

or if you would prefer yaml

entity: media_player.YOUR_MEDIA_PLAYER_ENTITY_HERE```
hollow steeple
#

You're completely right, i just didn't know what do search for 😀 Thanks!

hollow steeple
#

The thing is that HA added two different cards to overview…

#

I think it’s because I first added the tv… then later it popped up as a media player as well.

#

The card in OP looks like this when disabled:

#

The media control looks like this disabled:

#

The former is what I’m looking for, as the latter doesn’t allow me to turn in the tv

indigo forge
hollow steeple
#

Turned off, sorry

#

The tv

#

It’s in tv off state. The latter card assumes the tv to be on to work. The former card lets me turn on the tv.

indigo forge
#

look at the cards yaml and see what it does differently.

#

maybe its a different entity its referencing. maybe the tv is connected in multiple ways somehow. media control doesnt have much in the way of configuration options so i dont know what else it would be getting it to act differently if not a different entity

hollow steeple
#

maybe the tv is connected in multiple ways somehow

It's definitely represented in two ways, one as TV (for remote control) and the other more like generic media player

#

I haven't found "the other" way...

#

like, whatever the second representation is

indigo forge
#

on the card editor in the bottom left is "show code editor" and it will show you the yaml of the card

hollow steeple
#

looks like the one I want

#

(still no yaml preview avail)

#

but when I then click Add to Dashboard

#

I get these very simple "suggestions"

#

it's kinda weird, why not suggest the exact thing that was put on the Overview

indigo forge
#

on the dashboard where the card is. you go into edit mode then click the card

hollow steeple
#

yep yep, that's what I do for yaml driven dashboards

#

but the overview page... it gives me this

#

pop up:

#

everything is autogenerated, i assume

indigo forge
#

oh its an auto generated dahbaord

hollow steeple
#

i can't get to card level yaml

#

yep

#

If only i could clone the Overview, but that's not possible either

indigo forge
#

i havent used auto generated at all in so long

hollow steeple
#

Eventually I'll get thre too, it's a bit chaotic

indigo forge
#

if you want to you can create a new normal dashboard, make it default then delete the autogenerated one

hollow steeple
#

but I'm new so I'm using the current Overview to get inspired as I connect things

#

Yeah... but it's the BEST TV card i have 😅

#

I have other Dashboards, so I do know how to manage those

indigo forge
#

ok lets see if you have multiple entities for the tv in the entities list

#

settings - devices and services - entites tab

hollow steeple
indigo forge
#

put in the search box media_player

hollow steeple
#

top one give me the preview closest to the auto card:

#

ok

indigo forge
#

the 2nd one on the screenshot there is a remote enitty not a media_player

hollow steeple
#

👍

indigo forge
#

just want to see if there is multiple media players for the tv on the full entity list

hollow steeple
#

search "media"

indigo forge
#

right here we are

hollow steeple
#

i think the first one is not set up correctly and maybe can be disregarded?

#

or it's because the tv is not on

indigo forge
#

you see the tv has 2 media players. one from samsung and one from dlna

#

the card that you set up thaat doesnt look right is using the dnla one instead of the samsung one

hollow steeple
#

yep... i connected them a day between... first samsung, then the media player dlna... which resulted in the two auto cards shown above, in that order

indigo forge
#

is the wong one

#

the dnla one will probably only be active when the TV is "on" but the samsung one will be on in "standby" so it can switch it on

hollow steeple
#

yup

hollow steeple
#

When TV is on... there's a volume slider and there's also a dropdown with quick access to apps etc

indigo forge
#

click on this one

hollow steeple
#

but when i do add to dashboard, i get these very dumbed down suggestions

#

done

indigo forge
#

then the cog

hollow steeple
#

yup

indigo forge
#

then on the entity ID hit the copy button

hollow steeple
#

done

indigo forge
#

so thats media_player.tv_living_room right?

#

this is the entity you want in the card

hollow steeple
#

correct!

indigo forge
#

go to the new dashboard you added the card to and open the card editor

hollow steeple
#

I believe so, to 99% certainty 😅

#

ok

tacit shuttle
#

If you want the yaml for an autogenerated dashboard, just take control of it and then you'll get a copy

hollow steeple
#

hehe

#

"stick with me" 😄

hollow steeple
indigo forge
#

when adding/editing the card you can comfirm which enity its using in code editor

#

so it should look like that (but it will work obviously because you have the entity and i dont)

hollow steeple
#

ok, gotcha.... just a sec

indigo forge
#

then it should look correct and be able to switch on the tv

hollow steeple
indigo forge
#

no thats a tile card

hollow steeple
indigo forge
#

replace the entire box with

entity: media_player.tv_living_room
hollow steeple
#

ok

indigo forge
#

that will make it a media control card that points at the correct entity

hollow steeple
#

BOOOM!

#

yeah, both suggestions that get added from the device are TV and remote, as tiles

#

This is what I see now, after changing....

indigo forge
# hollow steeple

you were close before when you had this. but it was pointing at the dnla integration entity instead of the samsung integration entity

#

when the tv is on they are probably functionally simalar but the dnla disables when the tv is "off" but the samsung one stays active so you can use it to switch on the tv

hollow steeple
#

indeed...

#

funky

#

but hopefully this'll work

indigo forge
#

sometimes you get multiple entites for the same function and you have to get the right one or it doesnt work right. its something you will leearn

hollow steeple
#

good to know. Yeah, eentually i'll get the hang of HA terminology and approaches. Most of it has been fairly straight forward, but this one really puzzled me. Also because I couldn't peak under the hood on the auto generated card. That would have given me something to run with immediately

indigo forge
#

yeah as was said above by karwosts. you can take control of the autogenerated card when your ready. i forget how but i am sure you can find it

hollow steeple
#

Apoligies if I've been fuzzy in using correct terminology, I hope it wasn't too frustrating 😄

indigo forge
#

its fine, as long as you have learned something and its easier next time

hollow steeple
#

i definitely have, and I'll pay it forward 👍 Thank you!

#

Is one supposed to mark this thread as "solved" somehow?

indigo forge
#

its been marked as resolved

hollow steeple
#

how does one do that?

#

ah, edit tags

indigo forge
#

you add the tag to the post, i have mod on the support channels so i can do it

#

good luck!