Hello, i was trying to do some dashboards. I am newbie in HA, and i am using also help from chatgpt. I created weather dashbords, working, but when i tryied make new dashboards, with 2 sections icon on top, something went wrong and i am getting this error on screen shoot. I triend everything chatgpt suggested and what i found on internet but still same. before this trying of making nave dashboards, those hacksfiles works corectly. So i delete hacks custom types all, and again download, and now its not working anymore. Please can someone check where can be mistake found ? i share my code also.
# Loads default set of integrations. Do not remove.
default_config:
# Load frontend themes from the themes folder
frontend:
themes: !include_dir_merge_named themes
zha: # Kód pre úpravu otvárača garážovej brány
enable_quirks: true
custom_quirks_path: /config/zhaquirks
automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml
homeassistant:
packages: !include_dir_merge_named packages
# Zakomentované pre testovanie
# template: !include predpoved_mrazu.yaml
cover: !include includes/garage_cover.yaml # Načíta konfiguráciu z garage_cover.yaml
lovelace:
mode: yaml
dashboards:
prehlad-domov:
mode: yaml
title: "Domov"
icon: mdi:home
show_in_sidebar: true
filename: lovelace/dashboards.yaml
resources:
- url: /hacsfiles/lovelace-meteo-card/meteo-card.js
type: module
- url: /hacsfiles/apexcharts-card/apexcharts-card.js
type: module
- url: /hacsfiles/mini-graph-card/mini-graph-card-bundle.js
type: module
- url: /hacsfiles/lovelace-windrose-card/windrose-card.js
type: module
- url: /hacsfiles/lovelace-mushroom/mushroom.js
type: module
title: "Domov"
views:
- title: "Počasie"
path: pocasie
icon: mdi:weather-partly-cloudy
panel: false
cards:
- !include ui-lovelace.yaml # Uprav cesta, ak súbory nie sú v /lovelace
- title: "Ovládanie zariadení"
path: ovladanie
icon: mdi:remote
panel: false
cards:
- !include ovladanie-zariadeni.yaml # Uprav cesta, ak súbory nie sú v /lovelace
views:
- title: Ovládanie zariadení
path: ovladanie
icon: mdi:remote
panel: false
cards:
- type: vertical-stack
cards:
- type: "custom:mushroom-title-card"
title: "🚪 Brány a reflektory"
- type: "custom:mushroom-entity-card"
entity: cover.smart_garage_door_opener_dvere
name: "🅿️ Garážová brána"
icon: mdi:garage
tap_action:
action: toggle
- type: "custom:mushroom-entity-card"
entity: cover.smart_garage_door_opener_dvere
name: "🚪 Hlavná brána"
icon: mdi:gate
tap_action:
action: toggle
- type: "custom:mushroom-entity-card"
entity: light.brana_reflektor
name: "💡 Reflektor - Vstup"
icon: mdi:lightbulb
tap_action:
action: toggle
- type: "custom:mushroom-entity-card"
entity: light.reflektor_pristresok_switch
name: "💡 Reflektor - Prístrešok"
icon: mdi:lightbulb
tap_action:
action: toggle
- type: "custom:mushroom-entity-card"
entity: light.reflektory_sypanec_switch
name: "💡 Reflektory - Sypanec"
icon: mdi:lightbulb
tap_action:
action: toggle
views:
- title: Domov # Hlavný panel
path: domov
icon: mdi:home
panel: false
cards:
# 🌡️ Vonkajšia teplota
- type: "custom:mini-graph-card"
name: Vonkajšia teplota
hours_to_show: 12
points_per_hour: 12
line_width: 2
decimals: 1
entities:
- entity: sensor.gw1100a_outdoor_temperature # Vonkajšia teplota
name: Teplota (°C)
show_state: true
state_adaptive_color: true
- entity: sensor.gw1100a_temperature_2 # Teplomer v predu na ľavo
name: V predu na ľavo
show_state: true
state_adaptive_color: true
show:
labels: true
labels_secondary: false
icon: true
state: true
extrema: true
# 💦 Vonkajšia vlhkosť a rosný bod
- type: "custom:mini-graph-card"
name: Vonkajšia vlhkosť a rosný bod
hours_to_show: 12
points_per_hour: 12
line_width: 2
decimals: 1
entities:
- entity: sensor.gw1100a_humidity # Vlhkosť vzduchu
name: Vlhkosť (%)
show_state: true
state_adaptive_color: true
y_axis: primary
- entity: sensor.gw1100a_dewpoint # Rosný bod
name: Rosný bod (°C)
show_state: true
state_adaptive_color: true
y_axis: secondary
show:
labels: true
labels_secondary: true
icon: true
state: true
extrema: true
# 💦 Predpoveď mrazu
- type: "custom:mushroom-template-card"
entity: sensor.predpoved_mrazu
primary: "Pravdepodobnosť mrazu: {{ states('sensor.predpoved_mrazu') }}%"
secondary: >-
{% if states('sensor.predpoved_mrazu') | int > 75 %}
❄️ Veľmi vysoké riziko mrazu!
{% elif states('sensor.predpoved_mrazu') | int > 50 %}
⚠️ Možný mráz, chráň rastliny!
{% elif states('sensor.predpoved_mrazu') | int > 25 %}
🌡️ Slabý mráz je možný.
{% else %}
✅ Nízke riziko mrazu.
{% endif %}
icon: mdi:snowflake
icon_color: >-
{% if states('sensor.predpoved_mrazu') | int > 75 %}
red
{% elif states('sensor.predpoved_mrazu') | int > 50 %}
orange
{% elif states('sensor.predpoved_mrazu') | int > 25 %}
yellow
{% else %}
green
{% endif %}
layout: vertical
tap_action:
action: more-info
# 🌤️ 7-dňová predpoveď počasia
- type: "custom:mushroom-template-card"
entity: weather.forecast_home
primary: "7-dňová predpoveď"
secondary: >-
{% set forecast = state_attr('weather.forecast_home', 'forecast') %}
{% if forecast %}
{% for day in forecast[:7] %}
📅 {{ day.datetime.split('T')[0] }}
🌡️ Max: {{ day.temperature }}°C
🌡️ Min: {{ day.templow }}°C
🌧️ Zrážky: {{ day.precipitation }} mm
🌬️ Vietor: {{ day.wind_speed }} km/h
📊 Tlak: {{ day.pressure }} hPa
{% endfor %}
{% else %}
❌ Predpoveď nie je dostupná
{% endif %}
icon: mdi:weather-partly-cloudy
icon_color: blue
layout: vertical
tap_action:
action: more-info
# 💨 Rýchlosť vetra a nárazy
- type: "custom:mini-graph-card"
name: Vietor
hours_to_show: 12
points_per_hour: 12
line_width: 2
decimals: 1
entities:
- entity: sensor.gw1100a_wind_gust # Nárazy vetra
name: Nárazy (km/h)
show_state: true
state_adaptive_color: true
- entity: sensor.gw1100a_wind_speed # Priemerná rýchlosť vetra
name: Rýchlosť (km/h)
show_state: true
state_adaptive_color: true
show:
labels: true
icon: true
state: true
extrema: true
# 📈 Atmosférický tlak
- type: "custom:mini-graph-card"
name: Atmosférický tlak
hours_to_show: 12
points_per_hour: 12
line_width: 2
decimals: 0
entities:
- entity: sensor.gw1100a_relative_pressure # Tlak vzduchu v hPa
show_state: true
state_adaptive_color: true
show:
labels: true
icon: true
state: true