Hello!
I have been strugling making these two cards in a vertical stack. Can anybody please.help me solving this.
indentera förformatterad text med 4 mellanslag
- title: narvaro
id: narvaro
cards:
- type: map
aspect_ratio: 100%
default_zoom: 8
entities:
- device_tracker.google_maps_xxxx
- device_tracker.google_maps_yyyy
- device_tracker.google_maps_zzzz
- zone.home
- zone.work
- zone.fritidshus
- zone.adress
- zone.adress2
- type: entities
title: familjen
entities:
- device_tracker.google_maps_xxxx
- device_tracker.google_maps_yyyy
- device_tracker.google_maps_zzzz
lolouk44
(lolouk44)
September 17, 2018, 9:07am
2
Could you format your code using the </>
button in the editor please? It makes it easier to see whether there are obvious syntax/indentation issues
As it shows up as a map and a entity card. I would like it to stack it vertically so it shows the same in different browsers. but when I try to use vertical-stack i dont seem to place it right ?!
lolouk44
(lolouk44)
September 20, 2018, 6:43am
4
I take it your first line was copied in error?
Also this isn’t a vertical stack, it’s just 2 cards.
Doc shows a vertical stack to be built this way:
- type: vertical-stack
cards:
- type: picture-entity
entity: camera.demo_camera
show_info: false
- type: entities
entities:
- binary_sensor.movement_backyard
so you’d need to amend to make it look something like that:
title: Home
views:
- title: default_view
icon: mdi:home
cards:
- type: vertical-stack
cards:
- type: map
aspect_ratio: 100%
default_zoom: 8
entities:
- device_tracker.google_maps_xxxx
- device_tracker.google_maps_yyyy
- device_tracker.google_maps_zzzz
- zone.home
- zone.work
- zone.fritidshus
- zone.adress
- zone.adress2
- type: entities
title: familjen
entities:
- device_tracker.google_maps_xxxx
- device_tracker.google_maps_yyyy
- device_tracker.google_maps_zzzz
- type: picture-entity
entity: camera.demo_camera
show_info: false
- type: entities
entities:
- binary_sensor.movement_backyard