I just added the footer buttons and now I have a very strange behaviour with them. When I click a button, complete homeassistant is crashing and restarting.
But not on all buttons.
When I click on “Haus” everything is fine and the popup opens. When I click on “Tablet” homeassistant is crashing.
I can open both popups without any problems with the old buttons from in the sidebar. So the popup itself seems to be working.
Whats happening here?
ui-lovelace.yaml
#################################################
# #
# FOOTER #
# #
#################################################
- type: horizontal-stack
view_layout:
grid-area: footer
cards:
- type: custom:button-card
name: >
<ha-icon icon="mdi:home"></ha-icon> Haus
tap_action:
!include popup/sidebar_house.yaml
template: footer
- type: custom:button-card
name: >
<ha-icon icon="mdi:tablet-dashboard"></ha-icon> Tablet
tap_action:
!include popup/sidebar_information.yaml
template: footer
sidebar_information.yaml
action: fire-dom-event
browser_mod:
command: popup
title: Information
hide_header: false
style:
.: |
:host .content {
width: calc(385px + 385px + 385px);
max-width: 90vw;
height: 569px;
}
card:
type: custom:layout-card
layout_type: custom:grid-layout
layout:
grid-template-columns: repeat(2, 1fr)
grid-template-rows: 1fr
grid-template-areas: |
"hass dashboard"
mediaquery:
#phone
"(max-width: 800px)":
grid-template-columns: 1fr
grid-template-rows: repeat(2, 1fr)
grid-template-areas: |
"hass"
"dashboard"
cards:
##################
# Homeassistant #
##################
- type: entities
view_layout:
grid-area: hass
title: Home Assistant
style: &border |
ha-card {
border-radius: 0;
animation: ha-card 1s forwards;
}
@keyframes ha-card {
0%, 100% {
border-right: 1.5px solid rgba(0, 0, 0, 0.2);
}
}
/* phone */
@media screen and (max-width: 800px) {
ha-card {
border-bottom: 1.5px solid rgba(0, 0, 0, 0.2);
padding-right: 0;
animation: none;
}
}
entities:
- entity: sensor.hass_version
- entity: sensor.hass_dev_release
# DB Größe über Docker Monitor
# - entity: sensor.home_assistant_v2_db
- entity: sensor.home_assistant_log
name: Logfile
- entity: sensor.hass_uptime
- type: custom:bar-card
width: 55%
height: 2em
decimal: 0
unit_of_measurement: "%"
positions: &bar_card_positions
icon: outside
indicator: "off"
name: outside
severity: &bar_card_severity
- color: "#303435"
from: 0
to: 89
- color: "#6d2525"
from: 90
to: 100
entity_row: true
entities:
- entity: sensor.processor_use
tap_action:
action: call-service
service: homeassistant.update_entity
service_data:
entity_id: sensor.processor_use
- entity: sensor.memory_use_percent
tap_action:
action: call-service
service: homeassistant.update_entity
service_data:
entity_id: sensor.memory_use_percent
- type: custom:hui-element
card_type: horizontal-stack
card_mod:
style: &horizontal-style |
#root {
justify-content: space-evenly;
margin: 1.7em -0.7em 0 0;
}
cards:
- type: custom:button-card
name: Home Assistant
icon: mdi:reload
tap_action:
services: |
[[[
hass.callService('browser_mod', 'toast', {
message: 'Starte HomeAssistant neu...'
});
hass.callService('homeassistant', 'restart');
]]]
template: icon_name
- type: custom:button-card
name: Host
icon: mdi:reload
tap_action:
action: call-service
services: |
[[[ hass.callService('browser_mod', 'toast', {message: 'Starte Host neu...'});
hass.callService('hassio', 'host_reboot'); ]]]
template: icon_name
###################
# DASHBOARD #
###################
- type: entities
view_layout:
grid-area: dashboard
title: Dashboard
show_header_toggle: false
style: *border
entities:
- entity: light.dashboard_screen
name: Bildschirm
- type: custom:slider-entity-row
entity: light.dashboard_screen
name: Displayhelligkeit
icon: mdi:brightness-6
hide_state: false
- entity: switch.dashboard_screensaver
name: Bildschirmschoner
- entity: switch.flur_steckdosenleiste_usb
name: Ladegerät
- type: custom:bar-card
name: Batterie
width: 55%
height: 2em
decimal: 0
unit_of_measurement: "%"
positions: *bar_card_positions
severity:
- color: "#6d2525"
from: 0
to: 89
- color: "#303435"
from: 90
to: 100
entity_row: true
entities:
- entity: sensor.dashboard_batterie
icon: mdi:battery
- entity: binary_sensor.dashboard_plugged_in
name: Zuletzt eingesteckt
- entity: sensor.dashboard_last_app_start
name: Letzer App Neustart
- type: custom:bar-card
width: 55%
height: 2em
decimal: 0
unit_of_measurement: "%"
positions: *bar_card_positions
severity: *bar_card_severity
entity_row: true
entities:
- entity: sensor.fullykiosk_memory
name: RAM
icon: mdi:memory
tap_action:
action: call-service
service: homeassistant.update_entity
service_data:
entity_id: sensor.fullykiosk_memory
- entity: sensor.fullykiosk_storage
name: Speicher
icon: mdi:sd
tap_action:
action: call-service
service: homeassistant.update_entity
service_data:
entity_id: sensor.fullykiosk_storage
- type: custom:hui-element
card_type: horizontal-stack
card_mod:
style: *horizontal-style
cards:
- type: custom:button-card
name: Startseite
icon: mdi:reload
tap_action:
services: |
[[[
hass.callService('browser_mod', 'toast', {
message: 'Lade Dashboard neu...'
});
hass.callService('fullykiosk', 'load_start_url', {
entity_id: 'media_player.dashboard_media_player'
});
]]]
template: icon_name
- type: custom:button-card
name: App
icon: mdi:reload
tap_action:
services: |
[[[
hass.callService('browser_mod', 'toast', {
message: 'Starte Fully Kiosk Browser neu...'
});
hass.callService('fullykiosk', 'restart', {
entity_id: 'media_player.dashboard_media_player'
});
]]]
template: icon_name
sidebar-house.yaml
action: fire-dom-event
browser_mod:
command: popup
title: Smarthome
hide_header: false
style:
.: |
:host .content {
width: calc(385px + 385px + 385px);
max-width: 90vw;
height: 569px;
}
card:
type: custom:layout-card
layout_type: custom:grid-layout
layout:
grid-template-columns: repeat(3, 1fr)
grid-template-rows: 1fr
grid-template-areas: |
"house heating batteries"
mediaquery:
#phone
"(max-width: 800px)":
grid-template-columns: 1fr
grid-template-rows: repeat(3, 1fr)
grid-template-areas: |
"house"
"heating"
"batteries"
cards:
###################
# HAUS #
###################
- type: entities
view_layout:
grid_area: house
title: Haus
style: &border |
ha-card {
border-radius: 0;
animation: ha-card 1s forwards;
}
@keyframes ha-card {
0%, 100% {
border-right: 1.5px solid rgba(0, 0, 0, 0.2);
}
}
/* phone */
@media screen and (max-width: 800px) {
ha-card {
border-bottom: 1.5px solid rgba(0, 0, 0, 0.2);
padding-right: 0;
animation: none;
}
}
entities:
- type: custom:hui-element
card_type: glance
entities:
- entity: person.christoph
- entity: person.franziska
- entity: group.haus
- entity: input_boolean.alarmsystem
- entity: input_boolean.absent_long
- entity: binary_sensor.flur_rauchmelder_eg_alarm
name: Schlafzimmer Rauchmelder
- entity: binary_sensor.flur_rauchmelder_dg_alarm
name: DG/Flur Rauchmelder
- entity: binary_sensor.schlafzimmer_rauchmelder_alarm
name: EG/Flur Rauchmelder
##################
# Heizung #
##################
- type: entities
view_layout:
grid-area: heating
title: Heizung
style: *border
entities:
- entity: input_boolean.heizung
- entity: input_boolean.unplanmaessig_zuhause
- entity: group.ferien_und_feiertage
name: Ferien, Feiertage, Homeoffice
- entity: input_boolean.homeoffice
- entity: input_boolean.partymodus
- entity: sensor.openweathermap_temperature
name: Außentemperatur
- entity: schedy_room.schedy_heating_schlafzimmer
icon: mdi:thermometer-lines
name: Schlafzimmer
- entity: schedy_room.schedy_heating_wohnesszimmer
icon: mdi:thermometer-lines
name: Wohn und Esszimmer
- entity: schedy_room.schedy_heating_buero
icon: mdi:thermometer-lines
name: Büro
- entity: schedy_room.schedy_heating_bad
icon: mdi:thermometer-lines
name: Bad