Creating Views

Hi there,

I’ve been trying to create some views to sort things by room, but don’t know the exact place and way to do this properly.
I’ve been looking around the forum but non of the topics i’ve seen look like this one.

How can i leave this and create a new view with 2 lights
1: light.playbar_links
2: light.playbar_rechts

title: Weeda
views:
  - title: Header
    icon: 'mdi:home-outline'
    panel: true
    cards:
      - type: horizontal-stack
        cards:
          - type: glance
            entities:
              - entity: light.playbar_links
              - entity: light.playbar_rechts
            title: Playbar's
            show_name: true
            show_icon: true
            show_state: false      
          - type: entities
            entities:
              - entity: binary_sensor.overloop_sensor_motion
          - type: entities
            entities:
              - entity: binary_sensor.zolder_sensor_motion

          - type: vertical-stack
            cards:         
              - type: entities
                entities:
                  - entity: light.dressoir_lamp
              - type: entities
                entities:
                  - entity: light.staande_lamp
              - type: history-graph
                hours_to_show: 24
                refresh_interval: 600
                entities:
                  - entity: sensor.zolder_sensor_temperature
              - type: entities
                friendly_name: Overloop
                entities:
                  - entity: sensor.overloop_sensor_temperature

Just create another - title section under views:

views:
  - title: Header
  -  title: light.playbar_links
     icon: xxxxx
     cards: xxxx
  -  title: light.playbar_rechts
     icon: xxxxx
     cards: xxxx

your syntax is off. the spacing for everything under the first “- title: Header” is not correct.

I think this should work:

title: Weeda
views:
  - title: Header
    icon: 'mdi:home-outline'
    panel: true
    cards:
      - type: entities
        entities:
          - entity: binary_sensor.overloop_sensor_motion
      - type: entities
        entities:
          - entity: binary_sensor.zolder_sensor_motion
      - type: vertical-stack
        cards:         
          - type: entities
            entities:
              - entity: light.dressoir_lamp
          - type: entities
            entities:
              - entity: light.staande_lamp
          - type: history-graph
            hours_to_show: 24
            refresh_interval: 600
            entities:
              - entity: sensor.zolder_sensor_temperature
          - type: entities
            friendly_name: Overloop
            entities:
              - entity: sensor.overloop_sensor_temperature
  - title: New title for view
    icon: 'new icon for view tab'
    panel: true
    cards:
      - type: entities
        entities:
          - entity: light.playbar_links
          - entity: light.playbar_rechts

it will remove the two entities you have in the first view and add them to a card in a second view.