Iām trying to get the Chips cards to work with the swipe-card in a specific way.
Basically I have a couple of chips on the top of my dashboard with (mostly) counters: numbers of doors open, windows open, covers open, etc. These chips are conditional to only show when count > 0.
Issue is that when a lot of Chips are shown, they drop down to the next line, which is not aesthetically pleasing.
To remedy this, I wrapped the whole horizontal stack of Chips in a swipe-card and this works well: instead of dropping to the next line, the chips continue āoff-screenā and can be seen when swiping to the left. The issue here is however that when I release the container, it snaps back to the start. I would like it to keep the position where it is released. Similar to how itās shown here: https://swiperjs.com/demos (right below ā Premium Swiper templates & plugins from UI Initiative).
Does anyone know what parameters of the swipe card to use in order to achieve this?
This is the current YAML:
type: custom:swipe-card
parameters:
width: 1000
cards:
- type: horizontal-stack
cards:
- type: custom:mushroom-chips-card
chips:
- type: menu
- type: alarm-control-panel
entity: alarm_control_panel.ha_alarm
content_info: name
tap_action:
action: fire-dom-event
browser_mod:
command: popup
deviceID: this
title: Alarm
card:
type: custom:mushroom-alarm-control-panel-card
entity: alarm_control_panel.ha_alarm
name: Thuis
layout: vertical
states:
- armed_away
- type: conditional
conditions:
- entity: sensor.count_lights_on
state_not: '0'
chip:
type: entity
entity: sensor.count_lights_on
icon_color: amber
icon: mdi:lightbulb
tap_action:
action: navigate
navigation_path: lampen
- type: conditional
conditions:
- entity: sensor.count_active_climate
state_not: '0'
chip:
type: entity
entity: sensor.count_active_climate
icon_color: deep-orange
icon: mdi:radiator
tap_action:
action: navigate
navigation_path: verwarming
use_entity_picture: true
- type: conditional
conditions:
- entity: sensor.count_windows_open
state_not: '0'
chip:
type: entity
entity: sensor.count_windows_open
icon_color: red
icon: mdi:window-open-variant
tap_action:
action: navigate
navigation_path: ramen
- type: conditional
conditions:
- entity: sensor.count_doors_open
state_not: '0'
chip:
type: entity
entity: sensor.count_doors_open
icon_color: green
icon: mdi:door-open
tap_action:
action: navigate
navigation_path: deuren
use_entity_picture: true
- type: conditional
conditions:
- entity: sensor.count_covers_down
state_not: '0'
chip:
type: entity
entity: sensor.count_covers_down
icon_color: purple
icon: mdi:window-shutter
tap_action:
action: navigate
navigation_path: zonneschermen
- type: conditional
conditions:
- entity: sensor.count_fans_on
state_not: '0'
chip:
type: entity
entity: sensor.count_fans_on
icon_color: lime
icon: mdi:fan
tap_action:
action: navigate
navigation_path: ventilatie
- type: conditional
conditions:
- entity: sensor.count_media_active
state_not: '0'
chip:
type: entity
entity: sensor.count_media_active
icon_color: indigo
icon: mdi:cast-connected
tap_action:
action: navigate
navigation_path: mediaspelers
- type: conditional
conditions:
- entity: sensor.count_motion_detected
state_not: '0'
chip:
type: entity
entity: sensor.count_motion_detected
icon_color: light-blue
icon: mdi:motion-sensor
tap_action:
action: navigate
navigation_path: beweging
alignment: start