Show off your picture-elements uses

Change --iron-icon-height’: 20px with: --mdc-icon-size: 20px

Thanks! This is also working as well as using the transform as mentioned in my post, but is a little bit easier in use.

Hey all,

I’m using it as a card for controlling media devices, but when i use it on another device, with a different resolution it doesn’t always resize correctly. Is there a possiblity to change the size of image based on what device resolution is used? Here’s what I’m trying to explain:

and

and the relevant code:

  - title: Media
    path: media
    panel: true
    badges: []
    cards:
      - elements:

          - conditions:
              - entity: media_player.emby_living_room_tv
                state_not: playing
              - entity: media_player.emby_living_room_tv
                state_not: paused
            elements:
              - artwork: full-cover
                entity: media_player.spotify_mart
                hide:
                  power: true
                  progress: false
                  runtime: false
                  source: true
                  volume: true
                  controls: false
                style: |
                  :host {
                    left: 25% !important;
                    top: 35.9% !important;
                    width: 42% !important;
                    height: 62.3% !important;
                  }
                  ha-card{
                    border-radius: 1vw !important;
                    overflow: hidden !important;
                    height: 100%; 
                  }
                  :host #primaryProgress{
                    background: #474A52 !important; 
                  }
                type: 'custom:mini-media-player'
            type: conditional            

          - conditions:
              - entity: media_player.emby_living_room_tv
                state_not: playing
              - entity: media_player.emby_living_room_tv
                state_not: paused
            elements:
              - style:
                  left: 75%
                  top: 35.8%
                  width: 42%
                  height: 62.3%
                type:  'custom:spotify-card'
                limit: 10
                client_id: !secret spotify_clientid
            type: conditional

        image: /local/background.jpg
        style: |
          ha-card {
            background-color: var(--primary-background-color);
          }
        type: picture-elements

Thanks! is there also a new value to use for --iron-icon-fill-color: “#DC071D” does also not seem to work anymore :frowning:

Workaround, you could use a conditional card that switches the settings based on the device.

1 Like

Sorry, scratch that, you’d need to step up the juice from conditional card to state switch card to do it. I use it similarly, it works well:

Thaks, do you maybe have an example?

See github repo linked in my profile.

Hi,

I need help with that card.

I need when I click on the main picture it goes to a specific URL,

But in the picture-element I’m not getting

Captura de Tela 2020-06-04 às 16.44.37

image: \local\office.jpeg
tap_action:
  action: navigate
  navigation_path: office
elements:
  - type: state-label
    style:
      color: white
      top: 96%
      left: 88%
      font-weight: bold
    entity: sensor.temperature_158d0004445
  - type: state-icon
    style:
      color: white
      top: 95%
      left: 96%
    entity: sensor.temperature_158d0004445
  - type: state-icon
    style:
      color: white
      top: 84%
      left: 96%
    entity: light.escritorio
  - type: state-icon
    style:
      color: white
      top: 72%
      left: 96%
    icon: 'mdi:air-conditioner'
    entity: climate.office_ac
type: picture-elements

That color wheel :heart_eyes:

How can I integrate honeycomb menu in a picture element card?

1 Like

@sian it looks great, congratulations!
How do you get that coloured circle around the icons !?

1 Like

Looks great! :star_struck:
What app did you use to model the floorplan?
Are you using images/icons on some places (like those 2 in the garage) ?
… and by the way, does the “persons” show up on the rooms when there’s movement in there, or is it part of the floorplan image? I see some rooms with people, and some empty :stuck_out_tongue_closed_eyes:

Thanks :slight_smile:

Yes, the people appear if there is movement in the room.

The circular images in the garage and other places are cameras.

I asked my wife making the plan using https://home.by.me

Sorry been away from this scene for a bit… Just add the custom-button to the picture element, with that follow my guide at https://github.com/Sian-Lee-SA/honeycomb-menu (primarily “how to use” section). You can pretty much add any card as an element to the picture-elements card.

2 Likes

If you’re talking about the Honey Comb menu then head to my repo https://github.com/Sian-Lee-SA/honeycomb-menu which you can also get through HACS

No, I was talking about these

based on the custom-button card. just apply the property for the background color and 50% border radius to make it round

hmmm, not sure if I know what you’re talking about :frowning: #newbieHere

I’m using state-icons on top of the Picture Elements card.

What you’re saying is something of a different type? (but still on top of a picture elements card)

I would like to install but I don’t see it in HACS. Do I need to add a custom repo?