bar-card icon indicating copy to clipboard operation
bar-card copied to clipboard

Entity Picture badge as icon

Open Mariusthvdb opened this issue 4 years ago • 5 comments

as of installing 3.1.2 this error is in the inspector/ha log:

...../local/lovelace/resources/bar-card.js?v=3.1.2:5332:0 SyntaxError: Unexpected keyword 'export'
Schermafbeelding 2020-04-28 om 10 22 44 Schermafbeelding 2020-04-28 om 10 21 13

not referencing a specific card-config at all, this seems to be a bug in the custom-card code itself?

Mariusthvdb avatar Apr 28 '20 09:04 Mariusthvdb

Make sure you load it as a module instead of js.

Gluwc avatar Apr 28 '20 11:04 Gluwc

thnx, that was it, sorry I missed that.

please let me ask using stack: horizontal still works, but I now notice it isn't listed in the config documentation. is this correct?

secondly, With the latest version, I now have an icon below my bar card, where I dont want an icon at all (my entities have entity_picture defined, not icons). before, we had to define an icon, without it it wouldn't show (I think). Isn't there a show_icon: false option?

Schermafbeelding 2020-04-28 om 14 29 06

would be cool if we could show the entity_picture of the entity btw, did you already think of that? Maybe add that to entity_config: true ? tried that, but didn't show a picture. thanks!

Mariusthvdb avatar Apr 28 '20 12:04 Mariusthvdb

The icon is part of the positions config. Also stack is still working but deprecated, you should use columns instead.

I'll have a look at the entity picture thing and see if/how to implement that.

Gluwc avatar Apr 28 '20 12:04 Gluwc

bingo! thank you sir.

Schermafbeelding 2020-04-28 om 14 48 33

please keep stack: horizontal/vertical . Much more generic than the verbose column number.

and thanks for considering entity_picture. cool!

Mariusthvdb avatar Apr 28 '20 12:04 Mariusthvdb

The icon is part of the positions config. Also stack is still working but deprecated, you should use columns instead.

I'll have a look at the entity picture thing and see if/how to implement that.

@Gluwc I'm wondering if you have been able to take a look at the entity picture idea in place of an icon, and if that is on the roadmap? I really like what @Mariusthvdb is going for. I even created svg's of my ink cartridges.

woobenjamin avatar Apr 23 '23 23:04 woobenjamin