riro
(Rikard Ronnkvist)
November 20, 2020, 2:05pm
1
I’m in the process of creating a floorplan but got stuck when trying to display a thermometer and a energy consumption meter…
Is there any way I can place a custom card on top of the picture-elements?
Would like to have something like this:
cards:
- type: picture-elements
image: /local/background.jpg
elements:
- type: image
entity: light.blaha
style:
left: 40%
top: 20%
- type: custom:flex-horseshoe-card
style:
left: 20%
top: 20%
entities:
- sensor.blaha
petro
(Petro)
November 20, 2020, 2:17pm
2
petro
(Petro)
November 20, 2020, 2:18pm
3
riro:
flex-horseshoe-card
If flex-horseshoe-card accepts the entities field, the configuration you posted should work out of the box.
riro
(Rikard Ronnkvist)
November 20, 2020, 2:24pm
4
lol
I started of with a built in card (weather) to get the positions right… and I couldn’t get that one to work at all.
Was a lot easier with a custom card.
petro
(Petro)
November 20, 2020, 2:25pm
5
built in cards need some extra voodoo to get working. Last I checked you needed custom:card-loader and you have to specify the built in card as the under the hood name. e.g. custom:hui-entities-card
for entities card type
This info could be out of date because it’s been 6 months since I altered my interface.
Jiran
(Jiran)
November 19, 2021, 12:52pm
8
More info about how you did it please?
riro
(Rikard Ronnkvist)
November 19, 2021, 1:27pm
9
Something like this:
title: Tablet Floorplan
views:
- path: floorplan
title: Floorplan
panel: true
cards:
- type: picture-elements
image: /local/tablet/background.png
elements:
- type: conditional
conditions:
- entity: input_boolean.theme_tablet_overlay
state_not: 'dummy'
elements:
- type: 'custom:flex-horseshoe-card'
style: |
:host {
left: 75%;
top: 25%;
}
entities:
- entity: sensor.blaha
decimals: 1
show:
horseshoe_style: lineargradient