Clooos / Bubble-Card

Bubble Card is a minimalist card collection for Home Assistant with a nice pop-up touch.
MIT License
2.02k stars 59 forks source link

Footer cards unstable auto order #780

Open RazorClam opened 2 months ago

RazorClam commented 2 months ago

For any feature request you can open a new discussion here:
https://github.com/Clooos/Bubble-Card/discussions/categories/feature-requests

For any question you can open a new discussion here:
https://github.com/Clooos/Bubble-Card/discussions/categories/q-a

Describe the bug
When a footer card has no occupancy sensor defined and another does the cards flick back and forth quickly

To Reproduce
Steps to reproduce the behavior:

  1. create two footer cards
  2. give one an occupancy sensor and the other not
  3. check for constant switching of footer cards back and forth

Expected behavior
If a footer card has no occupancy sensor defined it should be fixed in place after those that do

Screenshots
If applicable, add screenshots to help explain your problem.

YAML
If applicable, add any relevant YAML code.

type: custom:bubble-card
card_type: horizontal-buttons-stack
auto_order: true
1_link: '#living_room'
1_name: Living Room
1_icon: mdi:sofa
1_entity: light.all_living_room_lights
1_pir_sensor: binary_sensor.everything_presence_lite_occupancy
2_link: '#kitchen'
2_name: Kitchen
2_icon: mdi:chef-hat
2_entity: light.kitchen_pendant_group
2_pir_sensor: binary_sensor.motion_sensor_occupancy
3_link: '#dining_area'
3_name: Dining Area
3_entity: light.dining_area_table_lamp
3_icon: mdi:silverware-fork-knife

Informations (please complete the following information):

Additional context
Add any other context about the problem here.

Thank you! 🍻

RazorClam commented 2 months ago

Just notced the behaviour is the same if auto reorder is turned on and no occupancy sensor is defined to any card

lukaszzyla commented 1 month ago

For me the auto order doesn't work at all in the newest release. I have configured it for the first time so it did not stop working - actually I am aunable to configure it so it works. My view, I did put it in as the last card but within the same section that groups my popups:


views:
  - icon: mdi:numeric-negative-1
    path: ug
    cards: []
    theme: clear-dark
    type: sections
    sections:
      - type: grid
        cards:
          - type: heading
            heading_style: title
            heading: cellar
          - type: custom:bubble-card
            card_type: button
            button_type: slider
            entity: light.light_cellar_corridor
            tap_action:
              action: toggle
            sub_button:
              - entity: sensor.cellar_corridor_temperature
                show_background: false
                show_state: true
              - show_state: true
                show_background: false
              - entity: sensor.cellar_corridor_brightness
                show_background: false
                show_state: true
              - entity: light.laundry_2
                icon: mdi:dots-horizontal
                tap_action:
                  action: navigate
                  navigation_path: '#ugcorridor'
            icon: kuf:light_corridor
          - type: vertical-stack
            cards:
              - type: custom:bubble-card
                card_type: pop-up
                hash: '#ugcorridor'
                button_type: slider
                entity: light.light_cellar_corridor
                tap_action:
                  action: toggle
                force_icon: false
                show_state: false
                show_last_changed: false
                show_attribute: false
                sub_button:
                  - entity: sensor.gf_bathroom_temperature
                    show_background: false
                    show_state: true
                    show_last_changed: false
                    show_attribute: false
                  - entity: sensor.gf_bathroom_humidity
                    show_background: false
                    show_last_changed: false
                    show_state: true
                  - entity: sensor.gf_bathroom_brightness
                    show_background: false
                    show_state: true
                name: '[cell] corridor'
                icon: kuf:light_corridor
              - type: custom:bubble-card
                card_type: button
                button_type: slider
                entity: light.light_cellar_corridor
                name: '[cell] entrance'
                tap_action:
                  action: toggle
                sub_button: []
          - type: custom:bubble-card
            card_type: button
            button_type: slider
            entity: light.lights_media
            tap_action:
              action: toggle
            sub_button:
              - entity: sensor.cellar_corridor_temperature
                show_background: false
                show_state: true
              - show_state: true
                show_background: false
              - entity: sensor.cellar_corridor_brightness
                show_background: false
                show_state: true
              - entity: light.laundry_2
                icon: mdi:dots-horizontal
                tap_action:
                  action: navigate
                  navigation_path: '#cellmedia'
            name: Media room
            icon: mdi:theater
          - type: vertical-stack
            cards:
              - type: custom:bubble-card
                card_type: pop-up
                hash: '#cellmedia'
                button_type: slider
                entity: light.light_cellar_corridor
                tap_action:
                  action: toggle
                force_icon: false
                show_state: false
                show_last_changed: false
                show_attribute: false
                sub_button:
                  - show_background: false
                    show_state: true
                    show_last_changed: false
                    show_attribute: false
                  - show_background: false
                    show_last_changed: false
                    show_state: true
                  - show_background: false
                    show_state: true
                name: Media room
                icon: mdi:theater
              - type: custom:bubble-card
                card_type: button
                button_type: slider
                entity: light.lights_media
                name: Media room
                tap_action:
                  action: toggle
                sub_button:
                  - entity: light.media_outer
                    tap_action:
                      action: toggle
                  - entity: light.media_inner
                    tap_action:
                      action: toggle
          - type: custom:bubble-card
            card_type: button
            button_type: slider
            entity: light.lights_gym
            tap_action:
              action: toggle
            sub_button:
              - entity: sensor.cellar_corridor_temperature
                show_background: false
                show_state: true
              - show_state: true
                show_background: false
              - entity: sensor.cellar_corridor_brightness
                show_background: false
                show_state: true
              - entity: light.laundry_2
                icon: mdi:dots-horizontal
                tap_action:
                  action: navigate
                  navigation_path: '#gym'
            name: Gym
            icon: mdi:dumbbell
          - type: vertical-stack
            cards:
              - type: custom:bubble-card
                card_type: pop-up
                hash: '#gym'
                button_type: slider
                entity: light.lights_gym
                tap_action:
                  action: toggle
                force_icon: false
                show_state: false
                show_last_changed: false
                show_attribute: false
                sub_button:
                  - show_background: false
                    show_state: true
                    show_last_changed: false
                    show_attribute: false
                  - show_background: false
                    show_last_changed: false
                    show_state: true
                  - show_background: false
                    show_state: true
                name: Gym
                icon: mdi:dumbbell
              - type: custom:bubble-card
                card_type: button
                button_type: slider
                entity: light.lights_gym
                name: Gym
                tap_action:
                  action: toggle
                sub_button:
                  - entity: light.gym_even
                    tap_action:
                      action: toggle
                  - entity: light.gym_odd
                    tap_action:
                      action: toggle
          - type: custom:bubble-card
            card_type: button
            button_type: slider
            entity: light.light_tech
            tap_action:
              action: toggle
            sub_button:
              - entity: light.laundry_2
                icon: mdi:dots-horizontal
                tap_action:
                  action: navigate
                  navigation_path: '#tech'
            icon: mdi:cog
            name: Technical
          - type: vertical-stack
            cards:
              - type: custom:bubble-card
                card_type: pop-up
                hash: '#tech'
                button_type: slider
                entity: light.light_tech
                tap_action:
                  action: toggle
                force_icon: false
                show_state: false
                show_last_changed: false
                show_attribute: false
                sub_button: []
                name: Technical
                icon: mdi:cog
              - type: custom:bubble-card
                card_type: button
                button_type: slider
                entity: light.light_tech
                name: Technical
                tap_action:
                  action: toggle
                sub_button: []
                icon: mdi:led-strip
          - type: custom:bubble-card
            card_type: button
            button_type: slider
            entity: light.storage_light
            tap_action:
              action: toggle
            sub_button:
              - entity: light.laundry_2
                icon: mdi:dots-horizontal
                tap_action:
                  action: navigate
                  navigation_path: '#storage'
            icon: mdi:package-up
            name: Storage
          - type: vertical-stack
            cards:
              - type: custom:bubble-card
                card_type: pop-up
                hash: '#storage'
                button_type: slider
                entity: light.storage_light
                tap_action:
                  action: toggle
                force_icon: false
                show_state: false
                show_last_changed: false
                show_attribute: false
                sub_button: []
                name: Storage
                icon: mdi:package-up
              - type: custom:bubble-card
                card_type: button
                button_type: slider
                entity: light.storage_light
                name: Storage
                tap_action:
                  action: toggle
                sub_button: []
                icon: mdi:led-strip
          - type: custom:bubble-card
            card_type: button
            button_type: slider
            entity: light.light_secret
            tap_action:
              action: toggle
            sub_button:
              - entity: light.secret_front_light
                icon: mdi:led-strip
                tap_action:
                  action: navigate
                  navigation_path: '#cellentrance'
              - entity: light.secret_right_light
                icon: mdi:led-strip
              - entity: light.light_secret
                icon: mdi:dots-horizontal
                tap_action:
                  action: navigate
                  navigation_path: '#secret'
            icon: mdi:asterisk
            name: Secret
          - type: vertical-stack
            cards:
              - type: custom:bubble-card
                card_type: pop-up
                hash: '#secret'
                button_type: slider
                entity: light.light_secret
                tap_action:
                  action: toggle
                force_icon: false
                show_state: false
                show_last_changed: false
                show_attribute: false
                sub_button: []
                name: Secret
                icon: mdi:asterisk
              - type: custom:bubble-card
                card_type: button
                button_type: slider
                entity: light.light_secret
                name: Secret
                tap_action:
                  action: toggle
                sub_button:
                  - entity: light.secret_front_light
                    icon: mdi:led-strip
                  - entity: light.secret_right_light
                    icon: mdi:led-strip
                icon: mdi:led-strip
          - type: custom:bubble-card
            card_type: horizontal-buttons-stack
            auto_order: true
            1_name: Media room
            1_icon: mdi:theater
            1_link: '#media'
            1_entity: light.lights_media
            1_pir_sensor: null
            2_name: Gym
            2_icon: mdi:dumbbell
            2_link: '#gym'
            2_entity: light.lights_gym
            2_pir_sensor: null
            3_name: Corridor
            3_icon: mdi:door
            3_link: '#ugcorridor'
            3_entity: light.light_cellar_corridor
            3_pir_sensor: binary_sensor.cellar_corridor_motion
            4_name: TECH
            4_icon: mdi:cog
            4_link: '#tech'
            4_entity: light.light_tech
            4_pir_sensor: null
            5_name: Storage
            5_icon: null
            5_link: '#storage'
            5_entity: light.storage_light
            5_pir_sensor: null
            6_name: Secret
            6_icon: mdi:asterisk-circle-outline
            6_link: '#secret'
            6_entity: light.secret_front_light
            6_pir_sensor: null
    max_columns: 4
  - path: ''
    icon: mdi:home-assistant
    cards: []
    type: sections
    sections:
      - type: grid
        cards:
          - type: custom:frigate-card
            cameras:
              - camera_entity: camera.gate
              - camera_entity: camera.garage
              - camera_entity: camera.vto
            layout_options:
              grid_columns: full
            view:
              default: live
              update_cycle_camera: true
          - type: horizontal-stack
            cards:
              - show_name: true
                show_icon: true
                type: button
                tap_action:
                  action: toggle
                entity: light.light_rafter_1_2
                name: brama
                icon: mdi:xamarin
              - show_name: true
                show_icon: true
                type: button
                tap_action:
                  action: toggle
                entity: cover.metrosmart1000io
                name: Garage
              - show_name: true
                show_icon: true
                type: button
                tap_action:
                  action: toggle
                entity: light.light_rafter_1_2
                name: furtka
                icon: mdi:xamarin
              - show_name: true
                show_icon: true
                type: button
                tap_action:
                  action: toggle
                entity: switch.drzwi_wejsciowe_rygiel
                name: Entrance
                icon: mdi:door-closed-lock
              - type: custom:mushroom-alarm-control-panel-card
                entity: alarm_control_panel.dom
                states:
                  - armed_home
                  - armed_away
                  - armed_night
                layout: vertical
                primary_info: none
                secondary_info: state
            layout_options:
              grid_columns: 8
              grid_rows: auto
          - type: custom:bubble-card
            card_type: pop-up
            hash: '#vto'
            name: Security
            icon: mdi:video
            trigger_entity: binary_sensor.vto_motion
            trigger_state: 'on'
            trigger_close: true
        column_span: 2
      - type: grid
        cards:
          - type: heading
            heading: New section
          - type: custom:bubble-card
            card_type: pop-up
            hash: '#vto'
            entity: camera.vto
    max_columns: 4
    theme: clear-dark
  - icon: mdi:numeric-0-box
    path: gf
    cards: []
    type: sections
    sections:
      - type: grid
        cards:
          - type: heading
            heading: Ground Floor [GF]
            heading_style: title
          - type: custom:bubble-card
            card_type: button
            button_type: slider
            entity: light.living
            tap_action:
              action: toggle
            sub_button:
              - entity: sensor.gf_living_room_temperature
                show_background: false
                show_state: true
              - entity: sensor.gf_living_room_humidity
                show_state: true
                show_background: false
              - entity: sensor.gf_living_room_brightness
                show_background: false
                show_state: true
              - entity: light.living
                icon: mdi:dots-horizontal
                tap_action:
                  action: navigate
                  navigation_path: '#living'
            icon: mdi:sofa
          - type: vertical-stack
            cards:
              - type: custom:bubble-card
                card_type: pop-up
                hash: '#living'
                button_type: slider
                entity: light.living
                tap_action: {}
                force_icon: false
                show_state: false
                show_last_changed: false
                show_attribute: false
                sub_button:
                  - entity: sensor.gf_living_room_temperature
                    show_background: false
                    show_state: true
                    show_last_changed: false
                    show_attribute: false
                  - entity: sensor.gf_living_room_humidity
                    show_background: false
                    show_last_changed: false
                    show_state: true
                  - entity: sensor.gf_living_room_brightness
                    show_background: false
                    show_state: true
                name: ''
                icon: mdi:sofa
              - type: custom:mushroom-climate-card
                entity: climate.living_room_3
                hvac_modes:
                  - heat
                  - 'off'
                show_temperature_control: true
                fill_container: false
                collapsible_controls: true
                layout: horizontal
              - type: custom:bubble-card
                card_type: button
                button_type: slider
                entity: light.living_rafters
                name: rafters
                tap_action:
                  action: toggle
                sub_button:
                  - entity: light.light_rafter_1_2
                    tap_action:
                      action: toggle
                  - entity: light.light_rafter_2_2
                    tap_action:
                      action: toggle
                  - entity: light.light_rafter_3_3
                    tap_action:
                      action: toggle
                  - entity: light.light_rafter_4_2
                    tap_action:
                      action: toggle
                styles: ''
              - type: custom:bubble-card
                card_type: button
                button_type: slider
                entity: light.living_stripes
                name: stripes
                tap_action:
                  action: toggle
                sub_button:
                  - entity: light.light_stripe_1
                    tap_action:
                      action: toggle
                  - entity: light.light_stripe_2
                    tap_action:
                      action: toggle
                  - entity: light.light_stripe_3
                    tap_action:
                      action: toggle
                  - entity: light.light_stripe_4
                    tap_action:
                      action: toggle
              - type: custom:bubble-card
                card_type: button
                button_type: slider
                entity: light.living_spots
                name: ' '
                tap_action:
                  action: toggle
                sub_button:
                  - entity: light.light_spot_1
                    tap_action:
                      action: toggle
                  - entity: light.light_spot_2
                    tap_action:
                      action: toggle
                  - entity: light.light_spot_3
                    tap_action:
                      action: toggle
                  - entity: light.light_spot_4
                    tap_action:
                      action: toggle
                  - entity: light.light_spot_5
                    tap_action:
                      action: toggle
                  - entity: light.light_spot_6
                    tap_action:
                      action: toggle
                  - entity: light.light_spot_7
                    tap_action:
                      action: toggle
                  - entity: light.light_spot_8
                    tap_action:
                      action: toggle
                icon: ''
          - type: custom:bubble-card
            card_type: button
            button_type: slider
            entity: light.gf_hallway
            tap_action:
              action: toggle
            sub_button:
              - entity: sensor.gf_hallway_temperature
                show_background: false
                show_state: true
              - show_state: true
                show_background: false
              - entity: sensor.gf_hallway_brightness
                show_background: false
                show_state: true
              - icon: mdi:dots-horizontal
                tap_action:
                  action: navigate
                  navigation_path: '#hallway'
                show_background: true
            icon: mdi:coat-rack
          - type: vertical-stack
            cards:
              - type: custom:bubble-card
                card_type: pop-up
                hash: '#hallway'
                button_type: slider
                entity: light.gf_hallway
                tap_action:
                  action: toggle
                force_icon: false
                show_state: false
                show_last_changed: false
                show_attribute: false
                sub_button:
                  - entity: sensor.gf_hallway_temperature
                    show_background: false
                    show_state: true
                    show_last_changed: false
                    show_attribute: false
                  - show_background: false
                    show_last_changed: false
                    show_state: true
                  - entity: sensor.gf_hallway_brightness
                    show_background: false
                    show_state: true
                icon: mdi:coat-rack
              - type: custom:mushroom-climate-card
                entity: climate.gf_hallway_3
                hvac_modes:
                  - heat
                  - 'off'
                show_temperature_control: true
                fill_container: false
                collapsible_controls: true
                layout: horizontal
              - type: custom:bubble-card
                card_type: button
                button_type: slider
                entity: light.gf_hallway
                name: Hallway
                tap_action:
                  action: toggle
                sub_button: []
                styles: ''
          - type: custom:bubble-card
            card_type: button
            button_type: slider
            entity: light.bathroom
            tap_action:
              action: toggle
            sub_button:
              - entity: sensor.gf_bathroom_temperature
                show_background: false
                show_state: true
              - entity: sensor.gf_bathroom_humidity
                show_state: true
                show_background: false
              - entity: sensor.gf_bathroom_brightness
                show_background: false
                show_state: true
              - entity: light.living
                icon: mdi:dots-horizontal
                tap_action:
                  action: navigate
                  navigation_path: '#gfbathroom'
            icon: mdi:toilet
          - type: vertical-stack
            cards:
              - type: custom:bubble-card
                card_type: pop-up
                hash: '#gfbathroom'
                button_type: slider
                entity: light.bathroom
                tap_action:
                  action: toggle
                force_icon: false
                show_state: false
                show_last_changed: false
                show_attribute: false
                sub_button:
                  - entity: sensor.gf_bathroom_temperature
                    show_background: false
                    show_state: true
                    show_last_changed: false
                    show_attribute: false
                  - entity: sensor.gf_bathroom_humidity
                    show_background: false
                    show_last_changed: false
                    show_state: true
                  - entity: sensor.gf_bathroom_brightness
                    show_background: false
                    show_state: true
                icon: mdi:toilet
              - type: custom:mushroom-climate-card
                entity: climate.bathroom_5
                hvac_modes:
                  - heat
                  - 'off'
                show_temperature_control: true
                fill_container: false
                collapsible_controls: true
                layout: horizontal
              - type: custom:bubble-card
                card_type: button
                button_type: slider
                entity: light.bathroom
                name: rafter
                tap_action:
                  action: toggle
                sub_button: []
          - type: custom:bubble-card
            card_type: button
            button_type: slider
            entity: light.led_terrace
            tap_action:
              action: toggle
            sub_button:
              - entity: sensor.ws_temperature
                show_background: false
                show_state: true
              - entity: sensor.ws_temperature_temperature_trend
                show_icon: true
                show_state: true
              - entity: sensor.ws_temperature_humidity
                show_background: false
                show_state: true
              - entity: light.living
                icon: mdi:dots-horizontal
                tap_action:
                  action: navigate
                  navigation_path: '#gfbathroom'
            icon: kuf:scene_terrace
          - type: vertical-stack
            cards:
              - type: custom:bubble-card
                card_type: pop-up
                hash: '#terrace'
                button_type: slider
                entity: light.led_terrace
                tap_action: {}
                force_icon: false
                show_state: false
                show_last_changed: false
                show_attribute: false
                sub_button:
                  - entity: sensor.ws_temperature_temperature
                    show_background: false
                    show_state: true
                    show_last_changed: false
                    show_attribute: false
                  - entity: sensor.ws_temperature_temperature_trend
                    show_background: false
                    show_last_changed: false
                    show_state: true
                  - entity: sensor.ws_temperature_humidity
                    show_background: false
                    show_state: true
                name: Terrace
                icon: kuf:scene_terrace
              - type: custom:bubble-card
                card_type: button
                button_type: slider
                entity: light.led_terrace
                name: ''
                tap_action:
                  action: toggle
                sub_button: []
                styles: ''
              - type: custom:bubble-card
                card_type: media-player
                entity: media_player.xantech8_terrace
                show_state: true
                show_attribute: false
                card_layout: normal
              - type: custom:bubble-card
                card_type: media-player
                entity: media_player.spotify_lukasz_zyla
          - type: custom:bubble-card
            card_type: button
            button_type: slider
            entity: light.living
            tap_action:
              action: toggle
            sub_button:
              - entity: sensor.gf_kitchen_temperature
                show_background: false
                show_state: true
              - entity: sensor.gf_kitchen_humidity
                show_state: true
                show_background: false
              - entity: sensor.gf_kitchen_brightness
                show_background: false
                show_state: true
              - entity: light.living
                icon: mdi:dots-horizontal
                tap_action:
                  action: navigate
                  navigation_path: '#kitchen'
            icon: mdi:fridge
            name: Kitchen
          - type: vertical-stack
            cards:
              - type: custom:bubble-card
                card_type: pop-up
                hash: '#kitchen'
                button_type: slider
                entity: light.living
                tap_action: {}
                force_icon: false
                show_state: false
                show_last_changed: false
                show_attribute: false
                sub_button:
                  - entity: sensor.gf_kitchen_temperature
                    show_background: false
                    show_state: true
                    show_last_changed: false
                    show_attribute: false
                  - entity: sensor.gf_kitchen_humidity
                    show_background: false
                    show_last_changed: false
                    show_state: true
                  - entity: sensor.gf_kitchen_brightness
                    show_background: false
                    show_state: true
                name: Kitchen
                icon: mdi:fridge
              - type: custom:mushroom-climate-card
                entity: climate.kitchen_3
                hvac_modes:
                  - heat
                  - 'off'
                show_temperature_control: true
                fill_container: false
                collapsible_controls: true
                layout: horizontal
              - type: custom:bubble-card
                card_type: button
                button_type: slider
                name: rafters
                tap_action:
                  action: toggle
                sub_button: []
                styles: ''
              - type: custom:bubble-card
                card_type: button
                button_type: slider
                name: stripes
                tap_action:
                  action: toggle
                sub_button: []
          - type: custom:bubble-card
            card_type: button
            button_type: slider
            entity: light.living
            tap_action:
              action: toggle
            sub_button:
              - entity: sensor.gf_dining_room_temperature
                show_background: false
                show_state: true
              - entity: sensor.gf_dining_room_humidity
                show_state: true
                show_background: false
              - entity: sensor.gf_dining_room_brightness
                show_background: false
                show_state: true
              - entity: light.living
                icon: mdi:dots-horizontal
                tap_action:
                  action: navigate
                  navigation_path: '#dining'
            icon: mdi:silverware-fork-knife
            name: Dining
          - type: vertical-stack
            cards:
              - type: custom:bubble-card
                card_type: pop-up
                hash: '#dining'
                button_type: slider
                entity: light.living
                tap_action: {}
                force_icon: false
                show_state: false
                show_last_changed: false
                show_attribute: false
                sub_button:
                  - entity: sensor.gf_dining_room_temperature
                    show_background: false
                    show_state: true
                    show_last_changed: false
                    show_attribute: false
                  - entity: sensor.gf_dining_room_humidity
                    show_background: false
                    show_last_changed: false
                    show_state: true
                  - entity: sensor.gf_dining_room_brightness
                    show_background: false
                    show_state: true
                name: Dining
                icon: mdi:silverware-fork-knife
              - type: custom:mushroom-climate-card
                entity: climate.dining_room_3
                hvac_modes:
                  - heat
                  - 'off'
                show_temperature_control: true
                fill_container: false
                collapsible_controls: true
                layout: horizontal
              - type: custom:bubble-card
                card_type: button
                button_type: slider
                name: rafters
                tap_action:
                  action: toggle
                sub_button: []
                styles: ''
              - type: custom:bubble-card
                card_type: button
                button_type: slider
                name: stripes
                tap_action:
                  action: toggle
                sub_button: []
          - type: custom:bubble-card
            card_type: button
            button_type: slider
            entity: light.living
            tap_action:
              action: toggle
            sub_button:
              - entity: sensor.gf_living_room_temperature
                show_background: false
                show_state: true
              - entity: sensor.gf_living_room_humidity
                show_state: true
                show_background: false
              - entity: sensor.gf_living_room_brightness
                show_background: false
                show_state: true
              - entity: light.living
                icon: mdi:dots-horizontal
                tap_action:
                  action: navigate
                  navigation_path: '#living'
            icon: mdi:desk-lamp
            name: Office
          - type: vertical-stack
            cards:
              - type: custom:bubble-card
                card_type: pop-up
                hash: '#office'
                button_type: slider
                entity: light.living
                tap_action: {}
                force_icon: false
                show_state: false
                show_last_changed: false
                show_attribute: false
                sub_button:
                  - entity: sensor.gf_living_room_temperature
                    show_background: false
                    show_state: true
                    show_last_changed: false
                    show_attribute: false
                  - entity: sensor.gf_living_room_humidity
                    show_background: false
                    show_last_changed: false
                    show_state: true
                  - entity: sensor.gf_living_room_brightness
                    show_background: false
                    show_state: true
                name: Office
                icon: mdi:desk
              - type: custom:mushroom-climate-card
                entity: climate.office_4
                hvac_modes:
                  - heat
                  - 'off'
                show_temperature_control: true
                fill_container: false
                collapsible_controls: true
                layout: horizontal
              - type: custom:bubble-card
                card_type: button
                button_type: slider
                name: rafters
                tap_action:
                  action: toggle
                sub_button: []
                styles: ''
              - type: custom:bubble-card
                card_type: button
                button_type: slider
                entity: light.living_stripes
                name: stripes
                tap_action:
                  action: toggle
                sub_button: []
          - type: custom:bubble-card
            card_type: horizontal-buttons-stack
            auto_order: true
            1_name: Living room
            1_icon: mdi:sofa
            1_link: '#living'
            1_entity: light.living
            1_pir_sensor: binary_sensor.living_room_motion
            2_name: Bathroom
            2_icon: mdi:toilet
            2_link: '#gfbathroom'
            2_entity: light.bathroom
            2_pir_sensor: binary_sensor.kitchen_motion
            3_name: Hallway
            3_icon: mdi:coat-rack
            3_link: '#hallway'
            3_entity: light.gf_hallway
            3_pir_sensor: binary_sensor.gf_hallway_motion
            4_name: Dining
            4_icon: mdi:silverware-fork-knife
            4_link: '#dining'
            4_entity: light.gf_hallway
            4_pir_sensor: binary_sensor.dining_room_motion
            5_name: Kitchen
            5_icon: mdi:fridge
            5_link: '#kitchen'
            5_entity: light.gf_hallway
            5_pir_sensor: binary_sensor.gf_kitchen_motion
            6_name: Terrace
            6_icon: kuf:scene_terrace
            6_link: '#terrace'
            6_entity: light.gf_hallway
            6_pir_sensor: binary_sensor.salon_kon_lp
        column_span: 2
    max_columns: 2
    theme: clear-dark
  - icon: mdi:numeric-1-box
    cards: []
    type: sections
    max_columns: 2
    sections:
      - type: grid
        cards:
          - type: heading
            heading: First Floor [FF]
            heading_style: title
          - type: custom:bubble-card
            card_type: button
            button_type: slider
            entity: light.master
            tap_action:
              action: toggle
            sub_button:
              - entity: sensor.ff_master_bedroom_temperature
                show_background: false
                show_state: true
              - entity: sensor.ff_master_bedroom_humidity
                show_state: true
                show_background: false
              - entity: sensor.ff_master_bedroom_brightness
                show_background: false
                show_state: true
              - entity: light.living
                icon: mdi:dots-horizontal
                tap_action:
                  action: navigate
                  navigation_path: '#master'
            icon: mdi:sofa-single
          - type: vertical-stack
            cards:
              - type: custom:bubble-card
                card_type: pop-up
                hash: '#master'
                button_type: slider
                entity: light.master
                tap_action:
                  action: toggle
                force_icon: false
                show_state: false
                show_last_changed: false
                show_attribute: false
                sub_button:
                  - entity: sensor.ff_master_bedroom_temperature
                    show_background: false
                    show_state: true
                    show_last_changed: false
                    show_attribute: false
                  - entity: sensor.ff_master_bedroom_humidity
                    show_background: false
                    show_last_changed: false
                    show_state: true
                  - entity: sensor.ff_master_bedroom_brightness
                    show_background: false
                    show_state: true
                icon: mdi:sofa-single
              - type: custom:mushroom-climate-card
                entity: climate.master_bedroom_4
                hvac_modes:
                  - heat
                  - 'off'
                show_temperature_control: true
                fill_container: false
                collapsible_controls: true
                layout: horizontal
              - type: custom:bubble-card
                card_type: button
                button_type: slider
                entity: light.light_stripe
                name: stripe
                tap_action:
                  action: toggle
                sub_button: []
              - type: custom:bubble-card
                card_type: button
                button_type: slider
                entity: light.master_rafters
                name: rafters
                tap_action:
                  action: toggle
                sub_button:
                  - entity: light.light_rafter_1_3
                    tap_action:
                      action: toggle
                  - entity: light.light_rafter_2_3
                    tap_action:
                      action: toggle
                styles: ''
              - type: custom:bubble-card
                card_type: button
                button_type: slider
                entity: light.living_spots
                name: ' spots'
                tap_action:
                  action: toggle
                sub_button:
                  - entity: light.light_spot_1_2
                    tap_action:
                      action: toggle
                  - entity: light.light_spot_2
                    tap_action:
                      action: toggle
                icon: ''
              - type: custom:bubble-card
                card_type: media-player
                entity: media_player.xantech8_master_bedroom
                show_name: true
                show_state: false
                show_last_changed: false
                show_attribute: false
                force_icon: false
              - type: custom:bubble-card
                card_type: media-player
                entity: media_player.spotify_lukasz_zyla
          - type: custom:bubble-card
            card_type: button
            button_type: slider
            entity: light.master_bathroom
            tap_action:
              action: toggle
            sub_button:
              - entity: sensor.ff_master_bathroom_temperature
                show_background: false
                show_state: true
              - entity: sensor.ff_master_bathroom_humidity
                show_state: true
                show_background: false
              - entity: sensor.ff_master_bathroom_brightness
                show_background: false
                show_state: true
              - entity: light.living
                icon: mdi:dots-horizontal
                tap_action:
                  action: navigate
                  navigation_path: '#masterbath'
            icon: mdi:bathtub
          - type: vertical-stack
            cards:
              - type: custom:bubble-card
                card_type: pop-up
                hash: '#masterbath'
                button_type: slider
                entity: light.master_bathroom
                tap_action:
                  action: toggle
                force_icon: false
                show_state: false
                show_last_changed: false
                show_attribute: false
                sub_button:
                  - entity: sensor.ff_master_bathroom_temperature
                    show_background: false
                    show_state: true
                    show_last_changed: false
                    show_attribute: false
                  - entity: sensor.ff_master_bathroom_humidity
                    show_background: false
                    show_last_changed: false
                    show_state: true
                  - entity: sensor.ff_master_bathroom_brightness
                    show_background: false
                    show_state: true
                icon: mdi:bathtub
              - type: custom:mushroom-climate-card
                entity: climate.master_bathroom_3
                hvac_modes:
                  - heat
                  - 'off'
                show_temperature_control: true
                fill_container: false
                collapsible_controls: true
                layout: horizontal
              - type: custom:bubble-card
                card_type: button
                button_type: slider
                entity: light.master_bathroom
                name: tubes
                tap_action:
                  action: toggle
                sub_button:
                  - entity: light.master_bathroom_spot_1
                    tap_action:
                      action: toggle
                  - entity: light.master_bathroom_spot_2
                    tap_action:
                      action: toggle
              - type: custom:bubble-card
                card_type: media-player
                entity: media_player.xantech8_master_bathroom
          - type: custom:bubble-card
            card_type: button
            button_type: slider
            entity: light.guest
            tap_action:
              action: toggle
            sub_button:
              - entity: sensor.ff_guest_room_temperature
                show_background: false
                show_state: true
              - entity: sensor.ff_guest_room_humidity
                show_state: true
                show_background: false
              - entity: sensor.ff_guest_room_brightness
                show_background: false
                show_state: true
              - entity: light.living
                icon: mdi:dots-horizontal
                tap_action:
                  action: navigate
                  navigation_path: '#guest'
            icon: kuf:scene_visit_guests
          - type: vertical-stack
            cards:
              - type: custom:bubble-card
                card_type: pop-up
                hash: '#guest'
                button_type: slider
                entity: light.guest
                tap_action:
                  action: toggle
                force_icon: false
                show_state: false
                show_last_changed: false
                show_attribute: false
                sub_button:
                  - entity: sensor.ff_master_bedroom_temperature
                    show_background: false
                    show_state: true
                    show_last_changed: false
                    show_attribute: false
                  - entity: sensor.ff_master_bedroom_humidity
                    show_background: false
                    show_last_changed: false
                    show_state: true
                  - entity: sensor.ff_guest_room_brightness
                    show_background: false
                    show_state: true
                icon: kuf:scene_visit_guests
              - type: custom:mushroom-climate-card
                entity: climate.guest_room_3
                hvac_modes:
                  - heat
                  - 'off'
                show_temperature_control: true
                fill_container: false
                collapsible_controls: true
                layout: horizontal
              - type: custom:bubble-card
                card_type: button
                button_type: slider
                entity: light.guest_stripes
                name: stripes
                tap_action:
                  action: toggle
                sub_button:
                  - entity: light.light_stripe_1_3
                  - entity: light.light_stripe_2_3
              - type: custom:bubble-card
                card_type: button
                button_type: slider
                entity: light.guest_spots
                name: ' '
                tap_action:
                  action: toggle
                sub_button:
                  - entity: light.guest_spot_1
                    tap_action:
                      action: toggle
                  - entity: light.guest_spot_2
                    tap_action:
                      action: toggle
                icon: ''
          - type: custom:bubble-card
            card_type: button
            button_type: slider
            entity: light.zosia
            tap_action:
              action: toggle
            sub_button:
              - entity: sensor.ff_zosia_s_room_temperature
                show_background: false
                show_state: true
              - entity: sensor.ff_zosia_s_room_humidity
                show_state: true
                show_background: false
              - entity: sensor.ff_zosia_s_room_brightness
                show_background: false
                show_state: true
              - entity: light.zosia
                icon: mdi:dots-horizontal
                tap_action:
                  action: navigate
                  navigation_path: '#zosia'
            icon: mdi:teddy-bear
          - type: vertical-stack
            cards:
              - type: custom:bubble-card
                card_type: pop-up
                hash: '#zosia'
                button_type: slider
                entity: light.zosia
                tap_action:
                  action: toggle
                force_icon: false
                show_state: false
                show_last_changed: false
                show_attribute: false
                sub_button:
                  - entity: sensor.ff_zosia_s_room_temperature
                    show_background: false
                    show_state: true
                    show_last_changed: false
                    show_attribute: false
                  - entity: sensor.ff_zosia_s_room_humidity
                    show_background: false
                    show_last_changed: false
                    show_state: true
                  - entity: sensor.ff_zosia_s_room_brightness
                    show_background: false
                    show_state: true
                icon: mdi:teddy-bear
              - type: custom:mushroom-climate-card
                entity: climate.zosia_s_bedroom_4
                hvac_modes:
                  - heat
                  - 'off'
                show_temperature_control: true
                fill_container: false
                collapsible_controls: true
                layout: horizontal
              - type: custom:bubble-card
                card_type: button
                button_type: slider
                entity: light.zosia_stripes
                name: stripes
                tap_action:
                  action: toggle
                sub_button:
                  - entity: light.light_stripe_1_2
                    tap_action:
                      action: toggle
                  - entity: light.light_stripe_2_2
                    tap_action:
                      action: toggle
              - type: custom:bubble-card
                card_type: button
                button_type: slider
                entity: light.zosia_spots
                name: ' spota'
                tap_action:
                  action: toggle
                sub_button:
                  - entity: light.light_spot_1_3
                    tap_action:
                      action: toggle
                  - entity: light.light_spot_2_3
                    tap_action:
                      action: toggle
                  - entity: light.light_spot_3_2
                    tap_action:
                      action: toggle
                  - entity: light.light_spot_4_2
                    tap_action:
                      action: toggle
                icon: ''
              - type: custom:bubble-card
                card_type: media-player
                entity: media_player.xantech8_zosia_s_bedroom
              - type: custom:bubble-card
                card_type: media-player
                entity: media_player.spotify_lukasz_zyla
          - type: custom:bubble-card
            card_type: button
            button_type: slider
            entity: light.library
            tap_action:
              action: toggle
            sub_button:
              - entity: sensor.ff_library_temperature
                show_background: false
                show_state: true
                tap_action:
                  action: more-info
              - entity: sensor.ff_library_humidity
                show_state: true
                show_background: false
                tap_action:
                  action: more-info
              - entity: sensor.ff_library_brightness
                show_background: false
                show_state: true
              - entity: light.library
                icon: mdi:dots-horizontal
                tap_action:
                  action: navigate
                  navigation_path: '#library'
            icon: mdi:library
          - type: vertical-stack
            cards:
              - type: custom:bubble-card
                card_type: pop-up
                hash: '#library'
                button_type: slider
                entity: light.library
                tap_action:
                  action: toggle
                force_icon: false
                show_state: false
                show_last_changed: false
                show_attribute: false
                sub_button:
                  - entity: sensor.ff_library_temperature
                    show_background: false
                    show_state: true
                    show_last_changed: false
                    show_attribute: false
                  - entity: sensor.ff_library_humidity
                    show_background: false
                    show_last_changed: false
                    show_state: true
                  - entity: sensor.ff_library_brightness
                    show_background: false
                    show_state: true
                icon: mdi:library
              - type: custom:mushroom-climate-card
                entity: climate.library_4
                hvac_modes:
                  - heat
                  - 'off'
                show_temperature_control: true
                fill_container: false
                collapsible_controls: true
                layout: horizontal
              - type: custom:bubble-card
                card_type: button
                button_type: slider
                entity: light.library_stripes
                name: stripes
                tap_action:
                  action: toggle
                sub_button:
                  - entity: light.library_stripe_1
                    tap_action:
                      action: toggle
                  - entity: light.library_stripe_2
                    tap_action:
                      action: toggle
              - type: custom:bubble-card
                card_type: button
                button_type: slider
                entity: light.library_spots
                name: ' spots'
                tap_action:
                  action: toggle
                sub_button:
                  - entity: light.library_spot_1
                    tap_action:
                      action: toggle
                  - entity: light.library_spot_2
                    tap_action:
                      action: toggle
                icon: ''
          - type: custom:bubble-card
            card_type: button
            button_type: slider
            entity: light.zosia_s_bathroom
            tap_action:
              action: toggle
            sub_button:
              - entity: sensor.ff_zosia_s_bathroom_temperature
                show_background: false
                show_state: true
              - entity: sensor.ff_zosia_s_bathroom_humidity
                show_state: true
                show_background: false
              - entity: sensor.ff_zosia_s_bathroom_brightness
                show_background: false
                show_state: true
              - entity: light.zosia_s_bathroom
                icon: mdi:dots-horizontal
                tap_action:
                  action: navigate
                  navigation_path: '#zosiabath'
            name: '[FF] Bathroom'
            icon: mdi:faucet
          - type: vertical-stack
            cards:
              - type: custom:bubble-card
                card_type: pop-up
                hash: '#zosiabath'
                button_type: slider
                entity: light.zosia_s_bathroom
                tap_action:
                  action: toggle
                force_icon: false
                show_state: false
                show_last_changed: false
                show_attribute: false
                sub_button:
                  - entity: sensor.ff_master_bathroom_temperature
                    show_background: false
                    show_state: true
                    show_last_changed: false
                    show_attribute: false
                  - entity: sensor.ff_master_bathroom_humidity
                    show_background: false
                    show_last_changed: false
                    show_state: true
                  - entity: sensor.ff_master_bathroom_brightness
                    show_background: false
                    show_state: true
                name: '[FF] Bathroom'
                icon: mdi:faucet
              - type: custom:mushroom-climate-card
                entity: climate.zosia_s_bathroom_3
                hvac_modes:
                  - heat
                  - 'off'
                show_temperature_control: true
                fill_container: false
                collapsible_controls: true
                layout: horizontal
              - type: custom:bubble-card
                card_type: button
                button_type: slider
                entity: light.zosia_s_bathroom_stripe
                name: stripe
              - type: custom:bubble-card
                card_type: button
                button_type: slider
                entity: light.zosia_bathroom_tubes
                name: tubes
                tap_action:
                  action: toggle
                sub_button:
                  - entity: light.zosia_s_bathroom_toilet
                    tap_action:
                      action: toggle
                  - entity: light.zosia_s_bathroom_bidet
                    tap_action:
                      action: toggle
              - type: custom:bubble-card
                card_type: media-player
                entity: media_player.xantech8_zosia_s_bathroom
          - type: custom:bubble-card
            card_type: button
            button_type: slider
            entity: light.laundry_2
            tap_action:
              action: toggle
            sub_button:
              - entity: sensor.ff_laundry_temperature
                show_background: false
                show_state: true
              - entity: sensor.ff_laundry_humidity
                show_state: true
                show_background: false
              - entity: sensor.ff_laundry_brightness
                show_background: false
                show_state: true
              - entity: light.laundry_2
                icon: mdi:dots-horizontal
                tap_action:
                  action: navigate
                  navigation_path: '#laundry'
            icon: mdi:washing-machine
          - type: vertical-stack
            cards:
              - type: custom:bubble-card
                card_type: pop-up
                hash: '#laundry'
                button_type: slider
                entity: light.laundry_2
                tap_action:
                  action: toggle
                force_icon: false
                show_state: false
                show_last_changed: false
                show_attribute: false
                sub_button:
                  - entity: sensor.gf_bathroom_temperature
                    show_background: false
                    show_state: true
                    show_last_changed: false
                    show_attribute: false
                  - entity: sensor.gf_bathroom_humidity
                    show_background: false
                    show_last_changed: false
                    show_state: true
                  - entity: sensor.gf_bathroom_brightness
                    show_background: false
                    show_state: true
                icon: mdi:washing-machine
              - type: custom:mushroom-climate-card
                entity: climate.laundry_3
                hvac_modes:
                  - heat
                  - 'off'
                show_temperature_control: true
                fill_container: false
                collapsible_controls: true
                layout: horizontal
              - type: custom:bubble-card
                card_type: button
                button_type: slider
                entity: light.laundry_2
                name: rafters
                tap_action:
                  action: toggle
                sub_button: []
          - type: custom:bubble-card
            card_type: horizontal-buttons-stack
            auto_order: true
            1_name: Master
            1_icon: mdi:sofa-single
            1_link: '#master'
            1_entity: light.master
            1_pir_sensor: binary_sensor.ff_master_bedroom_motion
            2_name: Master
            2_icon: mdi:toilet
            2_link: '#masterbath'
            2_entity: light.master_bathroom
            2_pir_sensor: binary_sensor.ff_master_bathroom_motion
            3_name: Corridor
            3_icon: kuf:scene_corridor
            3_link: '#ffhallway'
            3_entity: light.ff_hallway_1
            3_pir_sensor: binary_sensor.ff_corridor_motion
            4_name: Zosia
            4_icon: mdi:teddy-bear
            4_link: '#zosia'
            4_entity: light.zosia
            4_pir_sensor: binary_sensor.ff_zosia_s_room_motion
            5_name: Zosia
            5_icon: mdi:bathtub
            5_link: '#zosiabath'
            5_entity: light.zosia_s_bathroom
            5_pir_sensor: binary_sensor.ff_zosia_s_bathroom_motion
            6_name: guest
            6_icon: kuf:scene_visit_guests
            6_link: '#guest'
            6_entity: light.guest
            6_pir_sensor: binary_sensor.ff_guest_room_motion
            7_link: '#library'
            7_name: Library
            7_icon: mdi:library
            7_entity: light.library
            7_pir_sensor: binary_sensor.ff_library_motion
        column_span: 2
    theme: clear-dark
`