Code Monkey home page Code Monkey logo

Comments (4)

tnusch avatar tnusch commented on June 2, 2024

At the end of the day the sidebar is also made out of button-cards (https://github.com/custom-cards/button-card).
Button cards have the entity_picture option to show pictures/images instead of icons and/or text on the button card.

Hope this helps!

from hass-config.

Itsie avatar Itsie commented on June 2, 2024

Hey @tnusch ,

thank you for that, but where should i put the Card in ?

from hass-config.

tnusch avatar tnusch commented on June 2, 2024

Everything goes into ui-lovelace.yaml, regardless if you choose to replace the 4 tiles in the main dashboard (e.g. hemma section) or the sidebar. The ui-lovelace.yaml file is grouped into the corresponding sections (sidebar, media etc) which you can individually change.

If you need an own template for your button card, ideally you put it under /button_card_templates/

from hass-config.

Itsie avatar Itsie commented on June 2, 2024
image

Hey @tnusch, first of all, thank you for that. I just have the problem that it is displayed so small and I don't know how to fix it.

I have created a camera.yaml as a template, the content is:
camera:
template:
- settings
show_icon: false
show_name: false
show_state: false
show_label: false
show_entity_picture: true
show_live_stream: true
tap_action:
action: more-info
styles:
card:
- background: transparent
- border-radius: 12px
- box-shadow: none
- width: 100%
- height: auto

Unfortunately, it is displayed very small and not centered, as shown in the picture. Even in the dashboard itself, I tried, but I always encounter the problem with the size. And the frame in the background.

Do you perhaps have a tip for me?

from hass-config.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.