Hey guys,
Is it possible to have a ‘swipe option’ within my excisting card? What i would like is to ‘swipe’ for instance my livingroom button and have it switch from temperature graph to humidity. Theres a screenshot and an example of the code that im working on.
type: custom:button-card
custom_fields:
graph:
card:
type: custom:mini-graph-card
font_size: 50
align_state: center
entities:
- sensor.toon_current_temperature
show:
labels: false
fill: true
name: false
icon: false
color_thresholds:
- value: 16.5
color: '#005f73'
- value: 17
color: '#94d2bd'
- value: 17,5
color: '#e9d8a6'
- value: 18
color: '#ffba08'
- value: 18.5
color: '#faa307'
- value: 19
color: '#f48c06'
- value: 19.5
color: '#e85d04'
- value: 20
color: '#dc2f02'
- value: 20.5
color: '#d00000'
- value: 21
color: '#9d0208'
- value: 21.5
color: '#6a040f'
- value: 22
color: '#370617'
- value: 22.5
color: '#03071e'
styles:
custom_fields:
graph:
- filter: opacity(40%)
- overflow: unset
card:
- overflow: unset
- font-size: 15px
grid:
- grid-template-areas: '"i" "n" "graph"'
- grid-template-columns: 1fr
- grid-template-rows: 1fr min-content min-content
entity: light.living_room
size: 20%
card_mod:
style: |
ha-card {
color: black
font-size: 10px
}
hold_action:
action: navigate
navigation_path: /lovelace/lights-livingroom
tap_action:
action: toggle