Comments (3)
Thank you for referring me to the vertical-stack-in-card repository. Between that and the lovelace-card-mod which allowed me to modify the CSS of the cards on-the-fly, I was able to achieve the layout I wanted (with a bit of room for tweaks in the future, but overall I am much happier.
Here is what I ended up with, in case anybody else comes along and wants to mimic something similar:
type: custom:vertical-stack-in-card
title: Machine Pings
cards:
- type: custom:uptime-card
entity: binary_sensor.ping_router
name: router
hours_to_show: 48
show:
header: true
title: true
icon: false
status: false
timeline: true
footer: false
average: false
alias: {}
color: {}
tooltip:
hour24: true
animation: false
bar:
height: 20
amount: 48
alignment:
icon_first: false
header: spaced
status: spaced
blink: {}
tap_action:
action: more-info
- type: custom:uptime-card
hours_to_show: 48
show:
header: true
title: true
icon: false
status: false
timeline: true
footer: false
average: false
alias: {}
color: {}
tooltip:
hour24: true
animation: false
bar:
height: 20
amount: 48
entity: binary_sensor.ping_flash
name: flash
- type: custom:uptime-card
hours_to_show: 48
show:
header: true
title: true
icon: false
status: false
timeline: true
footer: false
average: false
alias: {}
color: {}
tooltip:
hour24: true
animation: false
bar:
height: 20
amount: 48
entity: binary_sensor.ping_ap_basement
name: ap basement
- type: custom:uptime-card
hours_to_show: 48
show:
header: true
title: true
icon: false
status: false
timeline: true
footer: false
average: false
alias: {}
color: {}
tooltip:
hour24: true
animation: false
bar:
height: 20
amount: 48
name: ap gazebo
entity: binary_sensor.ping_ap_gazebo
- type: custom:uptime-card
hours_to_show: 48
show:
header: true
title: true
icon: false
status: false
timeline: true
footer: false
average: false
alias: {}
color: {}
tooltip:
hour24: true
animation: false
bar:
height: 20
amount: 48
entity: binary_sensor.ping_ap_garage
name: ap garage
- type: custom:uptime-card
hours_to_show: 48
show:
header: true
title: true
icon: false
status: false
timeline: true
footer: false
average: false
alias: {}
color: {}
tooltip:
hour24: true
animation: false
bar:
height: 20
amount: 48
entity: binary_sensor.ping_batman
name: batman
card_mod:
style: |
ha-card.flex {
padding-top: 0px;
padding-bottom: 0px;
}
ha-card div.timeline {
padding-top: 0px;
padding-bottom: 0px;
}
- type: custom:uptime-card
hours_to_show: 48
show:
header: true
title: true
icon: false
status: false
timeline: true
footer: false
average: false
alias: {}
color: {}
tooltip:
hour24: true
animation: false
bar:
height: 20
amount: 48
entity: binary_sensor.ping_printer
name: printer
card_mod:
style: ''
- type: custom:uptime-card
hours_to_show: 48
show:
header: true
title: true
icon: false
status: false
timeline: true
footer: true
average: false
alias: {}
color: {}
tooltip:
hour24: true
animation: false
bar:
height: 20
amount: 48
entity: binary_sensor.ping_ddns
name: ddns
card_mod:
style:
h1.card-header: |
* {
padding-bottom: 0px;
}
div uptime-card:
$: |
ha-card.flex {
padding-top: 0px;
padding-bottom: 0px;
line-height: 1; # font size
# Put names on same lines https://www.w3docs.com/snippets/css/how-to-align-divs-side-by-side.html
content: "";
display: table;
clear: both;
}
ha-card div.information {
float: left;
padding-right: 0px;
width: 25%;
}
ha-card div.timeline {
float: left;
padding-top: 2px;
padding-bottom: 2px;
padding-left: 0px;
width: 67%;
}
ha-card div.footer {
float: right;
width: 67%;
padding-bottom: 16px;
}
from uptime-card.
works like a charm - Thank you so much for sharing!
cheers!
from uptime-card.
Hi, first of all thank you for your support.
I don't think that I will allow multiple entities into one card, for one reason, you can have the same effect using other libraries.
According to your issue I can recommend you two of them:
- You want to display several entities without the separation between them: https://github.com/ofekashery/vertical-stack-in-card
- You want to repeat the "template" of a card in several places: https://github.com/custom-cards/decluttering-card
Feel free to reopen the issue if these libraries don't answer to the problem.
from uptime-card.
Related Issues (20)
- Value for OK and KO HOT 2
- State Color, Icon, and Alias Not Following Addition of Attribute Field Utilizing Boolean as String or Just Boolean HOT 1
- Feature Request: Configure clip length HOT 2
- History not shown for non-binary sensors HOT 6
- Make `ok` and `ko` templatetable HOT 1
- uptime kuma HOT 2
- Ignore unknown state / multiple states for ko and ok
- Support for input_boolean HOT 2
- Support for entities: instead of entity: HOT 11
- Latest version v0.12.0 breaks what was working fine. HOT 8
- this.config.ko.map is not a function HOT 2
- OK / KO with numeric status? HOT 1
- Mapping for "none" state.
- Footer time range not in language of home assistant HOT 2
- Uptime average is not showing when value is 0 HOT 1
- Add 'ko_icon' in 'color' config HOT 2
- not working in home assistant 2023.3.1 HOT 5
- [BUG] Uncaught (in promise) errors in browser HOT 2
- color:footer?
- Multiple items on one card HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from uptime-card.