home-assistant / frontend

:lollipop: Frontend for Home Assistant
https://demo.home-assistant.io
Other
3.97k stars 2.7k forks source link

After adding a new card to a section, focus switches to another view #20534

Closed Sharkie-63 closed 2 months ago

Sharkie-63 commented 5 months ago

Checklist

Describe the issue you are experiencing

I created a new view to test the new section feature. After adding a section, I attempted to add a number of cards. After I added each card, the focus switched to a previous view and I had to switch back to my test view to add the next card.

Describe the behavior you expected

I expect that after I add a card, I am allowed to add another card without having to navigate back to the view I'm working on.

Steps to reproduce the issue

  1. Create a view on an existing dashboard 2.Add a section to the new view 3.Click Add Card in the section
  2. Create a new card of any type
  3. When you click the Save button, the active view will switch to another view on the dashboard. ...

What version of Home Assistant Core has the issue?

2024.4.3

What was the last working version of Home Assistant Core?

No response

In which browser are you experiencing the issue with?

Google Chrome Version 123.0.6312.123

Which operating system are you using to run this browser?

Windows 10 version 19045.4291

State of relevant entities

No response

Problem-relevant frontend configuration

views:
  - title: Test Vertical 2
    path: test-vertical-2
    type: panel
    theme: LCARS Modern
    badges: []
    cards:
      - type: vertical-stack
        cards:
          - type: horizontal-stack
            cards:
              - type: vertical-stack
                cards:
                  - type: horizontal-stack
                    cards:
                      - type: button
                        tap_action:
                          action: navigate
                          navigation_path: /rv-test/test-schedule
                        entity: light.bear_collar_light
                        icon: mdi:calendar
                        hold_action:
                          action: none
                        show_name: false
                        show_icon: true
                      - type: button
                        tap_action:
                          action: navigate
                          navigation_path: /rv-test/test-map
                        entity: light.bear_collar_light
                        icon: mdi:map-search
                        hold_action:
                          action: none
                        show_name: false
                        show_icon: true
                      - type: button
                        tap_action:
                          action: navigate
                          navigation_path: /rv-test/test-layout
                        entity: light.bear_collar_light
                        icon: mdi:rv-truck
                        hold_action:
                          action: none
                        show_name: false
                        show_icon: true
                  - show_name: true
                    show_icon: true
                    show_state: true
                    type: glance
                    entities:
                      - entity: person.xxx
                      - entity: person.yyy
                      - entity: person.zzz
                    state_color: true
                  - show_current: true
                    show_forecast: true
                    type: weather-forecast
                    entity: weather.kagc_daynight
                    secondary_info_attribute: wind_speed
                    forecast_type: hourly
                  - type: horizontal-stack
                    cards:
                      - type: vertical-stack
                        cards:
                          - type: conditional
                            conditions:
                              - entity: sensor.water_meter_controller_water_remaining
                                state_not: unavailable
                            card:
                              - type: gauge
                                entity: sensor.water_meter_controller_water_remaining
                                unit: Gallons
                                max: 75
                                min: 0
                                needle: true
                                severity:
                                  green: 30
                                  yellow: 15
                                  red: 0
                          - type: conditional
                            conditions:
                              - entity: sensor.water_meter_controller_water_remaining
                                state_not: unavailable
                            card:
                              - type: button
                                tap_action:
                                  action: toggle
                                entity: button.nodered_1cd82f0bf93cb513
                                name: Reset
                                show_name: true
                                show_icon: false
                      - type: conditional
                        conditions:
                          - entity: sensor.water_meter_controller_total_water_usage
                            state_not: unavailable
                        card:
                          - type: gauge
                            entity: sensor.water_meter_controller_total_water_usage
                            unit: Gallons
                            max: 75
                            min: 0
                            needle: true
                            name: Grey Tank
                      - type: conditional
                        conditions:
                          - entity: sensor.water_meter_controller_water_remaining
                            state_not: unavailable
                        card:
                          - type: gauge
                            entity: sensor.water_meter_controller_water_remaining
                            unit: Gallons
                            max: 50
                            min: 0
                            needle: false
                            name: Black Tank
                            severity:
                              green: 0
                              yellow: 30
                              red: 40
                  - type: horizontal-stack
                    cards:
                      - show_name: true
                        show_icon: true
                        type: button
                        tap_action:
                          action: call-service
                          service: button.press
                          target:
                            entity_id: button.generator_controller_main_generator_button
                          data: {}
                        entity: switch.generator_controller_main_generator_light
                        name: Generator Start
                        icon: mdi:power
                      - type: conditional
                        conditions:
                          - entity: sensor.system_controller_voltage
                            state_not: unknown
                        card:
                          - type: gauge
                            name: Battery State
                            unit: V
                            severity:
                              green: 12.4
                              yellow: 12
                              red: 0
                            entity: sensor.system_controller_voltage
                            min: 11.5
                            max: 13.8
                  - type: conditional
                    conditions:
                      - entity: sensor.water_meter_controller_water_remaining
                        state_not: unavailable
                        tap_action:
                          action: navigate
                          navigation_path: home
                    card:
                      type: gauge
                      entity: sensor.water_meter_controller_water_remaining
                      name: Water
                      unit: Gallons
                      max: 75
                      needle: true
                      severity:
                        green: 30
                        yellow: 15
                        red: 0
                  - show_name: true
                    show_icon: true
                    type: button
                    tap_action:
                      action: toggle
                    name: Setup
                    icon: mdi:cog
                    hold_action:
                      action: navigate
                      navigation_path: /lovelace/default_view
              - type: media-control
                entity: media_player.rv_speaker
  - title: Home
    type: custom:masonry-layout
    theme: LCARS Classic
    subview: true
    badges: []
    cards:
      - type: custom:layout-card
        layout_type: custom:horizontal-layout
        cards:
          - show_name: true
            show_icon: true
            show_state: true
            type: glance
            entities:
              - entity: person.xxx
              - entity: person.yyy
              - entity: person.zzz
            state_color: true
            columns: 3
            view_layout:
              column: 1
          - initial_view: listWeek
            type: calendar
            entities:
              - calendar.xxx_gmail_com
              - calendar.yyy_gmail_com
              - calendar.zzz
            title: Coming Up
            view_layout:
              column: 4
          - type: map
            entities:
              - device_tracker.xxx_ipad
              - device_tracker.yyy_iphone
            dark_mode: false
            view_layout:
              column: 9
          - show_current: true
            show_forecast: true
            type: weather-forecast
            entity: weather.kagc_daynight
            secondary_info_attribute: wind_speed
          - type: vertical-stack
            cards:
              - type: gauge
                entity: sensor.water_meter_controller_water_remaining
                unit: Gallons
                max: 75
                min: 0
                needle: true
                severity:
                  green: 30
                  yellow: 15
                  red: 0
              - show_name: true
                show_icon: false
                type: button
                tap_action:
                  action: toggle
                entity: button.nodered_1cd82f0bf93cb513
                name: Reset
          - type: gauge
            entity: sensor.water_meter_controller_total_water_usage
            unit: Gallons
            max: 75
            min: 0
            needle: true
            name: Grey Tank
          - type: gauge
            entity: sensor.water_meter_controller_water_remaining
            unit: Gallons
            max: 50
            min: 0
            needle: false
            name: Black Tank
            severity:
              green: 0
              yellow: 30
              red: 40
          - sidebar_title: RV
            view_layout:
              columns: 10
            config:
              show_side_bar: true
              show_app_header: true
              console_log_level: debug
              defaults:
                hover_action: hover-info
                tap_action: more-info
              image: /local/floorplan/rv_layout/rv_layout_2023_05_26_a.svg
              cache: false
              rules:
                - element: switch.cabin_front_controller_front_cabin_light
                  entity: switch.cabin_front_controller_front_cabin_light
                  state_action:
                    - action: call-service
                      service: floorplan.text_set
                      service_data: ${entity.state.toUpperCase()}
                    - action: call-service
                      service: floorplan.image_set
                      service_data: /local/floorplan/rv_layout/light_${entity.state}.svg
                    - action: call-service
                      service: >-
                        ${(entity.state === "unavailable") ? "switch.turn_off" :
                        "switch.turn_" + entity.state}
                      service_data: {}
                      target:
                        entity_id: switch.cabin_front_controller_front_cabin_light
                  tap_action: toggle
                - element: switch.cabin_mid_controller_mid_cabin_light
                  entity: switch.cabin_mid_controller_mid_cabin_light
                  state_action:
                    - action: call-service
                      service: floorplan.image_set
                      service_data: /local/floorplan/rv_layout/light_${entity.state}.svg
                    - action: call-service
                      service: >-
                        ${(entity.state === "unavailable") ? "switch.turn_off" :
                        "switch.turn_" + entity.state}
                      service_data: {}
                      target:
                        entity_id: switch.cabin_mid_controller_mid_cabin_light
                  tap_action: toggle
                - element: switch.cabin_rear_controller_rear_cabin_light
                  entity: switch.cabin_rear_controller_rear_cabin_light
                  state_action:
                    - action: call-service
                      service: floorplan.image_set
                      service_data: /local/floorplan/rv_layout/light_${entity.state}.svg
                    - action: call-service
                      service: >-
                        ${(entity.state === "unavailable") ? "switch.turn_off" :
                        "switch.turn_" + entity.state}
                      service_data: {}
                      target:
                        entity_id: switch.cabin_rear_controller_rear_cabin_light
                  tap_action: toggle
                - element: switch.table_controller_hallway_light
                  entity: switch.table_controller_hallway_light
                  state_action:
                    - action: call-service
                      service: floorplan.image_set
                      service_data: /local/floorplan/rv_layout/light_${entity.state}.svg
                    - action: call-service
                      service: >-
                        ${(entity.state === "unavailable") ? "switch.turn_off" :
                        "switch.turn_" + entity.state}
                      service_data: {}
                      target:
                        entity_id: switch.table_controller_hallway_light
                  tap_action: toggle
                - element: switch.door_controller_door_porch_light
                  entity: switch.door_controller_door_porch_light
                  state_action:
                    - action: call-service
                      service: floorplan.image_set
                      service_data: /local/floorplan/rv_layout/light_${entity.state}.svg
                    - action: call-service
                      service: >-
                        ${(entity.state === "unavailable") ? "switch.turn_off" :
                        "switch.turn_" + entity.state}
                      service_data: {}
                      target:
                        entity_id: switch.door_controller_door_porch_light
                  tap_action: toggle
                - element: switch.mirror_controller_bathroom_mirror_light
                  entity: switch.mirror_controller_bathroom_mirror_light
                  state_action:
                    - action: call-service
                      service: floorplan.image_set
                      service_data: /local/floorplan/rv_layout/light_${entity.state}.svg
                    - action: call-service
                      service: >-
                        ${(entity.state === "unavailable") ? "switch.turn_off" :
                        "switch.turn_" + entity.state}
                      service_data: {}
                      target:
                        entity_id: switch.mirror_controller_bathroom_mirror_light
                  tap_action: toggle
                - element: switch.shower_controller_controller_bathroom_shower_light
                  entity: switch.shower_controller_controller_bathroom_shower_light
                  state_action:
                    - action: call-service
                      service: floorplan.image_set
                      service_data: /local/floorplan/rv_layout/light_${entity.state}.svg
                    - action: call-service
                      service: >-
                        ${(entity.state === "unavailable") ? "switch.turn_off" :
                        "switch.turn_" + entity.state}
                      service_data: {}
                      target:
                        entity_id: >-
                          switch.shower_controller_controller_bathroom_shower_light
                  tap_action: toggle
                - element: sensor.bathroom_fan_conroller_bathroom_temperature
                  entity: sensor.bathroom_fan_conroller_bathroom_temperature
                  state_action:
                    - action: call-service
                      service: floorplan.text_set
                      service_data: ${entity.state}°
                      target:
                        entity_id: sensor.bathroom_fan_conroller_bathroom_temperature
                - element: fan.fan_controller_bedroom_fan
                  entity: fan.fan_controller_bedroom_fan
                  state_action:
                    - action: call-service
                      service: floorplan.text_set
                      service_data: ${entity.state.toUpperCase()}
                    - action: call-service
                      service: floorplan.class_set
                      service_data:
                        class: '${(entity.state === "on") ? "spinning" : ""}'
                    - action: call-service
                      service: >-
                        ${(entity.state === "unavailable") ? "switch.turn_off" :
                        "switch.turn_" + entity.state}
                      service_data: {}
                      target:
                        entity_id: fan.fan_controller_bedroom_fan
                  double_tap_action: toggle
                - element: fan.bathroom_fan_conroller_bathroom_fan_light
                  entity: fan.bathroom_fan_conroller_bathroom_fan_light
                  state_action:
                    - action: call-service
                      service: floorplan.class_set
                      service_data:
                        class: '${(entity.state === "on") ? "spinning" : ""}'
                    - action: call-service
                      service: >-
                        ${(entity.state === "unavailable") ? "switch.turn_off" :
                        "switch.turn_" + entity.state}
                      service_data: {}
                      target:
                        entity_id: fan.bathroom_fan_conroller_bathroom_fan_light
                  hold_action: toggle
              stylesheet: /local/floorplan/rv_layout/rv_layout.css
            full_height: true
            type: custom:floorplan-card
        layout:
          width: 300
          max_columns: 10
      - type: custom:mini-media-player
        entity: media_player.rv_speaker
        group: false
        volume_stateless: false
        toggle_power: false
        volume_step: '5'
        max_volume: '100'
        min_volume: '0'
        artwork: cover-fit
        icon: mdi:music
        name: 'You''re listening to:'
        source: full
        sound_mode: full
        info: scroll
      - type: gauge
        entity: input_number.fresh_water_capacity
      - type: entity
        entity: sensor.water_meter_controller_water_remaining
  - title: Test Masonry
    path: test-masonry
    type: custom:masonry-layout
    layout:
      width: 300
      max_columns: 3
      min_height: 4
    subview: true
    badges: []
    cards:
      - type: entities
        entities:
          - person.xxx
          - person.yyy
          - device_tracker.bear_tracker
        state_color: true
        view_layout:
          column: 1
      - type: weather-forecast
        entity: weather.kagc_daynight
        view_layout:
          column: 1
      - type: horizontal-stack
        cards:
          - type: vertical-stack
            cards:
              - type: gauge
                entity: sensor.water_meter_controller_water_remaining
                unit: Gallons
                max: 75
                min: 0
                needle: true
                severity:
                  green: 30
                  yellow: 15
                  red: 0
              - show_name: true
                show_icon: false
                type: button
                tap_action:
                  action: toggle
                entity: button.nodered_1cd82f0bf93cb513
                name: Reset
          - type: gauge
            entity: sensor.water_meter_controller_total_water_usage
            unit: Gallons
            max: 75
            min: 0
            needle: true
            name: Grey Tank
          - type: gauge
            entity: sensor.water_meter_controller_water_remaining
            unit: Gallons
            max: 50
            min: 0
            needle: false
            name: Black Tank
            severity:
              green: 0
              yellow: 30
              red: 40
        view_layout:
          column: 1
      - initial_view: listWeek
        type: calendar
        entities:
          - calendar.xxx_gmail_com
          - calendar.yyy_gmail_com
          - calendar.ktf
          - calendar.zzz
        view_layout:
          column: 2
      - type: map
        entities:
          - entity: device_tracker.pr_bt_366a
          - entity: zone.home_2
        view_layout:
          column: 3
          height: 7
      - sidebar_title: RV
        config:
          show_side_bar: true
          show_app_header: true
          console_log_level: debug
          defaults:
            hover_action: hover-info
            tap_action: more-info
          image: /local/floorplan/rv_layout/rv_layout_2023_05_26_a.svg
          cache: false
          rules:
            - element: switch.cabin_front_controller_front_cabin_light
              entity: switch.cabin_front_controller_front_cabin_light
              state_action:
                - action: call-service
                  service: floorplan.text_set
                  service_data: ${entity.state.toUpperCase()}
                - action: call-service
                  service: floorplan.image_set
                  service_data: /local/floorplan/rv_layout/light_${entity.state}.svg
                - action: call-service
                  service: >-
                    ${(entity.state === "unavailable") ? "switch.turn_off" :
                    "switch.turn_" + entity.state}
                  service_data: {}
                  target:
                    entity_id: switch.cabin_front_controller_front_cabin_light
              tap_action: toggle
            - element: switch.cabin_mid_controller_mid_cabin_light
              entity: switch.cabin_mid_controller_mid_cabin_light
              state_action:
                - action: call-service
                  service: floorplan.image_set
                  service_data: /local/floorplan/rv_layout/light_${entity.state}.svg
                - action: call-service
                  service: >-
                    ${(entity.state === "unavailable") ? "switch.turn_off" :
                    "switch.turn_" + entity.state}
                  service_data: {}
                  target:
                    entity_id: switch.cabin_mid_controller_mid_cabin_light
              tap_action: toggle
            - element: switch.cabin_rear_controller_rear_cabin_light
              entity: switch.cabin_rear_controller_rear_cabin_light
              state_action:
                - action: call-service
                  service: floorplan.image_set
                  service_data: /local/floorplan/rv_layout/light_${entity.state}.svg
                - action: call-service
                  service: >-
                    ${(entity.state === "unavailable") ? "switch.turn_off" :
                    "switch.turn_" + entity.state}
                  service_data: {}
                  target:
                    entity_id: switch.cabin_rear_controller_rear_cabin_light
              tap_action: toggle
            - element: switch.table_controller_hallway_light
              entity: switch.table_controller_hallway_light
              state_action:
                - action: call-service
                  service: floorplan.image_set
                  service_data: /local/floorplan/rv_layout/light_${entity.state}.svg
                - action: call-service
                  service: >-
                    ${(entity.state === "unavailable") ? "switch.turn_off" :
                    "switch.turn_" + entity.state}
                  service_data: {}
                  target:
                    entity_id: switch.table_controller_hallway_light
              tap_action: toggle
            - element: switch.door_controller_door_porch_light
              entity: switch.door_controller_door_porch_light
              state_action:
                - action: call-service
                  service: floorplan.image_set
                  service_data: /local/floorplan/rv_layout/light_${entity.state}.svg
                - action: call-service
                  service: >-
                    ${(entity.state === "unavailable") ? "switch.turn_off" :
                    "switch.turn_" + entity.state}
                  service_data: {}
                  target:
                    entity_id: switch.door_controller_door_porch_light
              tap_action: toggle
            - element: switch.mirror_controller_bathroom_mirror_light
              entity: switch.mirror_controller_bathroom_mirror_light
              state_action:
                - action: call-service
                  service: floorplan.image_set
                  service_data: /local/floorplan/rv_layout/light_${entity.state}.svg
                - action: call-service
                  service: >-
                    ${(entity.state === "unavailable") ? "switch.turn_off" :
                    "switch.turn_" + entity.state}
                  service_data: {}
                  target:
                    entity_id: switch.mirror_controller_bathroom_mirror_light
              tap_action: toggle
            - element: switch.shower_controller_controller_bathroom_shower_light
              entity: switch.shower_controller_controller_bathroom_shower_light
              state_action:
                - action: call-service
                  service: floorplan.image_set
                  service_data: /local/floorplan/rv_layout/light_${entity.state}.svg
                - action: call-service
                  service: >-
                    ${(entity.state === "unavailable") ? "switch.turn_off" :
                    "switch.turn_" + entity.state}
                  service_data: {}
                  target:
                    entity_id: switch.shower_controller_controller_bathroom_shower_light
              tap_action: toggle
            - element: sensor.bathroom_fan_conroller_bathroom_temperature
              entity: sensor.bathroom_fan_conroller_bathroom_temperature
              state_action:
                - action: call-service
                  service: floorplan.text_set
                  service_data: ${entity.state}°
                  target:
                    entity_id: sensor.bathroom_fan_conroller_bathroom_temperature
            - element: fan.fan_controller_bedroom_fan
              entity: fan.fan_controller_bedroom_fan
              state_action:
                - action: call-service
                  service: floorplan.text_set
                  service_data: ${entity.state.toUpperCase()}
                - action: call-service
                  service: floorplan.class_set
                  service_data:
                    class: '${(entity.state === "on") ? "spinning" : ""}'
                - action: call-service
                  service: >-
                    ${(entity.state === "unavailable") ? "switch.turn_off" :
                    "switch.turn_" + entity.state}
                  service_data: {}
                  target:
                    entity_id: fan.fan_controller_bedroom_fan
              double_tap_action: toggle
            - element: fan.bathroom_fan_conroller_bathroom_fan_light
              entity: fan.bathroom_fan_conroller_bathroom_fan_light
              state_action:
                - action: call-service
                  service: floorplan.class_set
                  service_data:
                    class: '${(entity.state === "on") ? "spinning" : ""}'
                - action: call-service
                  service: >-
                    ${(entity.state === "unavailable") ? "switch.turn_off" :
                    "switch.turn_" + entity.state}
                  service_data: {}
                  target:
                    entity_id: fan.bathroom_fan_conroller_bathroom_fan_light
              hold_action: toggle
          stylesheet: /local/floorplan/rv_layout/rv_layout.css
        full_height: true
        type: custom:floorplan-card
        view_layout:
          column: 1
  - title: Test conditional
    path: test-vertical
    theme: LCARS Modern
    type: panel
    subview: true
    badges: []
    cards:
      - type: vertical-stack
        cards:
          - type: horizontal-stack
            cards:
              - type: vertical-stack
                cards:
                  - show_name: true
                    show_icon: true
                    show_state: true
                    type: glance
                    entities:
                      - entity: person.xxx
                      - entity: person.yyy
                      - entity: person.zzz
                    state_color: true
                  - show_current: true
                    show_forecast: true
                    type: weather-forecast
                    entity: weather.kagc_daynight
                    secondary_info_attribute: wind_speed
                  - type: horizontal-stack
                    cards:
                      - type: vertical-stack
                        cards:
                          - type: conditional
                            conditions:
                              - entity: sensor.water_meter_controller_water_remaining
                                state_not: unavailable
                            card:
                              - type: gauge
                                entity: sensor.water_meter_controller_water_remaining
                                unit: Gallons
                                max: 75
                                min: 0
                                needle: true
                                severity:
                                  green: 30
                                  yellow: 15
                                  red: 0
                          - type: conditional
                            conditions:
                              - entity: sensor.water_meter_controller_water_remaining
                                state_not: unavailable
                            card:
                              - type: button
                                tap_action:
                                  action: toggle
                                entity: button.nodered_1cd82f0bf93cb513
                                name: Reset
                                show_name: true
                                show_icon: false
                      - type: conditional
                        conditions:
                          - entity: sensor.water_meter_controller_total_water_usage
                            state_not: unavailable
                        card:
                          - type: gauge
                            entity: sensor.water_meter_controller_total_water_usage
                            unit: Gallons
                            max: 75
                            min: 0
                            needle: true
                            name: Grey Tank
                      - type: conditional
                        conditions:
                          - entity: sensor.water_meter_controller_water_remaining
                            state_not: unavailable
                        card:
                          - type: gauge
                            entity: sensor.water_meter_controller_water_remaining
                            unit: Gallons
                            max: 50
                            min: 0
                            needle: false
                            name: Black Tank
                            severity:
                              green: 0
                              yellow: 30
                              red: 40
                  - type: horizontal-stack
                    cards:
                      - show_name: true
                        show_icon: true
                        type: button
                        tap_action:
                          action: call-service
                          service: button.press
                          target:
                            entity_id: button.generator_controller_main_generator_button
                          data: {}
                        entity: switch.generator_controller_main_generator_light
                        name: Generator Start
                        icon: mdi:power
                      - type: conditional
                        conditions:
                          - entity: sensor.system_controller_voltage
                            state_not: unknown
                        card:
                          - type: gauge
                            name: Battery State
                            unit: V
                            severity:
                              green: 12.4
                              yellow: 12
                              red: 0
                            entity: sensor.system_controller_voltage
                            min: 11.5
                            max: 13.8
                  - type: conditional
                    conditions:
                      - entity: sensor.water_meter_controller_water_remaining
                        state_not: unavailable
                    card:
                      type: gauge
                      entity: sensor.water_meter_controller_water_remaining
                      name: Water
                      unit: Gallons
                      max: 75
                      needle: true
                      severity:
                        green: 30
                        yellow: 15
                        red: 0
              - initial_view: listWeek
                type: calendar
                entities:
                  - calendar.xxx_gmail_com
                  - calendar.yyy_gmail_com
                  - calendar.zzz
                title: Coming Up
              - type: map
                entities:
                  - device_tracker.yyy_ipad
                  - device_tracker.xxx_iphone
                dark_mode: false
          - sidebar_title: RV
            config:
              show_side_bar: true
              show_app_header: true
              console_log_level: debug
              defaults:
                hover_action: hover-info
                tap_action: more-info
              image: /local/floorplan/rv_layout/rv_layout_2023_05_26_a.svg
              cache: false
              rules:
                - element: switch.cabin_front_controller_front_cabin_light
                  entity: switch.cabin_front_controller_front_cabin_light
                  state_action:
                    - action: call-service
                      service: floorplan.text_set
                      service_data: ${entity.state.toUpperCase()}
                    - action: call-service
                      service: floorplan.image_set
                      service_data: /local/floorplan/rv_layout/light_${entity.state}.svg
                    - action: call-service
                      service: >-
                        ${(entity.state === "unavailable") ? "switch.turn_off" :
                        "switch.turn_" + entity.state}
                      service_data: {}
                      target:
                        entity_id: switch.cabin_front_controller_front_cabin_light
                  tap_action: toggle
                - element: switch.cabin_mid_controller_mid_cabin_light
                  entity: switch.cabin_mid_controller_mid_cabin_light
                  state_action:
                    - action: call-service
                      service: floorplan.image_set
                      service_data: /local/floorplan/rv_layout/light_${entity.state}.svg
                    - action: call-service
                      service: >-
                        ${(entity.state === "unavailable") ? "switch.turn_off" :
                        "switch.turn_" + entity.state}
                      service_data: {}
                      target:
                        entity_id: switch.cabin_mid_controller_mid_cabin_light
                  tap_action: toggle
                - element: switch.cabin_rear_controller_rear_cabin_light
                  entity: switch.cabin_rear_controller_rear_cabin_light
                  state_action:
                    - action: call-service
                      service: floorplan.image_set
                      service_data: /local/floorplan/rv_layout/light_${entity.state}.svg
                    - action: call-service
                      service: >-
                        ${(entity.state === "unavailable") ? "switch.turn_off" :
                        "switch.turn_" + entity.state}
                      service_data: {}
                      target:
                        entity_id: switch.cabin_rear_controller_rear_cabin_light
                  tap_action: toggle
                - element: switch.table_controller_hallway_light
                  entity: switch.table_controller_hallway_light
                  state_action:
                    - action: call-service
                      service: floorplan.image_set
                      service_data: /local/floorplan/rv_layout/light_${entity.state}.svg
                    - action: call-service
                      service: >-
                        ${(entity.state === "unavailable") ? "switch.turn_off" :
                        "switch.turn_" + entity.state}
                      service_data: {}
                      target:
                        entity_id: switch.table_controller_hallway_light
                  tap_action: toggle
                - element: switch.door_controller_door_porch_light
                  entity: switch.door_controller_door_porch_light
                  state_action:
                    - action: call-service
                      service: floorplan.image_set
                      service_data: /local/floorplan/rv_layout/light_${entity.state}.svg
                    - action: call-service
                      service: >-
                        ${(entity.state === "unavailable") ? "switch.turn_off" :
                        "switch.turn_" + entity.state}
                      service_data: {}
                      target:
                        entity_id: switch.door_controller_door_porch_light
                  tap_action: toggle
                - element: switch.mirror_controller_bathroom_mirror_light
                  entity: switch.mirror_controller_bathroom_mirror_light
                  state_action:
                    - action: call-service
                      service: floorplan.image_set
                      service_data: /local/floorplan/rv_layout/light_${entity.state}.svg
                    - action: call-service
                      service: >-
                        ${(entity.state === "unavailable") ? "switch.turn_off" :
                        "switch.turn_" + entity.state}
                      service_data: {}
                      target:
                        entity_id: switch.mirror_controller_bathroom_mirror_light
                  tap_action: toggle
                - element: switch.shower_controller_controller_bathroom_shower_light
                  entity: switch.shower_controller_controller_bathroom_shower_light
                  state_action:
                    - action: call-service
                      service: floorplan.image_set
                      service_data: /local/floorplan/rv_layout/light_${entity.state}.svg
                    - action: call-service
                      service: >-
                        ${(entity.state === "unavailable") ? "switch.turn_off" :
                        "switch.turn_" + entity.state}
                      service_data: {}
                      target:
                        entity_id: >-
                          switch.shower_controller_controller_bathroom_shower_light
                  tap_action: toggle
                - element: sensor.bathroom_fan_conroller_bathroom_temperature
                  entity: sensor.bathroom_fan_conroller_bathroom_temperature
                  state_action:
                    - action: call-service
                      service: floorplan.text_set
                      service_data: ${entity.state}°
                      target:
                        entity_id: sensor.bathroom_fan_conroller_bathroom_temperature
                - element: fan.fan_controller_bedroom_fan
                  entity: fan.fan_controller_bedroom_fan
                  state_action:
                    - action: call-service
                      service: floorplan.text_set
                      service_data: ${entity.state.toUpperCase()}
                    - action: call-service
                      service: floorplan.class_set
                      service_data:
                        class: '${(entity.state === "on") ? "spinning" : ""}'
                    - action: call-service
                      service: >-
                        ${(entity.state === "unavailable") ? "switch.turn_off" :
                        "switch.turn_" + entity.state}
                      service_data: {}
                      target:
                        entity_id: fan.fan_controller_bedroom_fan
                  double_tap_action: toggle
                - element: fan.bathroom_fan_conroller_bathroom_fan_light
                  entity: fan.bathroom_fan_conroller_bathroom_fan_light
                  state_action:
                    - action: call-service
                      service: floorplan.class_set
                      service_data:
                        class: '${(entity.state === "on") ? "spinning" : ""}'
                    - action: call-service
                      service: >-
                        ${(entity.state === "unavailable") ? "switch.turn_off" :
                        "switch.turn_" + entity.state}
                      service_data: {}
                      target:
                        entity_id: fan.bathroom_fan_conroller_bathroom_fan_light
                  hold_action: toggle
              stylesheet: /local/floorplan/rv_layout/rv_layout.css
            full_height: true
            type: custom:floorplan-card
  - title: Test Vertical
    path: test-vertical
    theme: LCARS Modern
    type: panel
    badges: []
    cards: []
  - title: Coming Up
    path: test-schedule
    theme: LCARS Modern
    type: panel
    subview: true
    badges: []
    cards:
      - initial_view: listWeek
        type: calendar
        entities:
          - calendar.xxx_gmail_com
          - calendar.yyy_gmail_com
          - calendar.ktf
          - calendar.zzz
        title: Schedule
        theme: LCARS Modern
  - title: Test Map
    path: test-map
    theme: LCARS Modern
    type: panel
    subview: true
    badges: []
    cards:
      - type: map
        entities:
          - device_tracker.xxx_iphoneww
          - device_tracker.yyy_iphone_app
  - title: Test layout
    path: test-layout
    theme: LCARS Modern
    subview: true
    type: panel
    badges: []
    cards:
      - sidebar_title: RV
        config:
          show_side_bar: true
          show_app_header: true
          console_log_level: debug
          defaults:
            hover_action: hover-info
            tap_action: more-info
          image: /local/floorplan/rv_layout/rv_layout_vertical.svg
          cache: false
          rules:
            - element: switch.cabin_front_controller_front_cabin_light
              entity: switch.cabin_front_controller_front_cabin_light
              state_action:
                - action: call-service
                  service: floorplan.text_set
                  service_data: ${entity.state.toUpperCase()}
                - action: call-service
                  service: floorplan.image_set
                  service_data: /local/floorplan/rv_layout/light_${entity.state}.svg
                - action: call-service
                  service: >-
                    ${(entity.state === "unavailable") ? "switch.turn_off" :
                    "switch.turn_" + entity.state}
                  service_data: {}
                  target:
                    entity_id: switch.cabin_front_controller_front_cabin_light
              tap_action: toggle
            - element: switch.cabin_mid_controller_mid_cabin_light
              entity: switch.cabin_mid_controller_mid_cabin_light
              state_action:
                - action: call-service
                  service: floorplan.image_set
                  service_data: /local/floorplan/rv_layout/light_${entity.state}.svg
                - action: call-service
                  service: >-
                    ${(entity.state === "unavailable") ? "switch.turn_off" :
                    "switch.turn_" + entity.state}
                  service_data: {}
                  target:
                    entity_id: switch.cabin_mid_controller_mid_cabin_light
              tap_action: toggle
            - element: switch.cabin_rear_controller_rear_cabin_light
              entity: switch.cabin_rear_controller_rear_cabin_light
              state_action:
                - action: call-service
                  service: floorplan.image_set
                  service_data: /local/floorplan/rv_layout/light_${entity.state}.svg
                - action: call-service
                  service: >-
                    ${(entity.state === "unavailable") ? "switch.turn_off" :
                    "switch.turn_" + entity.state}
                  service_data: {}
                  target:
                    entity_id: switch.cabin_rear_controller_rear_cabin_light
              tap_action: toggle
            - element: switch.table_controller_hallway_light
              entity: switch.table_controller_hallway_light
              state_action:
                - action: call-service
                  service: floorplan.image_set
                  service_data: /local/floorplan/rv_layout/light_${entity.state}.svg
                - action: call-service
                  service: >-
                    ${(entity.state === "unavailable") ? "switch.turn_off" :
                    "switch.turn_" + entity.state}
                  service_data: {}
                  target:
                    entity_id: switch.table_controller_hallway_light
              tap_action: toggle
            - element: switch.door_controller_door_porch_light
              entity: switch.door_controller_door_porch_light
              state_action:
                - action: call-service
                  service: floorplan.image_set
                  service_data: /local/floorplan/rv_layout/light_${entity.state}.svg
                - action: call-service
                  service: >-
                    ${(entity.state === "unavailable") ? "switch.turn_off" :
                    "switch.turn_" + entity.state}
                  service_data: {}
                  target:
                    entity_id: switch.door_controller_door_porch_light
              tap_action: toggle
            - element: switch.mirror_controller_bathroom_mirror_light
              entity: switch.mirror_controller_bathroom_mirror_light
              state_action:
                - action: call-service
                  service: floorplan.image_set
                  service_data: /local/floorplan/rv_layout/light_${entity.state}.svg
                - action: call-service
                  service: >-
                    ${(entity.state === "unavailable") ? "switch.turn_off" :
                    "switch.turn_" + entity.state}
                  service_data: {}
                  target:
                    entity_id: switch.mirror_controller_bathroom_mirror_light
              tap_action: toggle
            - element: switch.shower_controller_controller_bathroom_shower_light
              entity: switch.shower_controller_controller_bathroom_shower_light
              state_action:
                - action: call-service
                  service: floorplan.image_set
                  service_data: /local/floorplan/rv_layout/light_${entity.state}.svg
                - action: call-service
                  service: >-
                    ${(entity.state === "unavailable") ? "switch.turn_off" :
                    "switch.turn_" + entity.state}
                  service_data: {}
                  target:
                    entity_id: switch.shower_controller_controller_bathroom_shower_light
              tap_action: toggle
            - element: sensor.bathroom_fan_conroller_bathroom_temperature
              entity: sensor.bathroom_fan_conroller_bathroom_temperature
              state_action:
                - action: call-service
                  service: floorplan.text_set
                  service_data: ${entity.state}°
                  target:
                    entity_id: sensor.bathroom_fan_conroller_bathroom_temperature
            - element: fan.fan_controller_bedroom_fan
              entity: fan.fan_controller_bedroom_fan
              state_action:
                - action: call-service
                  service: floorplan.text_set
                  service_data: ${entity.state.toUpperCase()}
                - action: call-service
                  service: floorplan.class_set
                  service_data:
                    class: '${(entity.state === "on") ? "spinning" : ""}'
                - action: call-service
                  service: >-
                    ${(entity.state === "unavailable") ? "switch.turn_off" :
                    "switch.turn_" + entity.state}
                  service_data: {}
                  target:
                    entity_id: fan.fan_controller_bedroom_fan
              double_tap_action: toggle
            - element: fan.bathroom_fan_conroller_bathroom_fan_light
              entity: fan.bathroom_fan_conroller_bathroom_fan_light
              state_action:
                - action: call-service
                  service: floorplan.class_set
                  service_data:
                    class: '${(entity.state === "on") ? "spinning" : ""}'
                - action: call-service
                  service: >-
                    ${(entity.state === "unavailable") ? "switch.turn_off" :
                    "switch.turn_" + entity.state}
                  service_data: {}
                  target:
                    entity_id: fan.bathroom_fan_conroller_bathroom_fan_light
              hold_action: toggle
          stylesheet: /local/floorplan/rv_layout/rv_layout.css
        full_height: true
        type: custom:floorplan-card
  - type: sections
    max_columns: 3
    title: RV
    path: rv
    theme: LCARS Modern
    sections:
      - type: grid
        cards:
          - show_name: true
            show_icon: true
            show_state: true
            type: glance
            entities:
              - entity: person.xxx
              - entity: person.yyy
              - entity: person.zzz
            state_color: true
          - show_current: true
            show_forecast: true
            type: weather-forecast
            entity: weather.kagc_daynight
            forecast_type: hourly
          - type: custom:mini-media-player
            entity: media_player.rv_speaker
            group: false
            volume_stateless: false
            toggle_power: false
            volume_step: '5'
            max_volume: '100'
            min_volume: '0'
            artwork: cover-fit
            icon: mdi:music
            name: 'You''re listening to:'
            source: full
            sound_mode: full
            info: scroll
          - type: vertical-stack
            cards:
              - type: horizontal-stack
                cards:
                  - type: conditional
                    conditions:
                      - condition: state
                        entity: number.esp32_water_meter_controller_water_remaining
                        state_not: unavailable
                    card:
                      type: gauge
                      entity: number.esp32_water_meter_controller_water_remaining
                      unit: Gallons
                      max: 90
                      min: 0
                      needle: true
                      severity:
                        green: 30
                        yellow: 20
                        red: 0
                      name: Fresh Water Remaining
                  - type: conditional
                    conditions:
                      - condition: state
                        entity: number.esp32_water_meter_controller_water_used
                        state_not: unavailable
                    card:
                      type: gauge
                      unit: Gallons
                      min: 0
                      needle: true
                      name: Grey Tank
                      entity: number.esp32_water_meter_controller_water_used
                      max: 90
                  - type: conditional
                    conditions:
                      - entity: sensor.water_meter_controller_water_remaining
                        state_not: unavailable
                    card:
                      type: gauge
                      entity: sensor.water_meter_controller_water_remaining
                      unit: Gallons
                      max: 50
                      min: 0
                      needle: false
                      name: Black Tank
                      severity:
                        green: 0
                        yellow: 30
                        red: 40
              - type: conditional
                conditions:
                  - condition: state
                    entity: number.esp32_water_meter_controller_water_remaining
                    state_not: unavailable
                card:
                  show_name: true
                  show_icon: false
                  type: button
                  tap_action:
                    action: navigate
                    navigation_path: /dashboard-test2/water-configuration
                  name: Configure
                  icon: mdi:cog
          - show_name: true
            show_icon: true
            show_state: false
            type: glance
            entities:
              - entity: binary_sensor.config_leak_detector_kitchen
                name: Kitchen Sink
              - entity: binary_sensor.config_leak_detector_bathroom
                name: Bathroom Sink
              - entity: binary_sensor.config_leak_detector_toilet
                name: Toilet
            state_color: true
            title: Leak Detection
          - type: horizontal-stack
            cards:
              - show_name: true
                show_icon: true
                type: button
                tap_action:
                  action: call-service
                  service: button.press
                  target:
                    entity_id: button.generator_controller_main_generator_on_button
                  data: {}
                entity: switch.generator_controller_main_generator_on_light
                name: Generator Start
                icon: mdi:power
              - show_name: true
                show_icon: true
                type: button
                tap_action:
                  action: call-service
                  service: button.press
                  target:
                    entity_id: button.generator_controller_main_generator_off_button
                  data: {}
                entity: switch.generator_controller_main_generator_off_light
                name: Generator Stop
                icon: mdi:power-off
              - type: conditional
                conditions:
                  - entity: sensor.system_controller_voltage
                    state_not: unknown
                  - entity: sensor.system_controller_voltage
                    state_not: unavailable
                card:
                  type: gauge
                  name: Battery State
                  unit: V
                  severity:
                    green: 12.4
                    yellow: 12
                    red: 0
                  entity: sensor.system_controller_voltage
                  min: 11.5
                  max: 13.8
        title: What's Going On
      - type: grid
        cards:
          - initial_view: listWeek
            type: calendar
            entities:
              - calendar.xxx_gmail_com
              - calendar.yyy_gmail_com
              - calendar.zzz
            title: Coming Up
        title: What We Are Doing
      - type: grid
        cards:
          - type: map
            entities:
              - entity: zone.home
            dark_mode: false
        title: 'Where We Are '
    cards: []

Javascript errors shown in your browser console/inspector

No response

Additional information

No response

github-actions[bot] commented 2 months ago

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.