home-assistant / frontend

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

Slow Dashboard - validate-condition.ts:317 Uncaught TypeError: t.reduce is not a function #21554

Closed b1ggi closed 3 months ago

b1ggi commented 3 months ago

Checklist

Describe the issue you are experiencing

Default Dashboard is super slow up to freezing. I restarted in safe mode, custom modules are not loaded. Rest of Homeassistant works as expected. If i wait long enough Browser (Edge on Windows 11, Homeassistant Companion App is also feeling a bit slow) i get an "out of memory" error. After opening Domain you have to close the tab to get going again.

Developer Console Log has a Error counting up indefinitely for the "t.reduce" error

Homeassistant also has a Log in the protocols:

2024-08-02 11:25:19.271 ERROR (MainThread) [frontend.js.latest.202407100] Uncaught error from Edge 126.0.0.0 on Windows 10
TypeError: t.reduce is not a function
extractMediaQueries (src/panels/lovelace/common/validate-condition.ts:317:20)
conditions.reduce<string[]>( (src/panels/lovelace/common/validate-condition.ts:319:20)
extractMediaQueries (src/panels/lovelace/common/validate-condition.ts:317:20)
conditions.reduce<string[]>( (src/panels/lovelace/common/validate-condition.ts:319:20)
extractMediaQueries (src/panels/lovelace/common/validate-condition.ts:317:20)
_listenMediaQueries (src/panels/lovelace/components/hui-conditional-base.ts:87:45)
connectedCallback (src/panels/lovelace/components/hui-conditional-base.ts:70:9)
apply (src/scoped-custom-element-registry.js:248:41)
2024-08-02 11:25:19.272 ERROR (MainThread) [frontend.js.latest.202407100] Uncaught error from Edge 126.0.0.0 on Windows 10
TypeError: t.reduce is not a function
extractMediaQueries (src/panels/lovelace/common/validate-condition.ts:317:20)
conditions.reduce<string[]>( (src/panels/lovelace/common/validate-condition.ts:319:20)
extractMediaQueries (src/panels/lovelace/common/validate-condition.ts:317:20)
conditions.reduce<string[]>( (src/panels/lovelace/common/validate-condition.ts:319:20)
extractMediaQueries (src/panels/lovelace/common/validate-condition.ts:317:20)
_listenMediaQueries (src/panels/lovelace/components/hui-conditional-base.ts:87:45)
connectedCallback (src/panels/lovelace/components/hui-conditional-base.ts:70:9)
apply (src/scoped-custom-element-registry.js:248:41)

Describe the behavior you expected

Normal speed like rest of Homeassistant

Steps to reproduce the issue

1.Open HA Domain 2.SluggishPerformance (15 seconds for opening a entity for example)

What version of Home Assistant Core has the issue?

2024.7.4

What was the last working version of Home Assistant Core?

not sure when it started

In which browser are you experiencing the issue with?

mainly Edge 126.0.0.0 on Work PC , Homeassistant Companion App it is less sluggish, Private Desktop Edge and Brave Browser show same error, but can contain the problem

Which operating system are you using to run this browser?

Windows 11 , but also ios 17.5.1 , and Windows 10

State of relevant entities

No response

Problem-relevant frontend configuration

title: Daheim
views:
  - path: default_view
    title: Home
    visible:
      - user: 5474af0bed114f9fa2f5c76c95caad22
      - user: b3a7b302324041ce9d2471b161c54b90
    badges: []
    cards:
      - type: vertical-stack
        cards:
          - type: custom:auto-entities
            card:
              type: entities
              title: Müll
            filter:
              include:
                - state: / Morgen$/
              exclude:
                - entity_id: sensor.restmulltonne
                - entity_id: sensor.papiertonne
                - entity_id: sensor.gelbe_tonne
            show_empty: false
          - type: custom:auto-entities
            card:
              type: entities
              title: Ethernet
            filter:
              include:
                - entity_id: sensor.opnsense_wan_media
                  options: {}
              exclude:
                - state: 1000baseT <full-duplex>
            show_empty: false
          - type: custom:auto-entities
            card:
              type: entities
            filter:
              include:
                - label: Batterieüberwachung
                  options: {}
              exclude:
                - state: '> 5'
                - state: 'off'
            show_empty: false
          - type: custom:auto-entities
            card:
              type: entities
            filter:
              include:
                - entity_id: sensor.opnsense_wan_ipv6_prefix
              exclude:
                - state: /^Match/
            show_empty: false
          - type: custom:auto-entities
            card:
              type: entities
            filter:
              include:
                - entity_id: binary_sensor.192_168_0_127
              exclude:
                - state: 'on'
            show_empty: false
        visibility:
          - condition: state
            entity: input_boolean.sebastian_debug
            state: 'off'
      - type: custom:weather-chart-card
        entity: weather.forecast_daheim
        show_main: true
        show_temperature: true
        show_current_condition: true
        show_attributes: true
        show_time: true
        show_day: true
        show_date: true
        show_humidity: true
        show_pressure: true
        show_wind_direction: true
        show_wind_speed: true
        show_sun: true
        show_feels_like: true
        use_12hour_format: false
        icons_size: 25
        animated_icons: false
        icon_style: style2
        forecast:
          precipitation_type: rainfall
          labels_font_size: '11'
          precip_bar_size: '100'
          style: style2
          show_wind_forecast: true
          condition_icons: true
          round_temp: true
          type: daily
          disable_animation: false
        units:
          pressure: ''
          speed: ''
        show_time_seconds: false
      - type: vertical-stack
        title: Dach ☀️
        cards:
          - type: energy-usage-graph
          - type: custom:power-flow-card-plus
            entities:
              battery:
                entity: sensor.deye_sun_12k_battery_output_power
                state_of_charge: sensor.deye_sun_12k_battery_state_of_charge
                state_of_charge_unit_white_space: false
                show_state_of_charge: true
                color_value: true
                color_circle: true
                display_state: one_way_no_zero
                invert_state: false
                use_metadata: false
                display_zero_tolerance: 25
              grid:
                entity: sensor.leistung_netz_2
                display_state: two_way
                invert_state: false
                use_metadata: false
                color_value: true
                color_icon: true
                display_zero_tolerance: 10
              solar:
                entity: sensor.leistung_pv_2
                display_zero_state: true
                color_value: false
                color_icon: true
              home:
                subtract_individual: true
                use_metadata: false
              individual:
                - entity: sensor.tesla_ladeleistung
                  show_direction: false
                  secondary_info:
                    entity: sensor.tesla_soc
                    icon: mdi:battery-charging
                    display_zero: false
                    color_value: false
                    unit_of_measurement: '%'
                    unit_white_space: true
                  name: Tesla
                  icon: mdi:car
                  display_zero: false
                  color:
                    - 26
                    - 136
                    - 173
                  calculate_flow_rate: true
                  color_value: false
                  color_icon: true
                  unit_white_space: true
                  use_metadata: false
                - entity: sensor.heizstab
                  name: Warmwasser
                  icon: mdi:thermometer-water
                  display_zero: false
                  color:
                    - 255
                    - 0
                    - 0
                  calculate_flow_rate: true
                  unit_white_space: true
                  color_value: false
                  color_icon: true
                - entity: sensor.klima_shelly_power
                  name: Klima
                  icon: mdi:air-conditioner
                  display_zero: false
                  color:
                    - 84
                    - 239
                    - 1
                  calculate_flow_rate: true
                  unit_white_space: true
                  display_zero_tolerance: 10
                - entity: sensor.buro_pc_leistung
                  name: Büro PC
                  icon: mdi:laptop
                  display_zero_tolerance: 37
                  color_icon: true
                  calculate_flow_rate: true
                  inverted_animation: false
                  unit_white_space: true
                  color:
                    - 126
                    - 36
                    - 168
              fossil_fuel_percentage:
                entity: sensor.co2_signal_grid_fossil_fuel_percentage
                display_zero: true
                icon: ''
                color_icon: true
                name: CO₂-arm
            clickable_entities: true
            display_zero_lines:
              mode: transparency
              transparency: 90
              grey_color:
                - 189
                - 189
                - 189
            use_new_flow_rate_model: true
            w_decimals: 0
            min_flow_rate: 0
            max_expected_power: 12200
            min_expected_power: 0.01
            watt_threshold: 1000
            transparency_zero_lines: 0
            dashboard_link: ''
            disable_dots: true
            kw_decimals: 1
            max_flow_rate: 0
          - type: custom:energy-flow-card-plus
            entities:
              battery:
                entity:
                  consumption: sensor.deye_sun_12k_total_battery_discharge
                  production: sensor.deye_sun_12k_total_battery_charge
                state_of_charge: sensor.deye_sun_12k_battery_state_of_charge
                color_icon: true
                state_of_charge_unit_white_space: true
                invert_state: false
              grid:
                entity:
                  consumption: sensor.energiebezug_haus_bereinigt
                  production: sensor.energieeinspeisung_haus_bereinigt
                color_icon: true
              solar:
                entity: sensor.energieerzeugung_pv_bereinigt
                display_zero_state: true
                color_value: false
                color_icon: true
              home:
                subtract_individual: true
              fossil_fuel_percentage:
                show: true
                state_type: percentage
                color_icon: true
                color_value: false
              individual1:
                entity: sensor.tesla_energie_zuhause
                color_icon: true
                color:
                  - 26
                  - 136
                  - 173
                name: Tesla
                icon: mdi:car
                calculate_flow_rate: true
                secondary_info:
                  entity: sensor.tesla_soc
                  icon: mdi:battery-charging-high
                  display_zero: false
                  unit_of_measurement: '%'
              individual2:
                entity: sensor.heizstab_kombiniert
                name: Warmwasser
                color:
                  - 255
                  - 0
                  - 0
                color_icon: true
                icon: mdi:thermometer-water
            clickable_entities: true
            display_zero_lines: true
            use_new_flow_rate_model: true
            energy_date_selection: true
            wh_decimals: 1
            kwh_decimals: 0
            min_flow_rate: 0
            max_flow_rate: 0
            min_expected_energy: 10
            wh_kwh_threshold: 1000
            max_expected_energy: 120
          - type: horizontal-stack
            cards:
              - type: tile
                entity: sensor.energy_forecast_combined_today
                name: Forecast verbl.
                icon: mdi:solar-power-variant
              - type: tile
                entity: sensor.energy_forecast_combined_tomorrow
                name: Forecast morgen
                icon: mdi:solar-power-variant
        visibility:
          - condition: state
            entity: input_boolean.sebastian_debug
            state: 'off'
      - type: vertical-stack
        title: Büro 💼
        cards:
          - type: horizontal-stack
            cards:
              - type: custom:mushroom-climate-card
                entity: climate.esphome_buro_klima
                name: Klima
                fill_container: true
                hvac_modes:
                  - cool
                  - heat
                collapsible_controls: true
                show_temperature_control: true
                tap_action:
                  action: more-info
                double_tap_action:
                  action: toggle
              - type: tile
                entity: binary_sensor.buro_anwesenheit_presence
                name: Präsenz
                hide_state: true
          - type: horizontal-stack
            cards:
              - type: custom:mushroom-light-card
                entity: light.buro_deckenlicht
                name: Decke
                fill_container: true
              - type: custom:mushroom-light-card
                entity: light.buro_go
                name: Go
                fill_container: false
                use_light_color: true
                show_brightness_control: true
                collapsible_controls: true
                show_color_temp_control: true
                show_color_control: false
          - type: conditional
            conditions:
              - condition: state
                entity: binary_sensor.buro_anwesenheit_presence
                state_not: 'off'
            card:
              type: conditional
              conditions:
                - entity: media_player.buro
                  state_not: unavailable
              card:
                type: horizontal-stack
                cards:
                  - show_name: true
                    show_icon: true
                    type: button
                    tap_action:
                      action: toggle
                    entity: switch.star_fm
                    icon_height: 30px
                    name: Star FM
                  - show_name: true
                    show_icon: true
                    type: button
                    tap_action:
                      action: toggle
                    entity: switch.radio_bob
                    icon_height: 30px
                    name: Radio BOB
                    icon: mdi:radio
                    show_state: false
          - type: custom:auto-entities
            card:
              type: entities
            filter:
              include:
                - entity_id: media_player.buro
                  state: playing
                  options:
                    type: custom:mini-media-player
                    artwork: material
            show_empty: false
          - type: custom:auto-entities
            card:
              type: entities
            filter:
              include:
                - entity_id: media_player.jbl_bar_9_1_8879
                  state: playing
                  options:
                    type: custom:mini-media-player
                    artwork: material
            show_empty: false
          - type: custom:auto-entities
            card:
              type: entities
            filter:
              include:
                - entity_id: media_player.shield
                  options:
                    type: custom:mini-media-player
                    artwork: material
                    hide:
                      volume: true
                      prev: true
                      next: true
              exclude:
                - entity_id: media_player.shield
                  state: 'off'
            show_empty: false
          - type: conditional
            conditions:
              - condition: state
                entity: binary_sensor.buro_anwesenheit_presence
                state_not: 'off'
            card:
              type: conditional
              conditions:
                - entity: media_player.sebastian_pc
                  state_not: unavailable
              card:
                type: horizontal-stack
                cards:
                  - type: tile
                    entity: button.sebastian_pc_input_pc
                    name: Monitor PC
                    icon: mdi:monitor
                    tap_action:
                      action: toggle
                    icon_tap_action:
                      action: toggle
                    hide_state: true
                  - type: tile
                    entity: button.sebastian_pc_input_hp
                    name: Monitor HP
                    icon: mdi:monitor
                    tap_action:
                      action: toggle
                    icon_tap_action:
                      action: toggle
                    hide_state: true
                    show_entity_picture: false
                    vertical: false
          - type: conditional
            conditions:
              - condition: state
                entity: sensor.a1mini_0309da422201024_aktueller_arbeitsschritt
                state_not: idle
            card:
              type: vertical-stack
              cards:
                - camera_view: auto
                  type: picture-glance
                  title: A1 Mini
                  entities:
                    - entity: light.a1mini_0309da422201024_druckraumbeleuchtung
                    - entity: button.a1mini_0309da422201024_druckvorgang_anhalten
                    - entity: button.a1mini_0309da422201024_druckvorgang_beenden
                    - entity: button.a1mini_0309da422201024_druckvorgang_fortsetzen
                  image_entity: image.a1mini_0309da422201024_kamera
                  entity: sensor.a1mini_0309da422201024_aktueller_arbeitsschritt
                - type: horizontal-stack
                  cards:
                    - camera_view: auto
                      type: picture-glance
                      entities: []
                      image_entity: image.a1mini_0309da422201024_titelbild
                      entity: sensor.a1mini_0309da422201024_name_der_aufgabe
                    - type: entities
                      entities:
                        - entity: sensor.a1mini_0309da422201024_aktiver_slot
                          name: ' '
                          icon: mdi:chart-line-variant
                        - entity: sensor.a1mini_0309da422201024_name_der_aufgabe
                          name: ' '
                        - entity: sensor.a1mini_0309da422201024_nozzle_size
                          name: Düse
                        - entity: select.a1mini_0309da422201024_druckgeschwindigkeit
                          name: Geschwindigeit
                        - entity: sensor.a1mini_0309da422201024_druckfortschritt
                          name: Fortschritt
                          icon: mdi:progress-helper
.... will be continued in first comment

Javascript errors shown in your browser console/inspector

[Deprecation]-ms-high-constrast is in the process of being deprecated. Please see <URL> for tips on updating to the new Forced Colors Mode standard.
[Deprecation]-ms-high-constrast is in the process of being deprecated. Please see <URL> for tips on updating to the new Forced Colors Mode standard.
[Deprecation]-ms-high-constrast is in the process of being deprecated. Please see <URL> for tips on updating to the new Forced Colors Mode standard.
[Deprecation]-ms-high-constrast is in the process of being deprecated. Please see <URL> for tips on updating to the new Forced Colors Mode standard.
[Deprecation]-ms-high-constrast is in the process of being deprecated. Please see <URL> for tips on updating to the new Forced Colors Mode standard.
[Deprecation]-ms-high-constrast is in the process of being deprecated. Please see <URL> for tips on updating to the new Forced Colors Mode standard.
[Deprecation]-ms-high-constrast is in the process of being deprecated. Please see <URL> for tips on updating to the new Forced Colors Mode standard.
[Deprecation]-ms-high-constrast is in the process of being deprecated. Please see <URL> for tips on updating to the new Forced Colors Mode standard.
[Deprecation]-ms-high-constrast is in the process of being deprecated. Please see <URL> for tips on updating to the new Forced Colors Mode standard.
validate-condition.ts:317  Uncaught TypeError: t.reduce is not a function
    at p (validate-condition.ts:317:21)
    at validate-condition.ts:319:21
    at Array.reduce (<anonymous>)
    at p (validate-condition.ts:317:21)
    at validate-condition.ts:319:21
    at Array.reduce (<anonymous>)
    at p (validate-condition.ts:317:21)
    at HTMLElement.value (hui-conditional-base.ts:87:26)
    at HTMLElement.value (hui-conditional-base.ts:70:10)
    at t.connectedCallback (scoped-custom-element-registry.js:248:42)
image.a1mini_0309da422201024_kamera:1 

        Failed to load resource: the server responded with a status of 404 (Not Found)
image.a1mini_0309da422201024_titelbild:1 

        Failed to load resource: the server responded with a status of 404 (Not Found)
reactive-element.ts:1231  Uncaught (in promise) TypeError: t.reduce is not a function
    at p (validate-condition.ts:317:21)
    at validate-condition.ts:319:21
    at Array.reduce (<anonymous>)
    at p (validate-condition.ts:317:21)
    at validate-condition.ts:319:21
    at Array.reduce (<anonymous>)
    at p (validate-condition.ts:317:21)
    at HTMLElement.value (hui-conditional-base.ts:87:26)
    at HTMLElement.value (hui-conditional-base.ts:121:12)
    at HTMLElement.performUpdate (reactive-element.ts:1329:14)
validate-condition.ts:317  Uncaught TypeError: t.reduce is not a function
    at p (validate-condition.ts:317:21)
    at validate-condition.ts:319:21
    at Array.reduce (<anonymous>)
    at p (validate-condition.ts:317:21)
    at validate-condition.ts:319:21
    at Array.reduce (<anonymous>)
    at p (validate-condition.ts:317:21)
    at HTMLElement.value (hui-conditional-base.ts:87:26)
    at HTMLElement.value (hui-conditional-base.ts:70:10)
    at t.connectedCallback (scoped-custom-element-registry.js:248:42)
reactive-element.ts:1231  Uncaught (in promise) TypeError: t.reduce is not a function
    at p (validate-condition.ts:317:21)
    at validate-condition.ts:319:21
    at Array.reduce (<anonymous>)
    at p (validate-condition.ts:317:21)
    at validate-condition.ts:319:21
    at Array.reduce (<anonymous>)
    at p (validate-condition.ts:317:21)
    at HTMLElement.value (hui-conditional-base.ts:87:26)
    at HTMLElement.value (hui-conditional-base.ts:121:12)
    at HTMLElement.performUpdate (reactive-element.ts:1329:14)
reactive-element.ts:1231  Uncaught (in promise) TypeError: t.reduce is not a function
    at p (validate-condition.ts:317:21)
    at validate-condition.ts:319:21
    at Array.reduce (<anonymous>)
    at p (validate-condition.ts:317:21)
    at validate-condition.ts:319:21
    at Array.reduce (<anonymous>)
    at p (validate-condition.ts:317:21)
    at HTMLElement.value (hui-conditional-base.ts:87:26)
    at HTMLElement.value (hui-conditional-base.ts:121:12)
    at HTMLElement.performUpdate (reactive-element.ts:1329:14)
validate-condition.ts:317  Uncaught (in promise) TypeError: t.reduce is not a function
    at p (validate-condition.ts:317:21)
    at validate-condition.ts:319:21
    at Array.reduce (<anonymous>)
    at p (validate-condition.ts:317:21)
    at validate-condition.ts:319:21
    at Array.reduce (<anonymous>)
    at p (validate-condition.ts:317:21)
    at HTMLElement.value (hui-conditional-base.ts:87:26)
    at HTMLElement.value (hui-conditional-base.ts:121:12)
    at HTMLElement.performUpdate (reactive-element.ts:1329:14)
validate-condition.ts:317  Uncaught (in promise) TypeError: t.reduce is not a function
    at p (validate-condition.ts:317:21)
    at validate-condition.ts:319:21
    at Array.reduce (<anonymous>)
    at p (validate-condition.ts:317:21)
    at validate-condition.ts:319:21
    at Array.reduce (<anonymous>)
    at p (validate-condition.ts:317:21)
    at HTMLElement.value (hui-conditional-base.ts:87:26)
    at HTMLElement.value (hui-conditional-base.ts:121:12)
    at HTMLElement.performUpdate (reactive-element.ts:1329:14)
validate-condition.ts:317  Uncaught (in promise) TypeError: t.reduce is not a function
    at p (validate-condition.ts:317:21)
    at validate-condition.ts:319:21
    at Array.reduce (<anonymous>)
    at p (validate-condition.ts:317:21)
    at validate-condition.ts:319:21
    at Array.reduce (<anonymous>)
    at p (validate-condition.ts:317:21)
    at HTMLElement.value (hui-conditional-base.ts:87:26)
    at HTMLElement.value (hui-conditional-base.ts:121:12)
    at HTMLElement.performUpdate (reactive-element.ts:1329:14)
validate-condition.ts:317  Uncaught (in promise) TypeError: t.reduce is not a function
    at p (validate-condition.ts:317:21)
    at validate-condition.ts:319:21
    at Array.reduce (<anonymous>)
    at p (validate-condition.ts:317:21)
    at validate-condition.ts:319:21
    at Array.reduce (<anonymous>)
    at p (validate-condition.ts:317:21)
    at HTMLElement.value (hui-conditional-base.ts:87:26)
    at HTMLElement.value (hui-conditional-base.ts:121:12)
    at HTMLElement.performUpdate (reactive-element.ts:1329:14)
validate-condition.ts:317  Uncaught (in promise) TypeError: t.reduce is not a function
    at p (validate-condition.ts:317:21)
    at validate-condition.ts:319:21
    at Array.reduce (<anonymous>)
    at p (validate-condition.ts:317:21)
    at validate-condition.ts:319:21
    at Array.reduce (<anonymous>)
    at p (validate-condition.ts:317:21)
    at HTMLElement.value (hui-conditional-base.ts:87:26)
    at HTMLElement.value (hui-conditional-base.ts:121:12)
    at HTMLElement.performUpdate (reactive-element.ts:1329:14)
validate-condition.ts:317  Uncaught (in promise) TypeError: t.reduce is not a function
    at p (validate-condition.ts:317:21)
    at validate-condition.ts:319:21
    at Array.reduce (<anonymous>)
    at p (validate-condition.ts:317:21)
    at validate-condition.ts:319:21
    at Array.reduce (<anonymous>)
    at p (validate-condition.ts:317:21)
    at HTMLElement.value (hui-conditional-base.ts:87:26)
    at HTMLElement.value (hui-conditional-base.ts:121:12)
    at HTMLElement.performUpdate (reactive-element.ts:1329:14)
validate-condition.ts:317  Uncaught (in promise) TypeError: t.reduce is not a function
    at p (validate-condition.ts:317:21)
    at validate-condition.ts:319:21
    at Array.reduce (<anonymous>)
    at p (validate-condition.ts:317:21)
    at validate-condition.ts:319:21
    at Array.reduce (<anonymous>)
    at p (validate-condition.ts:317:21)
    at HTMLElement.value (hui-conditional-base.ts:87:26)
    at HTMLElement.value (hui-conditional-base.ts:121:12)
    at HTMLElement.performUpdate (reactive-element.ts:1329:14)
validate-condition.ts:317  Uncaught (in promise) TypeError: t.reduce is not a function
    at p (validate-condition.ts:317:21)
    at validate-condition.ts:319:21
    at Array.reduce (<anonymous>)
    at p (validate-condition.ts:317:21)
    at validate-condition.ts:319:21
    at Array.reduce (<anonymous>)
    at p (validate-condition.ts:317:21)
    at HTMLElement.value (hui-conditional-base.ts:87:26)
    at HTMLElement.value (hui-conditional-base.ts:121:12)
    at HTMLElement.performUpdate (reactive-element.ts:1329:14)
validate-condition.ts:317  Uncaught (in promise) TypeError: t.reduce is not a function
    at p (validate-condition.ts:317:21)
    at validate-condition.ts:319:21
    at Array.reduce (<anonymous>)
    at p (validate-condition.ts:317:21)
    at validate-condition.ts:319:21
    at Array.reduce (<anonymous>)
    at p (validate-condition.ts:317:21)
    at HTMLElement.value (hui-conditional-base.ts:87:26)
    at HTMLElement.value (hui-conditional-base.ts:121:12)
    at HTMLElement.performUpdate (reactive-element.ts:1329:14)
validate-condition.ts:317  Uncaught (in promise) TypeError: t.reduce is not a function
    at p (validate-condition.ts:317:21)
    at validate-condition.ts:319:21
    at Array.reduce (<anonymous>)
    at p (validate-condition.ts:317:21)
    at validate-condition.ts:319:21
    at Array.reduce (<anonymous>)
    at p (validate-condition.ts:317:21)
    at HTMLElement.value (hui-conditional-base.ts:87:26)
    at HTMLElement.value (hui-conditional-base.ts:121:12)
    at HTMLElement.performUpdate (reactive-element.ts:1329:14)
validate-condition.ts:317  Uncaught (in promise) TypeError: t.reduce is not a function
    at p (validate-condition.ts:317:21)
    at validate-condition.ts:319:21
    at Array.reduce (<anonymous>)
    at p (validate-condition.ts:317:21)
    at validate-condition.ts:319:21
    at Array.reduce (<anonymous>)
    at p (validate-condition.ts:317:21)
    at HTMLElement.value (hui-conditional-base.ts:87:26)
    at HTMLElement.value (hui-conditional-base.ts:121:12)
    at HTMLElement.performUpdate (reactive-element.ts:1329:14)
validate-condition.ts:317  Uncaught (in promise) TypeError: t.reduce is not a function
    at p (validate-condition.ts:317:21)
    at validate-condition.ts:319:21
    at Array.reduce (<anonymous>)
    at p (validate-condition.ts:317:21)
    at validate-condition.ts:319:21
    at Array.reduce (<anonymous>)
    at p (validate-condition.ts:317:21)
    at HTMLElement.value (hui-conditional-base.ts:87:26)
    at HTMLElement.value (hui-conditional-base.ts:121:12)
    at HTMLElement.performUpdate (reactive-element.ts:1329:14)
validate-condition.ts:317  Uncaught (in promise) TypeError: t.reduce is not a function
    at p (validate-condition.ts:317:21)
    at validate-condition.ts:319:21
    at Array.reduce (<anonymous>)
    at p (validate-condition.ts:317:21)
    at validate-condition.ts:319:21
    at Array.reduce (<anonymous>)
    at p (validate-condition.ts:317:21)
    at HTMLElement.value (hui-conditional-base.ts:87:26)
    at HTMLElement.value (hui-conditional-base.ts:121:12)
    at HTMLElement.performUpdate (reactive-element.ts:1329:14)
validate-condition.ts:317  Uncaught (in promise) TypeError: t.reduce is not a function
    at p (validate-condition.ts:317:21)
    at validate-condition.ts:319:21
    at Array.reduce (<anonymous>)
    at p (validate-condition.ts:317:21)
    at validate-condition.ts:319:21
    at Array.reduce (<anonymous>)
    at p (validate-condition.ts:317:21)
    at HTMLElement.value (hui-conditional-base.ts:87:26)
    at HTMLElement.value (hui-conditional-base.ts:121:12)
    at HTMLElement.performUpdate (reactive-element.ts:1329:14)
validate-condition.ts:317  Uncaught (in promise) TypeError: t.reduce is not a function
    at p (validate-condition.ts:317:21)
    at validate-condition.ts:319:21
    at Array.reduce (<anonymous>)
    at p (validate-condition.ts:317:21)
    at validate-condition.ts:319:21
    at Array.reduce (<anonymous>)
    at p (validate-condition.ts:317:21)
    at HTMLElement.value (hui-conditional-base.ts:87:26)
    at HTMLElement.value (hui-conditional-base.ts:121:12)
    at HTMLElement.performUpdate (reactive-element.ts:1329:14)
validate-condition.ts:317  Uncaught (in promise) TypeError: t.reduce is not a function
    at p (validate-condition.ts:317:21)
    at validate-condition.ts:319:21
    at Array.reduce (<anonymous>)
    at p (validate-condition.ts:317:21)
    at validate-condition.ts:319:21
    at Array.reduce (<anonymous>)
    at p (validate-condition.ts:317:21)
    at HTMLElement.value (hui-conditional-base.ts:87:26)
    at HTMLElement.value (hui-conditional-base.ts:121:12)
    at HTMLElement.performUpdate (reactive-element.ts:1329:14)
validate-condition.ts:317  Uncaught (in promise) TypeError: t.reduce is not a function
    at p (validate-condition.ts:317:21)
    at validate-condition.ts:319:21
    at Array.reduce (<anonymous>)
    at p (validate-condition.ts:317:21)
    at validate-condition.ts:319:21
    at Array.reduce (<anonymous>)
    at p (validate-condition.ts:317:21)
    at HTMLElement.value (hui-conditional-base.ts:87:26)
    at HTMLElement.value (hui-conditional-base.ts:121:12)
    at HTMLElement.performUpdate (reactive-element.ts:1329:14)
validate-condition.ts:317  Uncaught (in promise) TypeError: t.reduce is not a function
    at p (validate-condition.ts:317:21)
    at validate-condition.ts:319:21
    at Array.reduce (<anonymous>)
    at p (validate-condition.ts:317:21)
    at validate-condition.ts:319:21
    at Array.reduce (<anonymous>)
    at p (validate-condition.ts:317:21)
    at HTMLElement.value (hui-conditional-base.ts:87:26)
    at HTMLElement.value (hui-conditional-base.ts:121:12)
    at HTMLElement.performUpdate (reactive-element.ts:1329:14)
reactive-element.ts:1231  Uncaught (in promise) TypeError: t.reduce is not a function
    at p (validate-condition.ts:317:21)
    at validate-condition.ts:319:21
    at Array.reduce (<anonymous>)
    at p (validate-condition.ts:317:21)
    at validate-condition.ts:319:21
    at Array.reduce (<anonymous>)
    at p (validate-condition.ts:317:21)
    at HTMLElement.value (hui-conditional-base.ts:87:26)
    at HTMLElement.value (hui-conditional-base.ts:121:12)
    at HTMLElement.performUpdate (reactive-element.ts:1329:14)
validate-condition.ts:317  Uncaught (in promise) TypeError: t.reduce is not a function
    at p (validate-condition.ts:317:21)
    at validate-condition.ts:319:21
    at Array.reduce (<anonymous>)
    at p (validate-condition.ts:317:21)
    at validate-condition.ts:319:21
    at Array.reduce (<anonymous>)
    at p (validate-condition.ts:317:21)
    at HTMLElement.value (hui-conditional-base.ts:87:26)
    at HTMLElement.value (hui-conditional-base.ts:121:12)
    at HTMLElement.performUpdate (reactive-element.ts:1329:14)
validate-condition.ts:317  Uncaught (in promise) TypeError: t.reduce is not a function
    at p (validate-condition.ts:317:21)
    at validate-condition.ts:319:21
    at Array.reduce (<anonymous>)
    at p (validate-condition.ts:317:21)
    at validate-condition.ts:319:21
    at Array.reduce (<anonymous>)
    at p (validate-condition.ts:317:21)
    at HTMLElement.value (hui-conditional-base.ts:87:26)
    at HTMLElement.value (hui-conditional-base.ts:121:12)
    at HTMLElement.performUpdate (reactive-element.ts:1329:14)
_$Ej @ reactive-element.ts:1231
await in _$Ej (asynchron)
requestUpdate @ reactive-element.ts:1208
set @ reactive-element.ts:726
value @ hui-card.ts:164
performUpdate @ reactive-element.ts:1329
scheduleUpdate @ reactive-element.ts:1261
_$Ej @ reactive-element.ts:1233
await in _$Ej (asynchron)
requestUpdate @ reactive-element.ts:1208
set @ reactive-element.ts:726
(anonym) @ hui-stack-card.ts:56
value @ hui-stack-card.ts:55
performUpdate @ reactive-element.ts:1329
scheduleUpdate @ reactive-element.ts:1261
_$Ej @ reactive-element.ts:1233
await in _$Ej (asynchron)
requestUpdate @ reactive-element.ts:1208
set @ reactive-element.ts:726
value @ hui-card.ts:164
performUpdate @ reactive-element.ts:1329
scheduleUpdate @ reactive-element.ts:1261
_$Ej @ reactive-element.ts:1233
await in _$Ej (asynchron)
requestUpdate @ reactive-element.ts:1208
set @ reactive-element.ts:726
(anonym) @ hui-view.ts:180
value @ hui-view.ts:179
performUpdate @ reactive-element.ts:1329
scheduleUpdate @ reactive-element.ts:1261
_$Ej @ reactive-element.ts:1233
await in _$Ej (asynchron)
requestUpdate @ reactive-element.ts:1208
set @ reactive-element.ts:726
value @ hui-root.ts:535
_$AE @ reactive-element.ts:1378
performUpdate @ reactive-element.ts:1343
scheduleUpdate @ reactive-element.ts:1261
_$Ej @ reactive-element.ts:1233
await in _$Ej (asynchron)
requestUpdate @ reactive-element.ts:1208
set @ reactive-element.ts:726
j @ lit-html.ts:1883
_$AI @ lit-html.ts:1825
v @ lit-html.ts:1192
g @ lit-html.ts:1540
_$AI @ lit-html.ts:1384
q @ lit-html.ts:2183
update @ lit-element.ts:165
performUpdate @ reactive-element.ts:1329
scheduleUpdate @ reactive-element.ts:1261
_$Ej @ reactive-element.ts:1233
await in _$Ej (asynchron)
requestUpdate @ reactive-element.ts:1208
set @ reactive-element.ts:726
value @ partial-panel-resolver.ts:101
value @ hass-router-page.ts:91
performUpdate @ reactive-element.ts:1329
scheduleUpdate @ reactive-element.ts:1261
_$Ej @ reactive-element.ts:1233
await in _$Ej (asynchron)
requestUpdate @ reactive-element.ts:1208
set @ reactive-element.ts:726
j @ lit-html.ts:1883
_$AI @ lit-html.ts:1825
v @ lit-html.ts:1192
g @ lit-html.ts:1540
_$AI @ lit-html.ts:1384
q @ lit-html.ts:2183
update @ lit-element.ts:165
performUpdate @ reactive-element.ts:1329
scheduleUpdate @ reactive-element.ts:1261
_$Ej @ reactive-element.ts:1233
await in _$Ej (asynchron)
requestUpdate @ reactive-element.ts:1208
set @ reactive-element.ts:726
j @ lit-html.ts:1883
_$AI @ lit-html.ts:1825
v @ lit-html.ts:1192
g @ lit-html.ts:1540
_$AI @ lit-html.ts:1384
q @ lit-html.ts:2183
update @ lit-element.ts:165
performUpdate @ reactive-element.ts:1329
scheduleUpdate @ reactive-element.ts:1261
_$Ej @ reactive-element.ts:1233
await in _$Ej (asynchron)
requestUpdate @ reactive-element.ts:1208
set @ reactive-element.ts:726
value @ hass-base-mixin.ts:56
_updateHass @ context-mixin.ts:102
(anonym) @ connection-mixin.ts:229
r @ store.js:19
(anonym) @ entities.js:74
e.subscribeMessage.type @ entities.js:76
(anonym) @ connection.js:23
_handleMessage @ connection.js:15
5 weitere Frames anzeigen
Weniger anzeigen
validate-condition.ts:317  Uncaught (in promise) TypeError: t.reduce is not a function
    at p (validate-condition.ts:317:21)
    at validate-condition.ts:319:21
    at Array.reduce (<anonymous>)
    at p (validate-condition.ts:317:21)
    at validate-condition.ts:319:21
    at Array.reduce (<anonymous>)
    at p (validate-condition.ts:317:21)
    at HTMLElement.value (hui-conditional-base.ts:87:26)
    at HTMLElement.value (hui-conditional-base.ts:121:12)
    at HTMLElement.performUpdate (reactive-element.ts:1329:14)
p @ validate-condition.ts:317
(anonym) @ validate-condition.ts:319
p @ validate-condition.ts:317
(anonym) @ validate-condition.ts:319
p @ validate-condition.ts:317
value @ hui-conditional-base.ts:87
value @ hui-conditional-base.ts:121
performUpdate @ reactive-element.ts:1329
scheduleUpdate @ reactive-element.ts:1261
_$Ej @ reactive-element.ts:1233
await in _$Ej (asynchron)
requestUpdate @ reactive-element.ts:1208
set @ reactive-element.ts:726
value @ hui-card.ts:164
performUpdate @ reactive-element.ts:1329
scheduleUpdate @ reactive-element.ts:1261
_$Ej @ reactive-element.ts:1233
await in _$Ej (asynchron)
requestUpdate @ reactive-element.ts:1208
set @ reactive-element.ts:726
(anonym) @ hui-stack-card.ts:56
value @ hui-stack-card.ts:55
performUpdate @ reactive-element.ts:1329
scheduleUpdate @ reactive-element.ts:1261
_$Ej @ reactive-element.ts:1233
await in _$Ej (asynchron)
requestUpdate @ reactive-element.ts:1208
set @ reactive-element.ts:726
value @ hui-card.ts:164
performUpdate @ reactive-element.ts:1329
scheduleUpdate @ reactive-element.ts:1261
_$Ej @ reactive-element.ts:1233
await in _$Ej (asynchron)
requestUpdate @ reactive-element.ts:1208
set @ reactive-element.ts:726
(anonym) @ hui-view.ts:180
value @ hui-view.ts:179
performUpdate @ reactive-element.ts:1329
scheduleUpdate @ reactive-element.ts:1261
_$Ej @ reactive-element.ts:1233
await in _$Ej (asynchron)
requestUpdate @ reactive-element.ts:1208
set @ reactive-element.ts:726
value @ hui-root.ts:535
_$AE @ reactive-element.ts:1378
performUpdate @ reactive-element.ts:1343
scheduleUpdate @ reactive-element.ts:1261
_$Ej @ reactive-element.ts:1233
await in _$Ej (asynchron)
....

Additional information

No response

b1ggi commented 3 months ago

Rest of the Dashboard yaml:


                  mushroom: null
                  entity: sensor.a1mini_0309da422201024_druckstatus
                  name: Verbleibend
                  icon: mdi:printer-3d-off
                  active_state: Running
                  active_icon: mdi:printer-3d
                  end_time:
                    entity: sensor.a1mini_0309da422201024_vrs_fertigstellung
                  text_width: 3.5em
                  bar_width: calc(70% - 10em)
                  resolution: automatic
                  bar_radius: 2em
      - type: vertical-stack
        title: Christopher Schlafzimmer 🛏️
        cards:
          - type: horizontal-stack
            cards:
              - type: custom:mushroom-light-card
                entity: light.christopher_schlafzimmer_ambiance
                name: Nachtlicht
                fill_container: true
                show_brightness_control: true
                collapsible_controls: true
                show_color_temp_control: true
                show_color_control: false
                use_light_color: true
              - type: entities
                entities:
                  - entity: input_datetime.christopher_lichtwecker
                    name: ' Weck'
          - type: horizontal-stack
            cards:
              - type: custom:mushroom-entity-card
                entity: automation.christopher_heizung
                name: Heizungsautomation
                tap_action:
                  action: toggle
              - type: custom:mushroom-climate-card
                entity: climate.christopher_schlafzimmer
                name: Heizkörper
                fill_container: true
                hvac_modes: []
                show_temperature_control: true
                collapsible_controls: true
          - type: conditional
            conditions:
              - condition: state
                entity: binary_sensor.christopher_schlafzimmer_fenster_sensor_contact
                state_not: 'off'
            card:
              type: tile
              entity: binary_sensor.christopher_schlafzimmer_fenster_sensor_contact
              name: Fenster
      - type: conditional
        conditions:
          - condition: state
            entity: binary_sensor.felix_fenster_sensor_contact
            state_not: 'off'
        card:
          type: vertical-stack
          title: Felix Schlafzimmer 🐠
          cards:
            - type: tile
              entity: binary_sensor.felix_fenster_sensor_contact
              name: Fenster
      - type: vertical-stack
        title: Flure & Co 🏘️
        cards:
          - type: conditional
            conditions:
              - condition: or
                conditions:
                  - conditions: state
                    entity: light.bad_og_licht
                    state: 'on'
                  - conditions: state
                    entity: light.flur_eg_salzkristalllampe
                    state: 'on'
                  - conditions: state
                    entity: light.flur_og_salzkristalllampe
                    state: 'on'
                  - conditions: state
                    entity: light.treppenhaus_licht
                    state: 'on'
            card:
              type: horizontal-stack
              cards:
                - type: tile
                  entity: light.bad_og_licht
                  name: Bad OG
                  vertical: true
                  hide_state: true
                - type: tile
                  entity: light.flur_eg_salzkristalllampe
                  name: Flur EG
                  vertical: true
                  hide_state: true
                - type: tile
                  entity: light.flur_og_salzkristalllampe
                  name: Flur OG
                  vertical: true
                  hide_state: true
                - type: tile
                  entity: light.treppenhaus_licht
                  name: Treppe
                  vertical: true
                  hide_state: true
          - type: horizontal-stack
            cards:
              - type: tile
                entity: sensor.flur_eg_bewegungsmelder_links_temperature
                name: Flur EG
                vertical: true
              - type: tile
                entity: sensor.flur_og_bewegungsmelder_vorne_temperature
                name: Flur OG
                vertical: true
              - type: tile
                entity: sensor.treppenhaus_bewegungsmelder_oben_temperature
                name: Treppe
                vertical: true
          - type: conditional
            conditions:
              - condition: or
                conditions:
                  - condition: state
                    entity: vacuum.staubi
                    state_not: docked
                  - condition: numeric_state
                    entity: sensor.staubi_battery_level
                    below: 100
                  - condition: state
                    entity: vacuum.moppi
                    state_not: docked
                  - condition: numeric_state
                    entity: sensor.moppi_battery_level
                    below: 100
                  - condition: state
                    entity: binary_sensor.staubi_bin_full
                    state: 'on'
            card:
              type: custom:auto-entities
              card:
                type: entities
                state_color: true
              filter:
                include:
                  - entity_id: vacuum.staubi
                  - entity_id: binary_sensor.staubi_bin_full
                    state: 'on'
                  - entity_id: sensor.staubi_battery_level
                    options:
                      name: Staubi Akkustand
                      state_color: true
                  - type: divider
                  - entity_id: vacuum.moppi
                  - entity_id: sensor.moppi_battery_level
                exclude: []
      - type: vertical-stack
        title: Garage 🚗
        cards:
          - type: horizontal-stack
            cards:
              - type: tile
                entity: sensor.tesla_soc
                icon: mdi:battery
                name: Tesla-SoC
              - type: custom:mushroom-climate-card
                entity: climate.teslarossa_hvac_climate_system
                name: Tesla Klima
                fill_container: false
                show_temperature_control: true
                collapsible_controls: true
                hvac_modes: []
      - type: conditional
        conditions:
          - condition: or
            conditions:
              - condition: state
                entity: binary_sensor.kuche_anwesenheit_presence
                state_not: 'off'
              - condition: state
                entity: sensor.011090523811006843_bsh_common_option_programprogress
                state_not: unavailable
        card:
          type: vertical-stack
          title: Küche 🔪
          cards:
            - type: horizontal-stack
              cards:
                - type: conditional
                  conditions:
                    - entity: binary_sensor.kuche_anwesenheit_presence
                      state_not: 'off'
                  card:
                    type: tile
                    entity: binary_sensor.kuche_anwesenheit_presence
                    name: Präsenz
                    hide_state: true
                - type: conditional
                  conditions:
                    - condition: or
                      conditions:
                        - entity: >-
                            sensor.011090523811006843_bsh_common_status_operationstate
                          state: BSH.Common.EnumType.OperationState.Run
                        - entity: 1006843_bsh_common_status_operationstate
                          state: BSH.Common.EnumType.OperationState.DelayedStart
                  card:
                    type: custom:timer-bar-card
                    mushroom: null
                    entity: sensor.011090523811006843_bsh_common_status_operationstate
                    name: Spüli
                    active_state: BSH.Common.EnumType.OperationState.Run
                    active_icon: mdi:dishwasher
                    end_time:
                      entity: >-
                        sensor.011090523811006843_bsh_common_option_remainingprogramtime
                    text_width: 3.5em
                    bar_width: calc(70% - 10em)
                    resolution: automatic
                    bar_radius: 2em
                    translation:
                      BSH.Common.EnumType.OperationState.DelayedStart: Verzögert
      - type: vertical-stack
        title: Partykeller 🍺
        cards:
          - type: horizontal-stack
            cards:
              - type: custom:mushroom-light-card
                entity: light.partykeller_white
                name: Decke
                show_brightness_control: false
              - type: tile
                entity: binary_sensor.partykeller_tur_sensor_contact
                name: Tür
          - type: horizontal-stack
            cards:
              - type: custom:mushroom-climate-card
                entity: climate.trv_partykeller
                name: Thermostat
                show_temperature_control: true
                collapsible_controls: true
                fill_container: false
                hvac_modes: []
              - type: tile
                entity: binary_sensor.partykeller_fenster_sensor_contact
                name: Fenster
                icon: mdi:window-closed-variant
          - type: conditional
            conditions:
              - condition: state
                entity: binary_sensor.partykeller_anwesenheit_presence
                state_not: 'off'
            card:
              type: vertical-stack
              cards:
                - type: tile
                  entity: binary_sensor.partykeller_anwesenheit_presence
                  name: Präsenz
                  hide_state: true
      - type: horizontal-stack
        title: Schlafzimmer 🛌🏻 👓
        cards:
          - type: vertical-stack
            cards:
              - type: custom:mushroom-climate-card
                entity: climate.schlafzimmer
                name: Thermostat
                fill_container: true
                show_temperature_control: true
                collapsible_controls: true
                hvac_modes:
                  - heat
                  - 'off'
              - type: custom:mushroom-entity-card
                entity: automation.schlafzimmer_heizen
                name: Heizungsautomation
                fill_container: true
                tap_action:
                  action: toggle
              - type: conditional
                conditions:
                  - condition: state
                    entity: binary_sensor.esphome_schlafzimmer_presence
                    state_not: 'off'
                card:
                  type: tile
                  entity: binary_sensor.esphome_schlafzimmer_presence
                  name: Präsenz
                  hide_state: true
          - type: vertical-stack
            cards:
              - type: custom:mushroom-light-card
                entity: light.schlafzimmer_licht
                name: Licht
                fill_container: true
                show_brightness_control: true
                collapsible_controls: true
                use_light_color: true
                show_color_control: false
                show_color_temp_control: false
              - type: custom:mushroom-entity-card
                entity: input_datetime.wecker
                name: Nächster Wecker
                icon_color: deep-purple
                fill_container: true
                icon: mdi:alarm-light
      - type: conditional
        conditions:
          - condition: or
            conditions:
              - condition: numeric_state
                entity: sensor.waschmaschine_current_consumption
                above: 0
              - condition: numeric_state
                entity: sensor.trockner_power
                above: 0
        card:
          type: horizontal-stack
          title: Waschküche 🧦
          cards:
            - type: custom:mini-graph-card
              entities:
                - entity: sensor.waschmaschine_current_consumption
                  name: Waschmaschine
                  show_state: true
                - entity: sensor.trockner_power
                  name: Trockner
                  show_state: true
              hours_to_show: 4
              points_per_hour: 20
              show:
                icon: false
                name: false
              animate: true
              decimals: 0
              hour24: true
      - type: vertical-stack
        title: Windfang 🚪
        cards:
          - type: horizontal-stack
            cards:
              - type: custom:auto-entities
                show_empty: false
                card:
                  type: tile
                  entity: switch.bierautomat
                filter:
                  include:
                    - entity_id: switch.bierautomat
                      state: 'on'
              - type: custom:mushroom-template-card
                primary: Haustür
                secondary: >-
                  Klingel: {{ state_attr('automation.klingel_benachrichtigung',
                  'last_triggered') | as_timestamp | timestamp_custom('%a %d.%m
                  %-H:%M') }}
                icon: mdi:door-closed-lock
                badge_icon: ''
                icon_color: '#00000'
                tap_action:
                  action: toggle
                entity: input_button.turoffner
                multiline_secondary: false
          - type: horizontal-stack
            cards:
              - type: tile
                show_entity_picture: false
                vertical: false
                entity: scene.bierautomat_immer_an
                name: Imm. An
                icon: mdi:power-plug
                hide_state: true
              - type: tile
                entity: scene.bierautomat_immer_aus
                name: Imm. Aus
                icon: mdi:power-plug-off
                hide_state: true
              - type: tile
                entity: scene.bierautomat_pv_modus
                name: PV Modus
                icon: mdi:solar-power-variant-outline
                hide_state: true
      - type: vertical-stack
        title: Wohnzimmer 🛋️
        cards:
          - type: horizontal-stack
            cards:
              - type: custom:mushroom-climate-card
                entity: climate.wohnzimmer
                name: Thermostat
                fill_container: true
                show_temperature_control: true
                collapsible_controls: true
              - type: custom:mushroom-light-card
                entity: light.terrasse_white
                name: Terrasse
                fill_container: true
                use_light_color: false
                show_brightness_control: true
                collapsible_controls: true
          - type: horizontal-stack
            cards:
              - type: custom:mushroom-entity-card
                entity: automation.wohnzimmer_heizautomation
                name: Heizungsautomation
                tap_action:
                  action: toggle
                fill_container: true
              - type: tile
                entity: binary_sensor.wohnzimmer_anwesenheit_presence
                name: Präsenz
                hide_state: true
          - type: custom:auto-entities
            card:
              type: entities
            filter:
              include:
                - entity_id: media_player.familienzimmer
                  options:
                    type: custom:mini-media-player
                    artwork: material
                    hide:
                      volume: true
                      prev: true
                      next: true
              exclude:
                - entity_id: media_player.familienzimmer
                  state: 'off'
                - entity_id: media_player.familienzimmer
                  state: unavailable
              show_empty: false
            show_empty: false
      - type: vertical-stack
        title: Werkstatt 🔧
        cards:
          - type: entities
            entities:
              - entity: sensor.system_monitor_festplatte_frei
                name: SSD frei
              - entity: >-
                  sensor.fw_lan_b1ggi_ovh_interface_wan_outbytes_kilobytes_per_second
                name: Upload
              - entity: >-
                  sensor.fw_lan_b1ggi_ovh_interface_wan_inbytes_kilobytes_per_second
                name: Download
              - entity: sensor.b1ggi_ovh
              - entity: sensor.b1ggi_ovh_ipv6
              - entity: sensor.cert_expiry_timestamp_b1ggi_ovh
                name: SSL b1ggi.ovh
              - entity: sensor.youtube_subscriber_count
                name: b1ggi Subscriber
              - entity: sensor.youtube_view_count
                name: b1ggi Views
            state_color: true
      - type: vertical-stack
        cards:
          - type: custom:auto-entities
            filter:
              include:
                - entity_id: media_player.plex_*
                  options:
                    type: custom:mini-media-player
                    artwork: cover
                    hide:
                      power: true
                      volume: true
                      play_pause: true
                      icon: true
              exclude:
                - entity_id: media_player.plex_*
                  state: unavailable
                - entity_id: media_player.plex_*
                  state: idle
            card:
              type: entities
            show_empty: false
      - type: map
        entities:
          - entity: device_tracker.sebastian_iphone_2
          - entity: device_tracker.teslarossa_location_tracker
          - entity: person.christopher
        dark_mode: true
        auto_fit: false
        geo_location_sources: []
        hours_to_show: 8
  - type: sections
    max_columns: 2
    title: BMS
    path: BMS
    sections:
      - type: grid
        cards:
          - type: vertical-stack
            title: JK-BMS Top
            cards:
              - type: custom:stack-in-card
                keep:
                  margin: false
                  box_shadow: false
                  background: false
                cards:
                  - type: grid
                    square: false
                    columns: 1
                    cards:
                      - type: markdown
                        content: >-
                          <center>Time:&nbsp;<b><font color=#3090C7>{{
                          states('sensor.jk_bms_bms0_total_runtime_formatted') |
                          upper }}</font>
                  - type: grid
                    square: false
                    columns: 3
                    cards:
                      - type: markdown
                        content: >-
                          <center>Charge:&nbsp;<b>{% if
                          states('switch.jk_bms_bms0_charging') == 'on' %} <font
                          color=#41CD52>{{ states('switch.jk_bms_bms0_charging')
                          | upper }}</font> {% else %} <font color=red>{{
                          states('switch.jk_bms_bms0_charging') | upper
                          }}</font> {% endif %} 
                      - type: markdown
                        content: >-
                          <center>Discharge:&nbsp;<b> {% if
                          states('switch.jk_bms_bms0_discharging') == 'on' %}
                          <font color=#41CD52>{{
                          states('switch.jk_bms_bms0_discharging') | upper
                          }}</font> {% else %} <font color=red>{{
                          states('switch.jk_bms_bms0_discharging') | upper
                          }}</font> {% endif %} 
                      - type: markdown
                        content: >-
                          <center>Balance:&nbsp;<b> {% if
                          states('switch.jk_bms_bms0_balancer') == 'on' %} <font
                          color=#41CD52>{{ states('switch.jk_bms_bms0_balancer')
                          | upper }}</font> {% else %} <font color=red>{{
                          states('switch.jk_bms_bms0_balancer') | upper
                          }}</font> {% endif %} 
              - type: custom:stack-in-card
                keep:
                  margin: false
                  box_shadow: false
                  background: false
                cards:
                  - type: grid
                    square: false
                    columns: 2
                    cards:
                      - type: markdown
                        content: >-
                          <center><b><font color=#41CD52 size=6>{{
                          states('sensor.jk_bms_bms0_total_voltage') }}
                          V</font></b><br> Battery Power:&nbsp;&nbsp;<font
                          color=#41CD52>{{ states('sensor.jk_bms_bms0_power') }}
                          W</font><br> Battery Capacity:&nbsp;&nbsp;<font
                          color=#41CD52>{{
                          states('sensor.jk_bms_bms0_total_battery_capacity_setting')
                          }} Ah</font><br> Cycle Capacity:&nbsp;&nbsp;<font
                          color=#41CD52>{{
                          states('sensor.jk_bms_bms0_total_charging_cycle_capacity') 
                          | round(2)}} Ah</font><br> Ave. Cell
                          Vol.:&nbsp;&nbsp;<font color=#41CD52>{{
                          states('sensor.jk_bms_bms0_average_cell_voltage') }}
                          V</font><br> Balance Cur.:&nbsp;&nbsp;<font
                          color=#41CD52>{{
                          states('sensor.jk_bms_bms0_balancing_current') }}
                          A</font><br> Battery T1:&nbsp;&nbsp;<font
                          color=#41CD52>{{
                          states('sensor.jk_bms_bms0_temperature_sensor_1') }}
                          °C</font> <br> Battery T4:&nbsp;&nbsp;<font
                          color=#41CD52>{{
                          states('sensor.jk_bms_bms0_temperature_sensor_4') }}
                          °C</font>
                      - type: markdown
                        content: >-
                          <center><b><font color=#41CD52 size=6>{{
                          states('sensor.jk_bms_bms0_current') }}
                          A</font></b><br> Remain Battery:&nbsp;&nbsp;<font
                          color=#41CD52>{{
                          states('sensor.jk_bms_bms0_state_of_charge') }}
                          %</font><br> Remain Capacity:&nbsp;&nbsp;<font
                          color=#41CD52>{{
                          states('sensor.jk_bms_bms0_capacity_remaining') |
                          round(2) }} Ah</font><br> Cycle
                          Count:&nbsp;&nbsp;<font color=#41CD52>{{
                          states('sensor.jk_bms_bms0_charging_cycles')
                          }}</font><br> Delta Cell Vol.:&nbsp;&nbsp;<font
                          color=#41CD52>{{
                          states('sensor.jk_bms_bms0_delta_cell_voltage') }}
                          V</font><br> MOS Temp.:&nbsp;&nbsp;<font
                          color=#41CD52>{{
                          states('sensor.jk_bms_bms0_power_tube_temperature') }}
                          °C</font><br> Battery T2:&nbsp;&nbsp;<font
                          color=#41CD52>{{
                          states('sensor.jk_bms_bms0_temperature_sensor_2') }}
                          °C</font> <br> Battery T5:&nbsp;&nbsp;<font
                          color=#41CD52>{{
                          states('sensor.jk_bms_bms0_temperature_sensor_5') }}
                          °C</font>
              - type: custom:stack-in-card
                keep:
                  margin: false
                  box_shadow: false
                  background: false
                cards:
                  - type: grid
                    square: false
                    columns: 1
                    cards:
                      - type: markdown
                        content: <center><b>Cells
                  - type: grid
                    square: false
                    columns: 2
                    cards:
                      - type: markdown
                        content: >-
                          <center>01.&nbsp;&nbsp;&nbsp; {% if
                          states('sensor.jk_bms_bms0_max_voltage_cell') == '1'
                          %}  <font color="#3090C7">{{
                          states('sensor.jk_bms_bms0_cell_voltage_1') }}
                          V</font> {% elif
                          states('sensor.jk_bms_bms0_min_voltage_cell') == '1'
                          %}  <font color="red">{{
                          states('sensor.jk_bms_bms0_cell_voltage_1') }}
                          V</font> {% else %} {{
                          states('sensor.jk_bms_bms0_cell_voltage_1') }} V {%
                          endif %} &nbsp;&nbsp;&nbsp;/&nbsp;&nbsp;&nbsp; {{
                          states('sensor.jk_bms_bms0_cell_resistance_1') }} Ω
                          <br> 02.&nbsp;&nbsp;&nbsp; {% if
                          states('sensor.jk_bms_bms0_max_voltage_cell') == '2'
                          %}  <font color="#3090C7">{{
                          states('sensor.jk_bms_bms0_cell_voltage_2') }}
                          V</font> {% elif
                          states('sensor.jk_bms_bms0_min_voltage_cell') == '2'
                          %} <font color="red">{{
                          states('sensor.jk_bms_bms0_cell_voltage_2') }}
                          V</font> {% else %} {{
                          states('sensor.jk_bms_bms0_cell_voltage_2') }} V {%
                          endif %} &nbsp;&nbsp;&nbsp;/&nbsp;&nbsp;&nbsp; {{
                          states('sensor.jk_bms_bms0_cell_resistance_2') }} Ω
                          <br> 03.&nbsp;&nbsp;&nbsp; {% if
                          states('sensor.jk_bms_bms0_max_voltage_cell') == '3'
                          %}  <font color="#3090C7">{{
                          states('sensor.jk_bms_bms0_cell_voltage_3') }}
                          V</font> {% elif
                          states('sensor.jk_bms_bms0_min_voltage_cell') == '3'
                          %} <font color="red">{{
                          states('sensor.jk_bms_bms0_cell_voltage_3') }}
                          V</font> {% else %} {{
                          states('sensor.jk_bms_bms0_cell_voltage_3') }} V {%
                          endif %} &nbsp;&nbsp;&nbsp;/&nbsp;&nbsp;&nbsp; {{
                          states('sensor.jk_bms_bms0_cell_resistance_3') }} Ω
                          <br> 04.&nbsp;&nbsp;&nbsp; {% if
                          states('sensor.jk_bms_bms0_max_voltage_cell') == '4'
                          %}  <font color="#3090C7">{{
                          states('sensor.jk_bms_bms0_cell_voltage_4') }}
                          V</font> {% elif
                          states('sensor.jk_bms_bms0_min_voltage_cell') == '4'
                          %} <font color="red">{{
                          states('sensor.jk_bms_bms0_cell_voltage_4') }}
                          V</font> {% else %} {{
                          states('sensor.jk_bms_bms0_cell_voltage_4') }} V {%
                          endif %} &nbsp;&nbsp;&nbsp;/&nbsp;&nbsp;&nbsp; {{
                          states('sensor.jk_bms_bms0_cell_resistance_4') }} Ω
                          <br> 05.&nbsp;&nbsp;&nbsp; {% if
                          states('sensor.jk_bms_bms0_max_voltage_cell') == '5'
                          %}  <font color="#3090C7">{{
                          states('sensor.jk_bms_bms0_cell_voltage_5') }}
                          V</font> {% elif
                          states('sensor.jk_bms_bms0_min_voltage_cell') == '5'
                          %} <font color="red">{{
                          states('sensor.jk_bms_bms0_cell_voltage_5') }}
                          V</font> {% else %} {{
                          states('sensor.jk_bms_bms0_cell_voltage_5') }} V {%
                          endif %} &nbsp;&nbsp;&nbsp;/&nbsp;&nbsp;&nbsp; {{
                          states('sensor.jk_bms_bms0_cell_resistance_5') }} Ω
                          <br> 06.&nbsp;&nbsp;&nbsp; {% if
                          states('sensor.jk_bms_bms0_max_voltage_cell') == '6'
                          %}  <font color="#3090C7">{{
                          states('sensor.jk_bms_bms0_cell_voltage_6') }}
                          V</font> {% elif
                          states('sensor.jk_bms_bms0_min_voltage_cell') == '6'
                          %} <font color="red">{{
                          states('sensor.jk_bms_bms0_cell_voltage_6') }}
                          V</font> {% else %} {{
                          states('sensor.jk_bms_bms0_cell_voltage_6') }} V {%
                          endif %} &nbsp;&nbsp;&nbsp;/&nbsp;&nbsp;&nbsp; {{
                          states('sensor.jk_bms_bms0_cell_resistance_6') }} Ω
                          <br> 07.&nbsp;&nbsp;&nbsp; {% if
                          states('sensor.jk_bms_bms0_max_voltage_cell') == '7'
                          %}  <font color="#3090C7">{{
                          states('sensor.jk_bms_bms0_cell_voltage_7') }}
                          V</font> {% elif
                          states('sensor.jk_bms_bms0_min_voltage_cell') == '7'
                          %} <font color="red">{{
                          states('sensor.jk_bms_bms0_cell_voltage_7') }}
                          V</font> {% else %} {{
                          states('sensor.jk_bms_bms0_cell_voltage_7') }} V {%
                          endif %} &nbsp;&nbsp;&nbsp;/&nbsp;&nbsp;&nbsp; {{
                          states('sensor.jk_bms_bms0_cell_resistance_7') }} Ω
                          <br> 08.&nbsp;&nbsp;&nbsp; {% if
                          states('sensor.jk_bms_bms0_max_voltage_cell') == '8'
                          %}  <font color="#3090C7">{{
                          states('sensor.jk_bms_bms0_cell_voltage_8') }}
                          V</font> {% elif
                          states('sensor.jk_bms_bms0_min_voltage_cell') == '8'
                          %} <font color="red">{{
                          states('sensor.jk_bms_bms0_cell_voltage_8') }}
                          V</font> {% else %} {{
                          states('sensor.jk_bms_bms0_cell_voltage_8') }} V {%
                          endif %} &nbsp;&nbsp;&nbsp;/&nbsp;&nbsp;&nbsp; {{
                          states('sensor.jk_bms_bms0_cell_resistance_8') }} Ω
                          <br></center>
                      - type: markdown
                        content: >-
                          <center>09.&nbsp;&nbsp;&nbsp; {% if
                          states('sensor.jk_bms_bms0_max_voltage_cell') == '9'
                          %}  <font color="#3090C7">{{
                          states('sensor.jk_bms_bms0_cell_voltage_9') }}
                          V</font> {% elif
                          states('sensor.jk_bms_bms0_min_voltage_cell') == '9'
                          %}  <font color="red">{{
                          states('sensor.jk_bms_bms0_cell_voltage_9') }}
                          V</font> {% else %} {{
                          states('sensor.jk_bms_bms0_cell_voltage_9') }} V {%
                          endif %} &nbsp;&nbsp;&nbsp;/&nbsp;&nbsp;&nbsp; {{
                          states('sensor.jk_bms_bms0_cell_resistance_9') }} Ω
                          <br> 10.&nbsp;&nbsp;&nbsp; {% if
                          states('sensor.jk_bms_bms0_max_voltage_cell') == '10'
                          %}  <font color="#3090C7">{{
                          states('sensor.jk_bms_bms0_cell_voltage_10') }}
                          V</font> {% elif
                          states('sensor.jk_bms_bms0_min_voltage_cell') == '10'
                          %} <font color="red">{{
                          states('sensor.jk_bms_bms0_cell_voltage_10') }}
                          V</font> {% else %} {{
                          states('sensor.jk_bms_bms0_cell_voltage_10') }} V {%
                          endif %} &nbsp;&nbsp;&nbsp;/&nbsp;&nbsp;&nbsp; {{
                          states('sensor.jk_bms_bms0_cell_resistance_10') }} Ω
                          <br> 11.&nbsp;&nbsp;&nbsp; {% if
                          states('sensor.jk_bms_bms0_max_voltage_cell') == '11'
                          %}  <font color="#3090C7">{{
                          states('sensor.jk_bms_bms0_cell_voltage_11') }}
                          V</font> {% elif
                          states('sensor.jk_bms_bms0_min_voltage_cell') == '11'
                          %} <font color="red">{{
                          states('sensor.jk_bms_bms0_cell_voltage_11') }}
                          V</font> {% else %} {{
                          states('sensor.jk_bms_bms0_cell_voltage_11') }} V {%
                          endif %} &nbsp;&nbsp;&nbsp;/&nbsp;&nbsp;&nbsp; {{
                          states('sensor.jk_bms_bms0_cell_resistance_11') }} Ω
                          <br> 12.&nbsp;&nbsp;&nbsp; {% if
                          states('sensor.jk_bms_bms0_max_voltage_cell') == '12'
                          %}  <font color="#3090C7">{{
                          states('sensor.jk_bms_bms0_cell_voltage_12') }}
                          V</font> {% elif
                          states('sensor.jk_bms_bms0_min_voltage_cell') == '12'
                          %} <font color="red">{{
                          states('sensor.jk_bms_bms0_cell_voltage_12') }}
                          V</font> {% else %} {{
                          states('sensor.jk_bms_bms0_cell_voltage_12') }} V {%
                          endif %} &nbsp;&nbsp;&nbsp;/&nbsp;&nbsp;&nbsp; {{
                          states('sensor.jk_bms_bms0_cell_resistance_12') }} Ω
                          <br> 13.&nbsp;&nbsp;&nbsp; {% if
                          states('sensor.jk_bms_bms0_max_voltage_cell') == '13'
                          %}  <font color="#3090C7">{{
                          states('sensor.jk_bms_bms0_cell_voltage_13') }}
                          V</font> {% elif
                          states('sensor.jk_bms_bms0_min_voltage_cell') == '13'
                          %} <font color="red">{{
                          states('sensor.jk_bms_bms0_cell_voltage_13') }}
                          V</font> {% else %} {{
                          states('sensor.jk_bms_bms0_cell_voltage_13') }} V {%
                          endif %} &nbsp;&nbsp;&nbsp;/&nbsp;&nbsp;&nbsp; {{
                          states('sensor.jk_bms_bms0_cell_resistance_13') }} Ω
                          <br> 14.&nbsp;&nbsp;&nbsp; {% if
                          states('sensor.jk_bms_bms0_max_voltage_cell') == '14'
                          %}  <font color="#3090C7">{{
                          states('sensor.jk_bms_bms0_cell_voltage_14') }}
                          V</font> {% elif
                          states('sensor.jk_bms_bms0_min_voltage_cell') == '14'
                          %} <font color="red">{{
                          states('sensor.jk_bms_bms0_cell_voltage_14') }}
                          V</font> {% else %} {{
                          states('sensor.jk_bms_bms0_cell_voltage_14') }} V {%
                          endif %} &nbsp;&nbsp;&nbsp;/&nbsp;&nbsp;&nbsp; {{
                          states('sensor.jk_bms_bms0_cell_resistance_14') }} Ω
                          <br> 15.&nbsp;&nbsp;&nbsp; {% if
                          states('sensor.jk_bms_bms0_max_voltage_cell') == '15'
                          %}  <font color="#3090C7">{{
                          states('sensor.jk_bms_bms0_cell_voltage_15') }}
                          V</font> {% elif
                          states('sensor.jk_bms_bms0_min_voltage_cell') == '15'
                          %} <font color="red">{{
                          states('sensor.jk_bms_bms0_cell_voltage_15') }}
                          V</font> {% else %} {{
                          states('sensor.jk_bms_bms0_cell_voltage_15') }} V {%
                          endif %} &nbsp;&nbsp;&nbsp;/&nbsp;&nbsp;&nbsp; {{
                          states('sensor.jk_bms_bms0_cell_resistance_15') }} Ω
                          <br> 16.&nbsp;&nbsp;&nbsp; {% if
                          states('sensor.jk_bms_bms0_max_voltage_cell') == '16'
                          %}  <font color="#3090C7">{{
                          states('sensor.jk_bms_bms0_cell_voltage_16') }}
                          V</font> {% elif
                          states('sensor.jk_bms_bms0_min_voltage_cell') == '16'
                          %} <font color="red">{{
                          states('sensor.jk_bms_bms0_cell_voltage_16') }}
                          V</font> {% else %} {{
                          states('sensor.jk_bms_bms0_cell_voltage_16') }} V {%
                          endif %} &nbsp;&nbsp;&nbsp;/&nbsp;&nbsp;&nbsp; {{
                          states('sensor.jk_bms_bms0_cell_resistance_16') }} Ω
                          <br></center>
              - type: entities
                entities:
                  - entity: switch.jk_bms_bms0_balancer
                    name: Balancer
                  - entity: switch.jk_bms_bms0_charging
                    name: Charging
                  - entity: switch.jk_bms_bms0_discharging
                    name: Discharging
                  - entity: switch.jk_bms_bms0_enable_bluetooth_connection
                    name: Bluetooth
                  - entity: switch.jk_bms_bms0_charging_float_mode
                    icon: mdi:wave
                    name: Float Mode
                show_header_toggle: false
            visibility:
              - condition: state
                entity: input_boolean.sebastian_debug
                state: 'off'
      - type: grid
        cards:
          - type: vertical-stack
            title: JK-BMS Bottom
            cards:
              - type: custom:stack-in-card
                keep:
                  margin: false
                  box_shadow: false
                  background: false
                cards:
                  - type: grid
                    square: false
                    columns: 1
                    cards:
                      - type: markdown
                        content: >-
                          <center>Time:&nbsp;<b><font color=#3090C7>{{
                          states('sensor.jk_bms_bms1_total_runtime_formatted') |
                          upper }}</font>
                  - type: grid
                    square: false
                    columns: 3
                    cards:
                      - type: markdown
                        content: >-
                          <center>Charge:&nbsp;<b>{% if
                          states('switch.jk_bms_bms1_charging') == 'on' %} <font
                          color=#41CD52>{{ states('switch.jk_bms_bms1_charging')
                          | upper }}</font> {% else %} <font color=red>{{
                          states('switch.jk_bms_bms1_charging') | upper
                          }}</font> {% endif %} 
                      - type: markdown
                        content: >-
                          <center>Discharge:&nbsp;<b> {% if
                          states('switch.jk_bms_bms1_discharging') == 'on' %}
                          <font color=#41CD52>{{
                          states('switch.jk_bms_bms1_discharging') | upper
                          }}</font> {% else %} <font color=red>{{
                          states('switch.jk_bms_bms1_discharging') | upper
                          }}</font> {% endif %} 
                      - type: markdown
                        content: >-
                          <center>Balance:&nbsp;<b> {% if
                          states('switch.jk_bms_bms1_balancer') == 'on' %} <font
                          color=#41CD52>{{ states('switch.jk_bms_bms1_balancer')
                          | upper }}</font> {% else %} <font color=red>{{
                          states('switch.jk_bms_bms1_balancer') | upper
                          }}</font> {% endif %} 
              - type: custom:stack-in-card
                keep:
                  margin: false
                  box_shadow: false
                  background: false
                cards:
                  - type: grid
                    square: false
                    columns: 2
                    cards:
                      - type: markdown
                        content: >-
                          <center><b><font color=#41CD52 size=6>{{
                          states('sensor.jk_bms_bms1_total_voltage') }}
                          V</font></b><br> Battery Power:&nbsp;&nbsp;<font
                          color=#41CD52>{{ states('sensor.jk_bms_bms1_power') }}
                          W</font><br> Battery Capacity:&nbsp;&nbsp;<font
                          color=#41CD52>{{
                          states('sensor.jk_bms_bms1_total_battery_capacity_setting')
                          | round(2)  }} Ah</font><br> Cycle
                          Capacity:&nbsp;&nbsp;<font color=#41CD52>{{
                          states('sensor.jk_bms_bms1_total_charging_cycle_capacity')
                          }} Ah</font><br> Ave. Cell Vol.:&nbsp;&nbsp;<font
                          color=#41CD52>{{
                          states('sensor.jk_bms_bms1_average_cell_voltage') }}
                          V</font><br> Balance Cur.:&nbsp;&nbsp;<font
                          color=#41CD52>{{
                          states('sensor.jk_bms_bms1_balancing_current') }}
                          A</font><br> Battery T1:&nbsp;&nbsp;<font
                          color=#41CD52>{{
                          states('sensor.jk_bms_bms1_temperature_sensor_1') }}
                          °C</font> <br>
                              Battery T4:&nbsp;&nbsp;<font color=#41CD52>{{
                              states('sensor.jk_bms_bms1_temperature_sensor_4') }} °C</font>
                      - type: markdown
                        content: >-
                          <center><b><font color=#41CD52 size=6>{{
                          states('sensor.jk_bms_bms1_current') }}
                          A</font></b><br> Remain Battery:&nbsp;&nbsp;<font
                          color=#41CD52>{{
                          states('sensor.jk_bms_bms1_state_of_charge') }}
                          %</font><br> Remain Capacity:&nbsp;&nbsp;<font
                          color=#41CD52>{{
                          states('sensor.jk_bms_bms1_capacity_remaining')  |
                          round(2) }} Ah</font><br> Cycle
                          Count:&nbsp;&nbsp;<font color=#41CD52>{{
                          states('sensor.jk_bms_bms1_charging_cycles')
                          }}</font><br> Delta Cell Vol.:&nbsp;&nbsp;<font
                          color=#41CD52>{{
                          states('sensor.jk_bms_bms1_delta_cell_voltage') }}
                          V</font><br> MOS Temp.:&nbsp;&nbsp;<font
                          color=#41CD52>{{
                          states('sensor.jk_bms_bms1_power_tube_temperature') }}
                          °C</font><br> Battery T2:&nbsp;&nbsp;<font
                          color=#41CD52>{{
                          states('sensor.jk_bms_bms1_temperature_sensor_2') }}
                          °C</font> <br>
                              Battery T5:&nbsp;&nbsp;<font color=#41CD52>{{
                              states('sensor.jk_bms_bms1_temperature_sensor_5') }} °C</font>
              - type: custom:stack-in-card
                keep:
                  margin: false
                  box_shadow: false
                  background: false
                cards:
                  - type: grid
                    square: false
                    columns: 1
                    cards:
                      - type: markdown
                        content: <center><b>Cells
                  - type: grid
                    square: false
                    columns: 2
                    cards:
                      - type: markdown
                        content: >-
                          <center>01.&nbsp;&nbsp;&nbsp; {% if
                          states('sensor.jk_bms_bms1_max_voltage_cell') == '1'
                          %}  <font color="#3090C7">{{
                          states('sensor.jk_bms_bms1_cell_voltage_1') }}
                          V</font> {% elif
                          states('sensor.jk_bms_bms1_min_voltage_cell') == '1'
                          %}  <font color="red">{{
                          states('sensor.jk_bms_bms1_cell_voltage_1') }}
                          V</font> {% else %} {{
                          states('sensor.jk_bms_bms1_cell_voltage_1') }} V {%
                          endif %} &nbsp;&nbsp;&nbsp;/&nbsp;&nbsp;&nbsp; {{
                          states('sensor.jk_bms_bms1_cell_resistance_1') }} Ω
                          <br> 02.&nbsp;&nbsp;&nbsp; {% if
                          states('sensor.jk_bms_bms1_max_voltage_cell') == '2'
                          %}  <font color="#3090C7">{{
                          states('sensor.jk_bms_bms1_cell_voltage_2') }}
                          V</font> {% elif
                          states('sensor.jk_bms_bms1_min_voltage_cell') == '2'
                          %} <font color="red">{{
                          states('sensor.jk_bms_bms1_cell_voltage_2') }}
                          V</font> {% else %} {{
                          states('sensor.jk_bms_bms1_cell_voltage_2') }} V {%
                          endif %} &nbsp;&nbsp;&nbsp;/&nbsp;&nbsp;&nbsp; {{
                          states('sensor.jk_bms_bms1_cell_resistance_2') }} Ω
                          <br> 03.&nbsp;&nbsp;&nbsp; {% if
                          states('sensor.jk_bms_bms1_max_voltage_cell') == '3'
                          %}  <font color="#3090C7">{{
                          states('sensor.jk_bms_bms1_cell_voltage_3') }}
                          V</font> {% elif
                          states('sensor.jk_bms_bms1_min_voltage_cell') == '3'
                          %} <font color="red">{{
                          states('sensor.jk_bms_bms1_cell_voltage_3') }}
                          V</font> {% else %} {{
                          states('sensor.jk_bms_bms1_cell_voltage_3') }} V {%
                          endif %} &nbsp;&nbsp;&nbsp;/&nbsp;&nbsp;&nbsp; {{
                          states('sensor.jk_bms_bms1_cell_resistance_3') }} Ω
                          <br> 04.&nbsp;&nbsp;&nbsp; {% if
                          states('sensor.jk_bms_bms1_max_voltage_cell') == '4'
                          %}  <font color="#3090C7">{{
                          states('sensor.jk_bms_bms1_cell_voltage_4') }}
                          V</font> {% elif
                          states('sensor.jk_bms_bms1_min_voltage_cell') == '4'
                          %} <font color="red">{{
                          states('sensor.jk_bms_bms1_cell_voltage_4') }}
                          V</font> {% else %} {{
                          states('sensor.jk_bms_bms1_cell_voltage_4') }} V {%
                          endif %} &nbsp;&nbsp;&nbsp;/&nbsp;&nbsp;&nbsp; {{
                          states('sensor.jk_bms_bms1_cell_resistance_4') }} Ω
                          <br> 05.&nbsp;&nbsp;&nbsp; {% if
                          states('sensor.jk_bms_bms1_max_voltage_cell') == '5'
                          %}  <font color="#3090C7">{{
                          states('sensor.jk_bms_bms1_cell_voltage_5') }}
                          V</font> {% elif
                          states('sensor.jk_bms_bms1_min_voltage_cell') == '5'
                          %} <font color="red">{{
                          states('sensor.jk_bms_bms1_cell_voltage_5') }}
                          V</font> {% else %} {{
                          states('sensor.jk_bms_bms1_cell_voltage_5') }} V {%
                          endif %} &nbsp;&nbsp;&nbsp;/&nbsp;&nbsp;&nbsp; {{
                          states('sensor.jk_bms_bms1_cell_resistance_5') }} Ω
                          <br> 06.&nbsp;&nbsp;&nbsp; {% if
                          states('sensor.jk_bms_bms1_max_voltage_cell') == '6'
                          %}  <font color="#3090C7">{{
                          states('sensor.jk_bms_bms1_cell_voltage_6') }}
                          V</font> {% elif
                          states('sensor.jk_bms_bms1_min_voltage_cell') == '6'
                          %} <font color="red">{{
                          states('sensor.jk_bms_bms1_cell_voltage_6') }}
                          V</font> {% else %} {{
                          states('sensor.jk_bms_bms1_cell_voltage_6') }} V {%
                          endif %} &nbsp;&nbsp;&nbsp;/&nbsp;&nbsp;&nbsp; {{
                          states('sensor.jk_bms_bms1_cell_resistance_6') }} Ω
                          <br> 07.&nbsp;&nbsp;&nbsp; {% if
                          states('sensor.jk_bms_bms1_max_voltage_cell') == '7'
                          %}  <font color="#3090C7">{{
                          states('sensor.jk_bms_bms1_cell_voltage_7') }}
                          V</font> {% elif
                          states('sensor.jk_bms_bms1_min_voltage_cell') == '7'
                          %} <font color="red">{{
                          states('sensor.jk_bms_bms1_cell_voltage_7') }}
                          V</font> {% else %} {{
                          states('sensor.jk_bms_bms1_cell_voltage_7') }} V {%
                          endif %} &nbsp;&nbsp;&nbsp;/&nbsp;&nbsp;&nbsp; {{
                          states('sensor.jk_bms_bms1_cell_resistance_7') }} Ω
                          <br> 08.&nbsp;&nbsp;&nbsp; {% if
                          states('sensor.jk_bms_bms1_max_voltage_cell') == '8'
                          %}  <font color="#3090C7">{{
                          states('sensor.jk_bms_bms1_cell_voltage_8') }}
                          V</font> {% elif
                          states('sensor.jk_bms_bms1_min_voltage_cell') == '8'
                          %} <font color="red">{{
                          states('sensor.jk_bms_bms1_cell_voltage_8') }}
                          V</font> {% else %} {{
                          states('sensor.jk_bms_bms1_cell_voltage_8') }} V {%
                          endif %} &nbsp;&nbsp;&nbsp;/&nbsp;&nbsp;&nbsp; {{
                          states('sensor.jk_bms_bms1_cell_resistance_8') }} Ω
                          <br></center>
                      - type: markdown
                        content: >-
                          <center>09.&nbsp;&nbsp;&nbsp; {% if
                          states('sensor.jk_bms_bms1_max_voltage_cell') == '9'
                          %}  <font color="#3090C7">{{
                          states('sensor.jk_bms_bms1_cell_voltage_9') }}
                          V</font> {% elif
                          states('sensor.jk_bms_bms1_min_voltage_cell') == '9'
                          %}  <font color="red">{{
                          states('sensor.jk_bms_bms1_cell_voltage_9') }}
                          V</font> {% else %} {{
                          states('sensor.jk_bms_bms1_cell_voltage_9') }} V {%
                          endif %} &nbsp;&nbsp;&nbsp;/&nbsp;&nbsp;&nbsp; {{
                          states('sensor.jk_bms_bms1_cell_resistance_9') }} Ω
                          <br> 10.&nbsp;&nbsp;&nbsp; {% if
                          states('sensor.jk_bms_bms1_max_voltage_cell') == '10'
                          %}  <font color="#3090C7">{{
                          states('sensor.jk_bms_bms1_cell_voltage_10') }}
                          V</font> {% elif
                          states('sensor.jk_bms_bms1_min_voltage_cell') == '10'
                          %} <font color="red">{{
                          states('sensor.jk_bms_bms1_cell_voltage_10') }}
                          V</font> {% else %} {{
                          states('sensor.jk_bms_bms1_cell_voltage_10') }} V {%
                          endif %} &nbsp;&nbsp;&nbsp;/&nbsp;&nbsp;&nbsp; {{
                          states('sensor.jk_bms_bms1_cell_resistance_10') }} Ω
                          <br> 11.&nbsp;&nbsp;&nbsp; {% if
                          states('sensor.jk_bms_bms1_max_voltage_cell') == '11'
                          %}  <font color="#3090C7">{{
                          states('sensor.jk_bms_bms1_cell_voltage_11') }}
                          V</font> {% elif
                          states('sensor.jk_bms_bms1_min_voltage_cell') == '11'
                          %} <font color="red">{{
                          states('sensor.jk_bms_bms1_cell_voltage_11') }}
                          V</font> {% else %} {{
                          states('sensor.jk_bms_bms1_cell_voltage_11') }} V {%
                          endif %} &nbsp;&nbsp;&nbsp;/&nbsp;&nbsp;&nbsp; {{
                          states('sensor.jk_bms_bms1_cell_resistance_11') }} Ω
                          <br> 12.&nbsp;&nbsp;&nbsp; {% if
                          states('sensor.jk_bms_bms1_max_voltage_cell') == '12'
                          %}  <font color="#3090C7">{{
                          states('sensor.jk_bms_bms1_cell_voltage_12') }}
                          V</font> {% elif
                          states('sensor.jk_bms_bms1_min_voltage_cell') == '12'
                          %} <font color="red">{{
                          states('sensor.jk_bms_bms1_cell_voltage_12') }}
                          V</font> {% else %} {{
                          states('sensor.jk_bms_bms1_cell_voltage_12') }} V {%
                          endif %} &nbsp;&nbsp;&nbsp;/&nbsp;&nbsp;&nbsp; {{
                          states('sensor.jk_bms_bms1_cell_resistance_12') }} Ω
                          <br> 13.&nbsp;&nbsp;&nbsp; {% if
                          states('sensor.jk_bms_bms1_max_voltage_cell') == '13'
                          %}  <font color="#3090C7">{{
                          states('sensor.jk_bms_bms1_cell_voltage_13') }}
                          V</font> {% elif
                          states('sensor.jk_bms_bms1_min_voltage_cell') == '13'
                          %} <font color="red">{{
                          states('sensor.jk_bms_bms1_cell_voltage_13') }}
                          V</font> {% else %} {{
                          states('sensor.jk_bms_bms1_cell_voltage_13') }} V {%
                          endif %} &nbsp;&nbsp;&nbsp;/&nbsp;&nbsp;&nbsp; {{
                          states('sensor.jk_bms_bms1_cell_resistance_13') }} Ω
                          <br> 14.&nbsp;&nbsp;&nbsp; {% if
                          states('sensor.jk_bms_bms1_max_voltage_cell') == '14'
                          %}  <font color="#3090C7">{{
                          states('sensor.jk_bms_bms1_cell_voltage_14') }}
                          V</font> {% elif
                          states('sensor.jk_bms_bms1_min_voltage_cell') == '14'
                          %} <font color="red">{{
                          states('sensor.jk_bms_bms1_cell_voltage_14') }}
                          V</font> {% else %} {{
                          states('sensor.jk_bms_bms1_cell_voltage_14') }} V {%
                          endif %} &nbsp;&nbsp;&nbsp;/&nbsp;&nbsp;&nbsp; {{
                          states('sensor.jk_bms_bms1_cell_resistance_14') }} Ω
                          <br> 15.&nbsp;&nbsp;&nbsp; {% if
                          states('sensor.jk_bms_bms1_max_voltage_cell') == '15'
                          %}  <font color="#3090C7">{{
                          states('sensor.jk_bms_bms1_cell_voltage_15') }}
                          V</font> {% elif
                          states('sensor.jk_bms_bms1_min_voltage_cell') == '15'
                          %} <font color="red">{{
                          states('sensor.jk_bms_bms1_cell_voltage_15') }}
                          V</font> {% else %} {{
                          states('sensor.jk_bms_bms1_cell_voltage_15') }} V {%
                          endif %} &nbsp;&nbsp;&nbsp;/&nbsp;&nbsp;&nbsp; {{
                          states('sensor.jk_bms_bms1_cell_resistance_15') }} Ω
                          <br> 16.&nbsp;&nbsp;&nbsp; {% if
                          states('sensor.jk_bms_bms1_max_voltage_cell') == '16'
                          %}  <font color="#3090C7">{{
                          states('sensor.jk_bms_bms1_cell_voltage_16') }}
                          V</font> {% elif
                          states('sensor.jk_bms_bms1_min_voltage_cell') == '16'
                          %} <font color="red">{{
                          states('sensor.jk_bms_bms1_cell_voltage_16') }}
                          V</font> {% else %} {{
                          states('sensor.jk_bms_bms1_cell_voltage_16') }} V {%
                          endif %} &nbsp;&nbsp;&nbsp;/&nbsp;&nbsp;&nbsp; {{
                          states('sensor.jk_bms_bms1_cell_resistance_16') }} Ω
                          <br></center>
              - type: entities
                entities:
                  - entity: switch.jk_bms_bms1_balancer
                    name: Balancer
                  - entity: switch.jk_bms_bms1_charging
                    name: Charging
                  - entity: switch.jk_bms_bms1_discharging
                    name: Discharging
                  - entity: switch.jk_bms_bms1_enable_bluetooth_connection
                    name: Bluetooth
                  - entity: switch.jk_bms_bms1_charging_float_mode
                    icon: mdi:wave
                    name: Float Mode
                show_header_toggle: false
            visibility:
              - condition: state
                entity: input_boolean.sebastian_debug
                state: 'off'
          - type: entity
            entity: sensor.deye_sun_12k_battery_voltage
    cards: []
  - type: panel
    title: Energie
    path: test2
    badges: []
    cards:
      - height: 400
        unit_prefix: k
        round: 1
        convert_units_to: ''
        co2_intensity_entity: sensor.co2_signal_co2_intensity
        gas_co2_intensity: 2351.6459999999997
        min_box_height: 3
        min_box_distance: 5
        show_states: true
        show_units: true
        energy_date_selection: true
        sections: []
        type: custom:sankey-chart
        autoconfig:
          print_yaml: false
        min_state: 0
        show_names: true
        show_icons: false
        wide: true
        title: Sankey
        visibility:
          - condition: state
            entity: input_boolean.sebastian_debug
            state: 'off'
  - title: Schlafzimmer
    path: schlafzimmer
    subview: false
    visible: []
    badges: []
    cards:
      - type: horizontal-stack
        title: Schlafzimmer 🛌🏻 👓
        cards:
          - type: vertical-stack
            cards:
              - type: custom:mushroom-climate-card
                entity: climate.schlafzimmer
                name: Thermostat
                fill_container: true
                show_temperature_control: true
                collapsible_controls: true
              - type: custom:mushroom-entity-card
                entity: automation.schlafzimmer_heizen
                name: Heizungsautomation
                fill_container: true
                tap_action:
                  action: toggle
              - type: tile
                entity: binary_sensor.esphome_schlafzimmer_presence
                name: Präsenz
                hide_state: true
          - type: vertical-stack
            cards:
              - type: custom:mushroom-light-card
                entity: light.schlafzimmer_licht
                name: Licht
                fill_container: true
                show_brightness_control: true
                collapsible_controls: true
                use_light_color: true
                show_color_control: false
                show_color_temp_control: false
              - type: custom:mushroom-entity-card
                entity: input_datetime.wecker
                name: Nächster Wecker
                icon_color: deep-purple
                fill_container: true
                icon: mdi:alarm-light
        visibility:
          - condition: state
            entity: input_boolean.sebastian_debug
            state: 'off'
  - title: Sebastian
    path: test
    visible:
      - user: b3a7b302324041ce9d2471b161c54b90
    cards:
      - type: entities
        entities:
          - entity: button.sebastian_pc_herunterfahren
            icon: mdi:power
            name: PC Herunterfahren
          - entity: button.sebastian_pc_sebastian_pc_fernseher_profil
            icon: mdi:television
            name: LG Profil
          - entity: button.sebastian_pc_sebastian_pc_standard_profil
            icon: mdi:cursor-default
            name: Standard Profil
        title: Sebastian-PC
      - type: custom:auto-entities
        card:
          type: entities
        filter:
          template: |
            {% for light in states.light %}
              {% if light.state == "on" %}
                {{ light.entity_id}},
              {% endif %}
            {% endfor %}
        visibility:
          - condition: state
            entity: input_boolean.sebastian_debug
            state: 'off'
  - title: Müllhalde
    path: mullhalde
    visible:
      - user: b3a7b302324041ce9d2471b161c54b90
    cards:
      - type: vertical-stack
        title: Heizkeller 🔥
        cards:
          - type: horizontal-stack
            cards:
              - type: tile
                entity: sensor.heizstab
                icon: mdi:water-boiler
                show_entity_picture: false
                vertical: false
                color: red
              - type: tile
                entity: input_text.feuerbutton
                name: Feuer
                vertical: false
      - type: vertical-stack
        title: Anwesenheit 🙋‍♂️
        cards:
          - type: horizontal-stack
            cards:
              - type: custom:mushroom-person-card
                entity: device_tracker.sebastian_iphone_2
                name: Sebastian
                fill_container: false
              - type: custom:mushroom-person-card
                entity: device_tracker.iphone_von_christopher_2
                name: Christopher
        visibility:
          - condition: state
            entity: input_boolean.sebastian_debug
            state: 'off'
      - type: custom:auto-entities
        card:
          type: entities
          title: Müll
        filter:
          include:
            - state: / Morgen$/
          exclude:
            - entity_id: sensor.restmulltonne
            - entity_id: sensor.papiertonne
            - entity_id: sensor.gelbe_tonne
        show_empty: false
        visibility:
          - condition: state
            entity: input_boolean.sebastian_debug
            state: 'off'
      - type: custom:auto-entities
        card:
          type: entities
          title: Ethernet
        filter:
          include:
            - entity_id: sensor.opnsense_wan_media
          exclude:
            - state: 1000baseT <full-duplex>
        show_empty: false
        visibility:
          - condition: state
            entity: input_boolean.sebastian_debug
            state: 'off'
      - type: custom:auto-entities
        card:
          type: entities
        filter:
          include:
            - label: Batterieüberwachung
          exclude:
            - state: '> 5'
            - state: 'off'
        show_empty: false
        visibility:
          - condition: state
            entity: input_boolean.sebastian_debug
            state: 'off'
      - type: vertical-stack
        title: Küche 🔪
        cards:
          - type: horizontal-stack
            cards:
              - type: conditional
                conditions:
                  - entity: binary_sensor.kuche_anwesenheit_presence
                    state_not: 'off'
                card:
                  type: tile
                  entity: binary_sensor.kuche_anwesenheit_presence
                  name: Präsenz
                  hide_state: true
              - type: conditional
                conditions:
                  - entity: >-
                      sensor.011090523811006843_bsh_common_option_programprogress
                    state_not: unavailable
                card:
                  type: tile
                  entity: sensor.011090523811006843_bsh_common_option_programprogress
                  name: Spüli Fortschritt
                  icon: mdi:dishwasher
      - type: vertical-stack
        title: Garage 🚗
        cards:
          - type: horizontal-stack
            cards:
              - type: tile
                entity: sensor.tesla_soc
                icon: mdi:battery
                name: Tesla-SoC
              - type: custom:mushroom-climate-card
                entity: climate.teslarossa_hvac_climate_system
                name: Tesla Klima
                fill_container: false
                show_temperature_control: true
                collapsible_controls: true
                hvac_modes: []
        visibility:
          - condition: state
            entity: input_boolean.sebastian_debug
            state: 'off'```
karwosts commented 3 months ago

I think this is your issue (or at least an issue). These all say "conditions: state", should be "condition: state". "conditions" imply it's going to get a list.

          - type: conditional
            conditions:
              - condition: or
                conditions:
                  - conditions: state
                    entity: light.bad_og_licht
                    state: 'on'
                  - conditions: state
                    entity: light.flur_eg_salzkristalllampe
                    state: 'on'
                  - conditions: state
                    entity: light.flur_og_salzkristalllampe
                    state: 'on'
                  - conditions: state
                    entity: light.treppenhaus_licht
                    state: 'on'
b1ggi commented 3 months ago

thanks so much, that was it. its finally usable again