for the life of me, I cannot get the whole card to show, nor can I get it in the correct position and lose the background.
I’ve got this in a picture elements card:
cards:
- type: picture-elements
image: /local/ui/floorplan/background.png
style: |
ha-card {
background: rgba(42, 46, 48, 1)
}
elements:
- type: 'custom:apexcharts-card'
apex_config:
stroke:
width: 6
curve: smooth
graph_span: 7d
span:
start: day
header:
show: true
title: Likelyhood of Rain
series:
- entity: weather.dark_sky_home
type: line
fill_raw: last
extend_to_end: false
color: '54C0EF'
data_generator: |
return entity.attributes.forecast.map((entry) => {
return [new Date(entry.datetime).getTime(), entry.precipitation];
});
style: |
:host {
left: 50%;
top: 55%;
width: 95%;
overflow: hidden;
height: 55%;
background: none !important;
box-shadow: none !important;
ha-card {
height: 100%;
background: none !important;
box-shadow: none !important;
border-radius: 1vw;
font-size: 1.2vw !important;
}
- type: 'custom:weather-card'
current: true
details: true
entity: weather.dark_sky_home
forecast: true
name: Weather
style: |
:host {
left: 50%;
top: 30%;
width: 95%;
overflow: hidden;
height: 63%;
background: none !important;
box-shadow: none !important;
}
.current {
margin-bottom: 7vw;
}
.variations {
margin-bottom: 4vw;
}
ha-card {
height: 100%;
background: none !important;
box-shadow: none !important;
border-radius: 1vw;
font-size: 1.2vw !important;
}
.forecast{
padding: 0 2.5%;
width: 95%;
}
.forecast .day:first-child{
border-left: 0.1em solid #d9d9d9;
}
.forecast .day:last-child{
border-right: 0.1em solid #d9d9d9;
}
tap_action:
action: none