hass-config/lovelace/views/dashboard_view.yaml

87 lines
2.4 KiB
YAML

title: Dashboard
path: dashboard
icon: mdi:home-assistant
panel: true
cards:
- type: custom:layout-card
layout: vertical
column_width: 350
max_width: [200px,100%]
rtl: true
cards:
- type: custom:layout-card
column_width: 200
max_width: 300
cards:
- !include
- /config/lovelace/functions/car.yaml
- car: peugeot
- !include
- /config/lovelace/functions/car.yaml
- car: golf
- break
- type: custom:layout-card
column_width: 350
max_width: 960
layout: vertical
cards:
- type: markdown
style: |
ha-card {
padding-top: 24px;
}
h1 {
text-align: center;
font-size: 6em;
margin-bottom: 0;
}
h2 {
text-align: center;
}
content: |
# {{ states("sensor.time") }}
## {{ states("sensor.date") }} V.{{ states("sensor.week") }}
- type: custom:weather-card
entity: weather.smhi_home
icons: /local/weather_icons/
- break
- type: horizontal-stack
cards:
- !include
- /config/lovelace/functions/presence.yaml
- person: thomas
- !include
- /config/lovelace/functions/presence.yaml
- person: anneli
- type: horizontal-stack
cards:
- type: entity-button
entity: light.ytterbelysning
tap_action:
action: toggle
- type: entity-button
entity: light.fasadbelysning
tap_action:
action: toggle
- type: entity-button
entity: light.taklampor
name: Lampor inne
- type: horizontal-stack
cards:
- type: entity-button
entity: vacuum.xiaomi_vacuum_cleaner
name: Dammsugare
tap_action: !include
- /config/lovelace/functions/popup.yaml
- title: Dammsugare
card: /config/lovelace/popups/vacuum.yaml
- type: entity-button
entity: binary_sensor.sopor
- type: entity-button
entity: binary_sensor.door_open
name: Öppen dörr
tap_action: !include
- /config/lovelace/functions/popup.yaml
- title: Öppna dörrar
card: /config/lovelace/popups/doors.yaml