added new phone views for battery and floorplan, fixed incorrect nav paths and some other minor fixes

This commit is contained in:
Burningstone91
2021-05-23 22:44:34 +02:00
parent c4b946e69b
commit 1e46672f0a
13 changed files with 751 additions and 317 deletions

View File

@@ -43,6 +43,23 @@
cards:
!include_dir_merge_list user/views/menu/
# Appliances View
- path: appliances
visible: false
panel: true
cards:
- type: vertical-stack
cards:
- !include
- base/templates/header/header-base-template.yaml
- title: {{ _global.header.automations_title|default('Appliances') }}
subtitle: "{{ _global.header.automations_subtitle|default('Overview') }}"
icon: {{ _global.header.automations_icon|default('mdi:alpha-a-box') }}
header-bottom: header-bottom.yaml
- type: vertical-stack
cards:
!include_dir_merge_list user/views/appliances/
# Automations View
- path: automations
visible: false
@@ -727,7 +744,7 @@
- base/templates/button/input-select-button.yaml
- entity: input_select.person_1
option: Overview
icon: mdi:account-heart
icon: mdi:music
- !include
- base/templates/button/input-select-button.yaml
- entity: input_select.person_1
@@ -953,6 +970,7 @@
subtitle: "{{ _global.header_user.custom_view_2_subtitle|default('Customize this in ../user/config/custom_views_header_config.yaml') }}"
icon: {{ _global.header_user.custom_view_2_icon|default('mdi:account-alert') }}
header-bottom: header-bottom.yaml
nav_path: media
- type: vertical-stack
cards:
!include_dir_merge_list user/views/custom_2/
@@ -970,6 +988,7 @@
subtitle: "{{ _global.header_user.custom_view_3_subtitle|default('Customize this in ../user/config/custom_views_header_config.yaml') }}"
icon: {{ _global.header_user.custom_view_3_icon|default('mdi:account-alert') }}
header-bottom: header-bottom.yaml
nav_path: media
- type: vertical-stack
cards:
!include_dir_merge_list user/views/custom_3/
@@ -987,6 +1006,7 @@
subtitle: "{{ _global.header_user.custom_view_4_subtitle|default('Customize this in ../user/config/custom_views_header_config.yaml') }}"
icon: {{ _global.header_user.custom_view_4_icon|default('mdi:account-alert') }}
header-bottom: header-bottom.yaml
nav_path: media
- type: vertical-stack
cards:
!include_dir_merge_list user/views/custom_4/
@@ -1004,6 +1024,7 @@
subtitle: "{{ _global.header_user.custom_view_5_subtitle|default('Customize this in ../user/config/custom_views_header_config.yaml') }}"
icon: {{ _global.header_user.custom_view_5_icon|default('mdi:account-alert') }}
header-bottom: header-bottom.yaml
nav_path: media
- type: vertical-stack
cards:
!include_dir_merge_list user/views/custom_5/

View File

@@ -29,7 +29,7 @@ entities:
- !include
- '../../templates/header/nav-icons.yaml'
- icon: {{ nav_icon|default('mdi:chevron-left') }}
path: {{ nav_path|default('menu') }}
path: {{ nav_path|default('home') }}
icon_size: {{ icon_size|default('100%') }}
- type: markdown
style: |

View File

@@ -67,9 +67,9 @@ header:
location_title: Standort
location_subtitle: Karte
media_title: Medien
media_subtitle: Center
media_title: Musik
media_subtitle: Multiroom
floorplan_title: Grundriss
floorplan_subtitle: Übersicht
@@ -111,7 +111,7 @@ header:
calendar_icon: mdi:calendar
light_icon: mdi:floor-lamp
location_icon: mdi:map-marker
media_icon: mdi:plex
media_icon: mdi:music
floorplan_icon: mdi:floor-plan
scenes_icon: mdi:arrange-send-backward
vacuum_icon: mdi:robot-vacuum

View File

@@ -0,0 +1,18 @@
# - type: vertical-stack
# cards:
- type: horizontal-stack
cards:
- !include ../../../base/includes/gap.yaml
- !include
- '../../../base/templates/other/title-text.yaml'
- name: Geschirrspüler
- type: horizontal-stack
cards:
- !include ../../../base/includes/gap.yaml
- !include
- '../../../base/templates/picture-elements/appliances-card.yaml'
- image: /local/images/appliances/dishwasher.jpg
entity_status: input_select.status_dishwasher
entity_switch: switch.plug_dishwasher
entity_wattage: sensor.power_dishwasher
- !include ../../../base/includes/gap.yaml

View File

@@ -0,0 +1,279 @@
- type: vertical-stack
cards:
# Hue Dimmer switches
- type: horizontal-stack
cards:
- !include ../../../base/includes/gap.yaml
- !include
- '../../../base/templates/other/title-text.yaml'
- name: Hue Fernbedienung - CR2450
- type: horizontal-stack
cards:
- !include ../../../base/includes/gap.yaml
- !include
- '../../../base/templates/button/button.yaml'
- entity: sensor.battery_level_remote_light_livingroom
tap_action: more-info
name: Wohnzimmer
- !include
- '../../../base/templates/button/button.yaml'
- entity: sensor.battery_level_remote_light_dressroom
tap_action: more-info
name: Ankleidezimmer
- !include
- '../../../base/templates/button/button.yaml'
- entity: sensor.battery_level_remote_light_bedroom
tap_action: more-info
name: Schlafzimmer
- !include ../../../base/includes/gap.yaml
- type: horizontal-stack
cards:
- !include ../../../base/includes/gap.yaml
- !include
- '../../../base/templates/button/button.yaml'
- entity: sensor.battery_level_remote_light_office
tap_action: more-info
name: Büro
- !include
- '../../../base/templates/button/button.yaml'
- entity: sensor.battery_level_remote_sabrina
tap_action: more-info
name: Sabrina
- !include
- '../../../base/templates/button/button.yaml'
- entity: sensor.battery_level_remote_dimitri
tap_action: more-info
name: Dimitri
- !include ../../../base/includes/gap.yaml
# Aeotec Multisensors
- type: horizontal-stack
cards:
- !include ../../../base/includes/gap.yaml
- !include
- '../../../base/templates/other/title-text.yaml'
- name: Multisensor - CR123A (2x)
- type: horizontal-stack
cards:
- !include ../../../base/includes/gap.yaml
- !include
- '../../../base/templates/button/button.yaml'
- entity: sensor.battery_level_multisensor_dressroom
tap_action: more-info
name: Ankleidezimmer
- !include
- '../../../base/templates/button/button.yaml'
- entity: sensor.battery_level_multisensor_bedroom
tap_action: more-info
name: Schlafzimmer
- !include
- '../../../base/templates/button/button.yaml'
- entity: sensor.battery_level_multisensor_bathroomsmall
tap_action: more-info
name: Kleines Bad
- !include ../../../base/includes/gap.yaml
# Hue Motion sensors
- type: horizontal-stack
cards:
- !include ../../../base/includes/gap.yaml
- !include
- '../../../base/templates/other/title-text.yaml'
- name: Hue Bewegungssensor - AAA (2x)
- type: horizontal-stack
cards:
- !include ../../../base/includes/gap.yaml
- !include
- '../../../base/templates/button/button.yaml'
- entity: sensor.battery_level_motion_livingroom
tap_action: more-info
name: Wohnzimmer
- !include ../../../base/includes/empty-button.yaml
- !include ../../../base/includes/empty-button.yaml
- !include ../../../base/includes/gap.yaml
# Temp/Humidity sensors
- type: horizontal-stack
cards:
- !include ../../../base/includes/gap.yaml
- !include
- '../../../base/templates/other/title-text.yaml'
- name: Temp-/Luftfeuchtigkeitsensor - CR2032 3V
- type: horizontal-stack
cards:
- !include ../../../base/includes/gap.yaml
- !include
- '../../../base/templates/button/button.yaml'
- entity: sensor.battery_level_temperature_bathroomsmall
tap_action: more-info
name: Kleines Bad
- !include
- '../../../base/templates/button/button.yaml'
- entity: sensor.battery_level_temperature_livingroom
tap_action: more-info
name: Wohnzimmer
- !include
- '../../../base/templates/button/button.yaml'
- entity: sensor.battery_level_temperature_storageroom
tap_action: more-info
name: Reduit
- !include ../../../base/includes/gap.yaml
# Lux sensors
- type: horizontal-stack
cards:
- !include ../../../base/includes/gap.yaml
- !include
- '../../../base/templates/other/title-text.yaml'
- name: Luxsensor - CR2032 3V
- type: horizontal-stack
cards:
- !include ../../../base/includes/gap.yaml
- !include
- '../../../base/templates/button/button.yaml'
- entity: sensor.battery_level_lux_office
tap_action: more-info
name: Büro
- !include
- '../../../base/templates/button/button.yaml'
- entity: sensor.battery_level_lux_outside
tap_action: more-info
name: Aussen
- !include ../../../base/includes/empty-button.yaml
- !include ../../../base/includes/gap.yaml
# Water leak sensors
- type: horizontal-stack
cards:
- !include ../../../base/includes/gap.yaml
- !include
- '../../../base/templates/other/title-text.yaml'
- name: Wasserlecksensoren - CR2032 3V
- type: horizontal-stack
cards:
- !include ../../../base/includes/gap.yaml
- !include
- '../../../base/templates/button/button.yaml'
- entity: sensor.battery_level_water_leak_bathroomlarge
tap_action: more-info
name: Grosses Bad
- !include
- '../../../base/templates/button/button.yaml'
- entity: sensor.battery_level_water_leak_bathroomsmall
tap_action: more-info
name: Kleines Bad
- !include
- '../../../base/templates/button/button.yaml'
- entity: sensor.battery_level_water_leak_storageroom
tap_action: more-info
name: Reduit
- !include ../../../base/includes/gap.yaml
- type: horizontal-stack
cards:
- !include ../../../base/includes/gap.yaml
- !include
- '../../../base/templates/button/button.yaml'
- entity: sensor.battery_level_water_leak_kitchen
tap_action: more-info
name: Küche
- !include ../../../base/includes/empty-button.yaml
- !include ../../../base/includes/empty-button.yaml
- !include ../../../base/includes/gap.yaml
# Door/Window sensors
- type: horizontal-stack
cards:
- !include ../../../base/includes/gap.yaml
- !include
- '../../../base/templates/other/title-text.yaml'
- name: Tür-/Fenstersensor- CR1632
- type: horizontal-stack
cards:
- !include ../../../base/includes/gap.yaml
- !include
- '../../../base/templates/button/button.yaml'
- entity: sensor.battery_level_door_livingroom
tap_action: more-info
name: Tür Wohnzimmer
- !include
- '../../../base/templates/button/button.yaml'
- entity: sensor.battery_level_door_kitchen
tap_action: more-info
name: Tür Küche
- !include
- '../../../base/templates/button/button.yaml'
- entity: sensor.battery_level_door_storageroom
tap_action: more-info
name: Tür Reduit
- !include ../../../base/includes/gap.yaml
- type: horizontal-stack
cards:
- !include ../../../base/includes/gap.yaml
- !include
- '../../../base/templates/button/button.yaml'
- entity: sensor.battery_level_door_dressroom
tap_action: more-info
name: Tür Ankleidezimmer
- !include
- '../../../base/templates/button/button.yaml'
- entity: sensor.battery_level_door_bathroomsmall
tap_action: more-info
name: Tür kleines Bad
- !include
- '../../../base/templates/button/button.yaml'
- entity: sensor.battery_level_door_bathroomlarge
tap_action: more-info
name: Tür grosses Bad
- !include ../../../base/includes/gap.yaml
- type: horizontal-stack
cards:
- !include ../../../base/includes/gap.yaml
- !include
- '../../../base/templates/button/button.yaml'
- entity: sensor.battery_level_door_main
tap_action: more-info
name: Eingangstür
- !include
- '../../../base/templates/button/button.yaml'
- entity: sensor.battery_level_door_bedroom
tap_action: more-info
name: Tür Schlafzimmer
- !include
- '../../../base/templates/button/button.yaml'
- entity: sensor.battery_level_door_office
tap_action: more-info
name: Tür Büro
- !include ../../../base/includes/gap.yaml
- type: horizontal-stack
cards:
- !include ../../../base/includes/gap.yaml
- !include
- '../../../base/templates/button/button.yaml'
- entity: sensor.battery_level_window_livingroom
tap_action: more-info
name: Fenster Wohnzimmer
- !include
- '../../../base/templates/button/button.yaml'
- entity: sensor.battery_level_window_kitchen
tap_action: more-info
name: Fenster Küche
- !include
- '../../../base/templates/button/button.yaml'
- entity: sensor.battery_level_window_dressroom
tap_action: more-info
name: Fenster Ankleidezimmer
- !include ../../../base/includes/gap.yaml
- type: horizontal-stack
cards:
- !include ../../../base/includes/gap.yaml
- !include
- '../../../base/templates/button/button.yaml'
- entity: sensor.battery_level_window_bedroom
tap_action: more-info
name: Fenster Schlafzimmer
- !include
- '../../../base/templates/button/button.yaml'
- entity: sensor.battery_level_window_office
tap_action: more-info
name: Fenster Büro
- !include
- '../../../base/templates/button/button.yaml'
- entity: sensor.battery_level_window_bathroomlarge
tap_action: more-info
name: Fenster grosses Bad
- !include ../../../base/includes/gap.yaml

View File

@@ -1,6 +0,0 @@
- type: markdown
content: >
***This is a dummy card***
Since github doesn't allow the uploading of empty folders, this card is a placeholder. You can safely delete this card!

View File

@@ -1,5 +1,22 @@
- type: vertical-stack
cards:
- type: horizontal-stack
cards:
- !include ../../../base/includes/gap.yaml
- !include
- '../../../base/templates/other/title-text.yaml'
- name: Wohnzimmer
- type: horizontal-stack
cards:
- !include ../../../base/includes/gap.yaml
- !include
- '../../../base/templates/button/button.yaml'
- entity: remote.wohnzimmer
name: TV
icon: mdi:projector
- !include ../../../base/includes/empty-button.yaml
- !include ../../../base/includes/empty-button.yaml
- !include ../../../base/includes/gap.yaml
- type: horizontal-stack
cards:
- !include ../../../base/includes/gap.yaml

View File

@@ -1,6 +1,306 @@
- type: markdown
content: >
***This is a dummy card***
Since github doesn't allow the uploading of empty folders, this card is a placeholder. You can safely delete this card!
- type: vertical-stack
cards:
- type: custom:button-card
color_type: blank-card
styles:
card:
- width: 3px
- type: horizontal-stack
cards:
- type: custom:button-card
color_type: blank-card
styles:
card:
- width: 3px
- type: picture-elements
image: /local/apartment_horizontal.svg
style: |
ha-card {
border-radius: 0px;
}
elements:
# Devices
## Dressroom
- type: image
entity: binary_sensor.door_dressroom
state_image:
"on": /local/floorplan_images/phone/tuer_schlafzimmer_offen.png
"off": /local/floorplan_images/phone/geschlossen.png
style:
top: 47.3%
left: 30.9%
width: 7.8%
- type: image
entity: binary_sensor.door_dressroom
state_image:
"on": /local/floorplan_images/phone/fenster_schlafzimmer_offen.png
"off": /local/floorplan_images/phone/geschlossen.png
style:
top: 55.9%
left: 5.5%
width: 6.9%
- type: image
entity: light.dressroom
tap_action:
action: toggle
state_image:
"on": /local/floorplan_images/phone/light_on.png
"off": /local/floorplan_images/phone/light_off.png
style:
top: 53.2%
left: 18.8%
width: 8.1%
- type: image
entity: switch.dehumidifier_dressroom
tap_action:
action: toggle
state_image:
"on": /local/floorplan_images/phone/fan_on.gif
"off": /local/floorplan_images/phone/fan_off.png
style:
top: 51.5%
left: 30.1%
width: 5.35%
## Small Bathroom
- type: image
entity: binary_sensor.door_bathroomsmall
state_image:
"on": /local/floorplan_images/phone/tuer_bad_klein_offen.png
"off": /local/floorplan_images/phone/geschlossen.png
style:
top: 35.3%
left: 30.6%
width: 7.7%
# Large Bathroom
- type: image
entity: binary_sensor.door_bathroomlarge
state_image:
"on": /local/floorplan_images/phone/tuer_bad_gross_offen.png
"off": /local/floorplan_images/phone/geschlossen.png
style:
top: 18.3%
left: 30.8%
width: 7.5%
- type: image
entity: binary_sensor.window_bathroomlarge
state_image:
"on": /local/floorplan_images/phone/fenster_bad_gross_offen.png
"off": /local/floorplan_images/phone/geschlossen.png
style:
top: 21.8%
left: 5.1%
width: 6.7%
# Bedroom
- type: image
entity: binary_sensor.door_bedroom
state_image:
"on": /local/floorplan_images/phone/tuer_ankleidezimmer_offen.png
"off": /local/floorplan_images/phone/geschlossen.png
style:
top: 25.4%
left: 50.2%
width: 7.6%
- type: image
entity: binary_sensor.window_bedroom
state_image:
"on": /local/floorplan_images/phone/fenster_ankleidezimmer_offen.png
"off": /local/floorplan_images/phone/geschlossen.png
style:
top: 31.6%
left: 94.5%
width: 6.5%
- type: image
entity: light.bedroom
tap_action:
action: toggle
state_image:
"on": /local/floorplan_images/phone/light_on_furniture.png
"off": /local/floorplan_images/phone/light_off_furniture.png
style:
top: 30%
left: 71.7%
width: 8.1%
- type: image
entity: media_player.music_bedroom
tap_action:
action: toggle
state_image:
"playing": /local/floorplan_images/phone/speaker-on.gif
"idle": /local/floorplan_images/phone/speaker-off.png
style:
top: 38.0%
left: 50.3%
width: 4.9%
# Office
- type: image
entity: binary_sensor.door_office
state_image:
"on": /local/floorplan_images/phone/tuer_buero_offen.png
"off": /local/floorplan_images/phone/geschlossen.png
style:
top: 17.7%
left: 50.3%
width: 7.8%
- type: image
entity: binary_sensor.window_office
state_image:
"on": /local/floorplan_images/phone/fenster_buero_offen.png
"off": /local/floorplan_images/phone/geschlossen.png
style:
top: 14.0%
left: 94.5%
width: 6.7%
- type: image
entity: light.office
tap_action:
action: toggle
state_image:
"on": /local/floorplan_images/phone/light_on.png
"off": /local/floorplan_images/phone/light_off.png
style:
top: 11.9%
left: 71.7%
width: 8.1%
- type: image
entity: media_player.music_office
tap_action:
action: toggle
state_image:
"playing": /local/floorplan_images/phone/speaker-on.gif
"idle": /local/floorplan_images/phone/speaker-off.png
style:
top: 18.1%
left: 76.1%
width: 6.9%
- type: image
entity: media_player.music_office
tap_action:
action: toggle
state_image:
"playing": /local/floorplan_images/phone/speaker-on.gif
"idle": /local/floorplan_images/phone/speaker-off.png
style:
top: 18.1%
left: 90.9%
width: 6.9%
# Storagre room
- type: image
entity: binary_sensor.door_storageroom
state_image:
"on": /local/floorplan_images/phone/tuer_reduit_offen.png
"off": /local/floorplan_images/phone/geschlossen.png
style:
top: 70.3%
left: 16.7%
width: 8.3%
# Kitchen
- type: image
entity: binary_sensor.window_kitchen
state_image:
"on": /local/floorplan_images/phone/fenster_kueche_offen.png
"off": /local/floorplan_images/phone/geschlossen.png
style:
top: 96.1%
left: 40.8%
width: 20.5%
- type: image
entity: binary_sensor.door_kitchen
state_image:
"on": /local/floorplan_images/phone/tuer_kueche_balkon_offen.png
"off": /local/floorplan_images/phone/geschlossen.png
style:
top: 93.9%
left: 52.2%
width: 6.6%
# Livingroom
- type: image
entity: binary_sensor.door_livingroom
state_image:
"on": /local/floorplan_images/phone/tuer_wohnzimmer_balkon_offen.png
"off": /local/floorplan_images/phone/geschlossen.png
style:
top: 78.7%
left: 89.7%
width: 8.9%
- type: image
entity: binary_sensor.window_livingroom
state_image:
"on": /local/floorplan_images/phone/fenster_wohnzimmer_offen.png
"off": /local/floorplan_images/phone/geschlossen.png
style:
top: 59.9%
left: 93.9%
width: 10.5%
- type: image
entity: light.livingroom
tap_action:
action: toggle
state_image:
"on": /local/floorplan_images/phone/light_on_furniture.png
"off": /local/floorplan_images/phone/light_off_furniture.png
style:
top: 58.8%
left: 76.5%
width: 8.1%
# Vacuum Cleaner
# - type: image
# entity: vacuum.livingroom
# image: /local/roomba.png
# filter: brightness(40%)
# state_filter:
# "on": brightness(100%)
# style:
# top: 42.8%
# left: 50.9%
# width: 5.1%
- type: image
entity: remote.wohnzimmer
tap_action:
action: call-service
service: remote.turn_off
service_data:
entity_id: remote.wohnzimmer
state_image:
"on": /local/floorplan_images/phone/projector_on.png
"off": /local/floorplan_images/phone/projector_off.png
style:
top: 67.3%
left: 76.5%
width: 7.6%
- type: image
entity: media_player.receiver_livingroom
tap_action:
action: toggle
state_image:
"on": /local/floorplan_images/phone/speaker-on.gif
"off": /local/floorplan_images/phone/speaker-off.png
style:
top: 45.7%
left: 62.8%
width: 6.9%
- type: image
entity: media_player.receiver_livingroom
tap_action:
action: toggle
state_image:
"on": /local/floorplan_images/phone/speaker-on.gif
"off": /local/floorplan_images/phone/speaker-off.png
style:
top: 45.7%
left: 88.8%
width: 6.9%
# House
- type: image
entity: binary_sensor.door_main
state_image:
"on": /local/floorplan_images/phone/tuer_wohnung_offen.png
"off": /local/floorplan_images/phone/geschlossen.png
style:
top: 3.8%
left: 41.1%
width: 10.2%
- type: custom:button-card
color_type: blank-card
styles:
card:
- width: 3px

View File

@@ -61,9 +61,9 @@
background_color: "[[[ if (states['input_number.empty'].state == 0) return 'rgba(0,0,0,0.0)'; else return 'var(--paper-item-icon-color)'; ]]]"
- !include
- '../../../base/templates/button/button-badge.yaml'
- name: Medien
label: Center
icon: mdi:plex
- name: Musik
label: Multiroom
icon: mdi:music
navigation_path: /phone-view/media
notification: "[[[ if (states['input_number.empty'].state == 0) return '&nbsp'; else return `${states['input_number.empty'].state}`; ]]]"
background_color: "[[[ if (states['input_number.empty'].state == 0) return 'rgba(0,0,0,0.0)'; else return 'var(--paper-item-icon-color)'; ]]]"

View File

@@ -1276,6 +1276,7 @@
margin-top: -25%;
}
- !include ../../../base/includes/gap.yaml
- !include ../../../base/includes/gap.yaml

View File

@@ -13,9 +13,9 @@
cards:
- !include
- '../../../base/templates/button/button-badge.yaml'
- name: Automations
label: Overview
icon: mdi:alpha-a-box
- name: Automationen
label: Übersicht
icon: mdi:robot
navigation_path: /phone-view/automations
notification: "[[[ if (states['input_number.empty'].state == 0) return '&nbsp'; else return `${states['input_number.empty'].state}`; ]]]"
background_color: "[[[ if (states['input_number.empty'].state == 0) return 'rgba(0,0,0,0.0)'; else return 'var(--paper-item-icon-color)'; ]]]"
@@ -39,7 +39,7 @@
- '../../../base/templates/button/button-badge.yaml'
- name: Haushalt
label: Aufgaben
icon: mdi:washing-machine
icon: mdi:broom
navigation_path: /phone-view/cleaning
notification: "[[[ if (states['input_number.empty'].state == 0) return '&nbsp'; else return `${states['input_number.empty'].state}`; ]]]"
background_color: "[[[ if (states['input_number.empty'].state == 0) return 'rgba(0,0,0,0.0)'; else return 'var(--paper-item-icon-color)'; ]]]"
@@ -54,11 +54,19 @@
- !include
- '../../../base/templates/button/button-badge.yaml'
- name: Geräte
label: Übersicht
label: Steuerung
icon: mdi:power-plug
navigation_path: /phone-view/devices
notification: "[[[ if (states['input_number.empty'].state == 0) return '&nbsp'; else return `${states['input_number.empty'].state}`; ]]]"
background_color: "[[[ if (states['input_number.empty'].state == 0) return 'rgba(0,0,0,0.0)'; else return 'var(--paper-item-icon-color)'; ]]]"
background_color: "[[[ if (states['input_number.empty'].state == 0) return 'rgba(0,0,0,0.0)'; else return 'var(--paper-item-icon-color)'; ]]]"
- !include
- '../../../base/templates/button/button-badge.yaml'
- name: Haushalt
label: Geräte
icon: mdi:washing-machine
navigation_path: /phone-view/appliances
notification: "[[[ if (states['input_number.empty'].state == 0) return '&nbsp'; else return `${states['input_number.empty'].state}`; ]]]"
background_color: "[[[ if (states['input_number.empty'].state == 0) return 'rgba(0,0,0,0.0)'; else return 'var(--paper-item-icon-color)'; ]]]"
- !include
- '../../../base/templates/button/button-badge.yaml'
- name: Grundriss
@@ -70,16 +78,16 @@
- !include
- '../../../base/templates/button/button-badge.yaml'
- name: Licht
label: Übersicht
label: Steuerung
icon: mdi:floor-lamp
navigation_path: /phone-view/lights
notification: "[[[ if (states['input_number.empty'].state == 0) return '&nbsp'; else return `${states['input_number.empty'].state}`; ]]]"
background_color: "[[[ if (states['input_number.empty'].state == 0) return 'rgba(0,0,0,0.0)'; else return 'var(--paper-item-icon-color)'; ]]]"
- !include
- '../../../base/templates/button/button-badge.yaml'
- name: Medien
label: Center
icon: mdi:plex
- name: Musik
label: Multiroom
icon: mdi:music
navigation_path: /phone-view/media
notification: "[[[ if (states['input_number.empty'].state == 0) return '&nbsp'; else return `${states['input_number.empty'].state}`; ]]]"
background_color: "[[[ if (states['input_number.empty'].state == 0) return 'rgba(0,0,0,0.0)'; else return 'var(--paper-item-icon-color)'; ]]]"
@@ -99,3 +107,27 @@
navigation_path: /phone-view/weather
notification: "[[[ if (states['input_number.empty'].state == 0) return '&nbsp'; else return `${states['input_number.empty'].state}`; ]]]"
background_color: "[[[ if (states['input_number.empty'].state == 0) return 'rgba(0,0,0,0.0)'; else return 'var(--paper-item-icon-color)'; ]]]"
- !include
- '../../../base/templates/button/button-badge.yaml'
- name: Einkauf
label: Liste
icon: mdi:cart
navigation_path: /phone-view/custom_1
notification: "[[[ if (states['input_number.empty'].state == 0) return '&nbsp'; else return `${states['input_number.empty'].state}`; ]]]"
background_color: "[[[ if (states['input_number.empty'].state == 0) return 'rgba(0,0,0,0.0)'; else return 'var(--paper-item-icon-color)'; ]]]"
- !include
- '../../../base/templates/button/button-badge.yaml'
- name: Developer
label: Tools
icon: mdi:hammer
navigation_path: /developer-tools/state
notification: "[[[ if (states['input_number.empty'].state == 0) return '&nbsp'; else return `${states['input_number.empty'].state}`; ]]]"
background_color: "[[[ if (states['input_number.empty'].state == 0) return 'rgba(0,0,0,0.0)'; else return 'var(--paper-item-icon-color)'; ]]]"
- !include
- '../../../base/templates/button/button-badge.yaml'
- name: Logs
label: Home Assistant
icon: mdi:math-log
navigation_path: /config/logs
notification: "[[[ if (states['input_number.empty'].state == 0) return '&nbsp'; else return `${states['input_number.empty'].state}`; ]]]"
background_color: "[[[ if (states['input_number.empty'].state == 0) return 'rgba(0,0,0,0.0)'; else return 'var(--paper-item-icon-color)'; ]]]"

View File

@@ -1,76 +1,30 @@
# - type: conditional
# conditions:
# - entity: input_select.person_1
# state: "Location"
# card:
# type: custom:mod-card
# style: |
# ha-card {
# margin-left: 7px;
# margin-right: 7px;
# }
# card:
# type: vertical-stack
# cards:
# - !include
# - '../../../base/templates/other/title-text.yaml'
# - name: Travel Times
# - type: custom:ha-card-waze-travel-time
# style: |
# ha-card { border-radius: var(--border-radius);
# box-shadow: var(--box-shadow);
# font-family: var(--font-family);
# font-size: 12px;
# opacity: 0.8;
# overflow: hidden;
# }
# .ha-card-waze td {
# color: var(--primary-text-color) !important;
# }
# unit: km
# columns:
# - to
# - duration
# - distance
# - icon
# header: 'false'
# destinations:
# - entity: sensor.reistijd_stephanie
# to: "Home"
# - entity: sensor.reistijd_stephanie_work
# to: "Work"
# - entity: sensor.reistijd_jimsteph
# to: "Stephanie"
# Overview
- type: conditional
conditions:
- entity: input_select.person_1
state: "Location"
state: "Overview"
card:
type: vertical-stack
cards:
- !include
- '../../../base/templates/other/title-text.yaml'
- name: Aktueller Standort
- type: map
style: |
ha-card {
--paper-item-icon-color: black;
color: black;
border-radius: var(--border-radius);
box-shadow: var(--box-shadow);
font-family: var(--font-family);
font-size: var(--name-font-size);
opacity: 0.8;
overflow: hidden;
}
default_zoom: 15
aspect_ratio: 4x6
entities:
- person.dimitri
type: custom:mod-card
style: |
ha-card {
margin-left: 7px;
margin-right: 7px;
}
card:
type: vertical-stack
cards:
- !include
- '../../../base/templates/other/title-text.yaml'
- name: Musik Büro
- type: media-control
style: |
ha-card {
border-radius: var(--border-radius);
box-shadow: var(--box-shadow);
}
entity: media_player.mpd_office
# Calendar
- type: conditional
conditions:
- entity: input_select.person_1
@@ -96,10 +50,43 @@
}
entities:
- calendar.personlich
# - calendar.family
- calendar.geburtstage
- !include ../../../base/includes/gap.yaml
# Location
- type: conditional
conditions:
- entity: input_select.person_1
state: "Location"
card:
type: vertical-stack
cards:
- type: horizontal-stack
cards:
- !include ../../../base/includes/gap.yaml
- !include
- '../../../base/templates/other/title-text.yaml'
- name: Aktueller Standort
- type: horizontal-stack
cards:
- !include ../../../base/includes/gap.yaml
- type: map
style: |
ha-card {
--paper-item-icon-color: black;
color: black;
border-radius: var(--border-radius);
box-shadow: var(--box-shadow);
font-family: var(--font-family);
font-size: var(--name-font-size);
opacity: 0.8;
overflow: hidden;
}
default_zoom: 15
aspect_ratio: 6x9
entities:
- person.dimitri
- !include ../../../base/includes/gap.yaml
# Train Connections
# - type: conditional
# conditions:
# - entity: input_select.person_1
@@ -124,215 +111,6 @@
# box-shadow: var(--box-shadow);
# }
# image: /local/images/citroenc1.jpg
# - type: conditional
# conditions:
# - entity: input_select.person_1
# state: "Vehicle"
# card:
# type: custom:mod-card
# style: |
# ha-card {
# margin-left: 7px;
# margin-right: 7px;
# }
# card:
# type: vertical-stack
# cards:
# - !include
# - '../../../base/templates/other/title-text.yaml'
# - name: General Information
# - type: entities
# style: |
# ha-card {
# border-radius: var(--border-radius);
# box-shadow: var(--box-shadow);
# font-family: var(--font-family);
# font-size: 12px;
# opacity: 0.8;
# }
# entities:
# - entity: sensor.kenteken_stephanie
# name: Kenteken
# icon: mdi:numeric
# - entity: sensor.citroen_c1_expdate
# name: APK
# icon: mdi:tools
# - entity: sensor.citroen_c1_insured
# name: Verzekerd
# icon: mdi:shield-car
# - type: conditional
# conditions:
# - entity: input_select.person_1
# state: "Vehicle"
# card:
# type: custom:mod-card
# style: |
# ha-card {
# margin-left: 7px;
# margin-right: 7px;
# }
# card:
# type: vertical-stack
# cards:
# - !include
# - '../../../base/templates/other/title-text.yaml'
# - name: Maintenance
# - type: 'custom:vertical-stack-in-card'
# cards:
# - !include
# - '../../../user/templates/check-button.yaml'
# - title: Olie
# entity: sensor.citroen_olie
# value_1: 3 months
# value_2: 6 months
# value_3: 9 months
# - !include
# - '../../../user/templates/check-button.yaml'
# - title: Banden
# entity: sensor.citroen_banden
# value_1: 3 months
# value_2: 6 months
# value_3: 9 months
# - !include
# - '../../../user/templates/check-button.yaml'
# - title: Wassen
# entity: sensor.citroen_clean
# value_1: 1 month
# value_2: 3 months
# value_3: 6 months
# - !include
# - '../../../user/templates/check-button.yaml'
# - title: Stofzuigen
# entity: sensor.citroen_stof
# value_1: 1 month
# value_2: 3 months
# value_3: 6 months
# - !include
# - '../../../user/templates/check-button.yaml'
# - title: Ruiten
# entity: sensor.citroen_window
# value_1: 1 month
# value_2: 3 months
# value_3: 6 months
# - type: conditional
# conditions:
# - entity: input_select.person_1
# state: "Vehicle"
# card:
# type: custom:mod-card
# style: |
# ha-card {
# margin-left: 7px;
# margin-right: 7px;
# }
# card:
# type: vertical-stack
# cards:
# - !include
# - '../../../base/templates/other/title-text.yaml'
# - name: Other Information
# - type: entities
# style: |
# ha-card {
# border-radius: var(--border-radius);
# box-shadow: var(--box-shadow);
# font-family: var(--font-family);
# font-size: 12px;
# opacity: 0.8;
# }
# entities:
# - entity: sensor.euro_95_e10_advies
# name: Adviesprijs E10 (Euro 95)
# icon: mdi:gas-station
# - entity: sensor.car_wash
# name: Kan ik de auto wassen?
# icon: mdi:car-wash
# - type: conditional
# conditions:
# - entity: input_select.person_1
# state: "Vehicle"
# card:
# type: custom:mod-card
# style: |
# ha-card {
# margin-left: 7px;
# margin-right: 7px;
# }
# card:
# type: vertical-stack
# cards:
# - !include
# - '../../../base/templates/other/title-text.yaml'
# - name: Help
# - type: entities
# style: |
# ha-card {
# border-radius: var(--border-radius);
# box-shadow: var(--box-shadow);
# font-family: var(--font-family);
# font-size: 12px;
# opacity: 0.8;
# }
# entities:
# - type: weblink
# style: |
# a {
# color: var(--primary-text-color) !important;
# }
# name: ANWB Bellen
# url: tel:+31882692222
# icon: 'fal:phone'
# - type: conditional
# conditions:
# - entity: input_select.person_1
# state: "Overview"
# card:
# type: custom:mod-card
# style: |
# ha-card {
# margin-left: 7px;
# margin-right: 7px;
# }
# card:
# type: vertical-stack
# cards:
# - !include
# - '../../../base/templates/other/title-text.yaml'
# - name: Spotify Player
# - type: media-control
# style: |
# ha-card {
# border-radius: var(--border-radius);
# box-shadow: var(--box-shadow);
# }
# entity: media_player.spotify_stephanie_schings
# - type: conditional
# conditions:
# - entity: input_select.person_1
# state: "Overview"
# card:
# type: custom:mod-card
# style: |
# ha-card {
# margin-left: 7px;
# margin-right: 7px;
# }
# card:
# type: vertical-stack
# cards:
# - !include
# - '../../../base/templates/other/title-text.yaml'
# - name: Playlists
# - type: 'custom:spotify-card'
# style: |
# ha-card {
# border-radius: var(--border-radius);
# box-shadow: var(--box-shadow);
# font-family: var(--font-family);
# }
# account: stephanie

View File

@@ -1,6 +0,0 @@
- type: markdown
content: >
***This is a dummy card***
Since github doesn't allow the uploading of empty folders, this card is a placeholder. You can safely delete this card!