Add sports subview to mobile dashboard
This commit is contained in:
@ -653,15 +653,25 @@ views:
|
||||
grid_options:
|
||||
columns: 6
|
||||
rows: auto
|
||||
- type: custom:decluttering-card
|
||||
template: main_button_name
|
||||
variables:
|
||||
- name: Sports
|
||||
- icon: mdi:football
|
||||
- navigation_path: /dashboard-mobile/sports
|
||||
- columns: 2
|
||||
grid_options:
|
||||
columns: 6
|
||||
rows: auto
|
||||
- type: custom:decluttering-card
|
||||
template: main_button_name
|
||||
variables:
|
||||
- name: Running
|
||||
- icon: mdi:database-clock
|
||||
- navigation_path: '#running'
|
||||
- columns: 4
|
||||
- columns: 2
|
||||
grid_options:
|
||||
columns: 12
|
||||
columns: 6
|
||||
rows: auto
|
||||
visibility:
|
||||
- condition: user
|
||||
@ -5028,6 +5038,8 @@ views:
|
||||
action: none
|
||||
double_tap_action:
|
||||
action: none
|
||||
type: masonry
|
||||
subview: true
|
||||
- title: Global Scenes
|
||||
path: global-scenes
|
||||
icon: mdi:home-lightbulb-outline
|
||||
@ -5172,16 +5184,6 @@ views:
|
||||
name: Ibuprofen Active
|
||||
- entity: input_boolean.tony_tylenol_active
|
||||
name: Tylenol Active
|
||||
- type: grid
|
||||
cards:
|
||||
- type: heading
|
||||
heading: Settings
|
||||
heading_style: title
|
||||
- type: entities
|
||||
entities:
|
||||
- entity: input_text.material_rounded_base_color_tony_stork
|
||||
secondary_info: none
|
||||
name: Theme Color
|
||||
- type: grid
|
||||
cards:
|
||||
- type: heading
|
||||
@ -5275,16 +5277,6 @@ views:
|
||||
name: Ibuprofen Active
|
||||
- entity: input_boolean.tina_tylenol_active
|
||||
name: Tylenol Active
|
||||
- type: grid
|
||||
cards:
|
||||
- type: heading
|
||||
heading: Settings
|
||||
heading_style: title
|
||||
- type: entities
|
||||
entities:
|
||||
- entity: input_text.material_rounded_base_color_christina_stork
|
||||
secondary_info: none
|
||||
name: Theme Color
|
||||
- type: grid
|
||||
cards:
|
||||
- type: heading
|
||||
@ -5338,16 +5330,6 @@ views:
|
||||
name: Night Reminders
|
||||
show_header_toggle: false
|
||||
state_color: true
|
||||
- type: grid
|
||||
cards:
|
||||
- type: heading
|
||||
heading: Settings
|
||||
heading_style: title
|
||||
- type: entities
|
||||
entities:
|
||||
- entity: input_text.material_rounded_base_color_kallen_stork
|
||||
secondary_info: none
|
||||
name: Theme Color
|
||||
- type: grid
|
||||
cards:
|
||||
- type: heading
|
||||
@ -5567,4 +5549,226 @@ views:
|
||||
hold_action:
|
||||
action: more-info
|
||||
entity: timer.kallen_timer
|
||||
- title: Sports
|
||||
path: sports
|
||||
icon: mdi:football
|
||||
type: sections
|
||||
sections:
|
||||
- type: grid
|
||||
cards:
|
||||
- type: heading
|
||||
heading: NCAAF
|
||||
- type: custom:teamtracker-card
|
||||
entity: sensor.michigan_wolverines
|
||||
visibility:
|
||||
- condition: state
|
||||
entity: sensor.michigan_wolverines
|
||||
state_not: NOT_FOUND
|
||||
- condition: state
|
||||
entity: sensor.michigan_wolverines
|
||||
state_not: BYE
|
||||
- condition: state
|
||||
entity: binary_sensor.michigan_wolverines_inhibit
|
||||
state: 'off'
|
||||
- type: custom:teamtracker-card
|
||||
entity: sensor.ohio_state_buckeyes
|
||||
visibility:
|
||||
- condition: state
|
||||
entity: sensor.ohio_state_buckeyes
|
||||
state_not: NOT_FOUND
|
||||
- condition: state
|
||||
entity: sensor.ohio_state_buckeyes
|
||||
state_not: BYE
|
||||
- condition: state
|
||||
entity: binary_sensor.ohio_state_buckeyes_inhibit
|
||||
state: 'off'
|
||||
- type: custom:teamtracker-card
|
||||
entity: sensor.toledo_rockets
|
||||
visibility:
|
||||
- condition: state
|
||||
entity: sensor.toledo_rockets
|
||||
state_not: NOT_FOUND
|
||||
- condition: state
|
||||
entity: sensor.toledo_rockets
|
||||
state_not: BYE
|
||||
- condition: state
|
||||
entity: binary_sensor.toledo_rockets_inhibit
|
||||
state: 'off'
|
||||
column_span: 3
|
||||
visibility:
|
||||
- condition: or
|
||||
conditions:
|
||||
- condition: state
|
||||
entity: binary_sensor.michigan_wolverines_inhibit
|
||||
state: 'off'
|
||||
- condition: state
|
||||
entity: binary_sensor.ohio_state_buckeyes_inhibit
|
||||
state: 'off'
|
||||
- condition: state
|
||||
entity: binary_sensor.toledo_rockets_inhibit
|
||||
state: 'off'
|
||||
- type: grid
|
||||
cards:
|
||||
- type: heading
|
||||
heading: NFL
|
||||
- type: custom:teamtracker-card
|
||||
entity: sensor.minnesota_vikings
|
||||
visibility:
|
||||
- condition: state
|
||||
entity: sensor.minnesota_vikings
|
||||
state_not: NOT_FOUND
|
||||
- condition: state
|
||||
entity: sensor.minnesota_vikings
|
||||
state_not: BYE
|
||||
- condition: state
|
||||
entity: binary_sensor.minnesota_vikings_inhibit
|
||||
state: 'off'
|
||||
- type: custom:teamtracker-card
|
||||
entity: sensor.san_francisco_49ers
|
||||
visibility:
|
||||
- condition: state
|
||||
entity: sensor.san_francisco_49ers
|
||||
state_not: NOT_FOUND
|
||||
- condition: state
|
||||
entity: sensor.san_francisco_49ers
|
||||
state_not: BYE
|
||||
- condition: state
|
||||
entity: binary_sensor.san_francisco_49ers_inhibit
|
||||
state: 'off'
|
||||
column_span: 2
|
||||
visibility:
|
||||
- condition: or
|
||||
conditions:
|
||||
- condition: state
|
||||
entity: binary_sensor.minnesota_vikings_inhibit
|
||||
state: ''
|
||||
- condition: state
|
||||
entity: binary_sensor.san_francisco_49ers_inhibit
|
||||
state: 'off'
|
||||
- type: grid
|
||||
cards:
|
||||
- type: heading
|
||||
heading: MLB
|
||||
- type: custom:teamtracker-card
|
||||
entity: sensor.minnesota_twins
|
||||
visibility:
|
||||
- condition: state
|
||||
entity: sensor.minnesota_twins
|
||||
state_not: NOT_FOUND
|
||||
- condition: state
|
||||
entity: sensor.minnesota_twins
|
||||
state_not: BYE
|
||||
- condition: state
|
||||
entity: binary_sensor.minnesota_twins_inhibit
|
||||
state: 'off'
|
||||
- type: custom:teamtracker-card
|
||||
entity: sensor.cleveland_guardians
|
||||
visibility:
|
||||
- condition: state
|
||||
entity: sensor.cleveland_guardians
|
||||
state_not: NOT_FOUND
|
||||
- condition: state
|
||||
entity: sensor.cleveland_guardians
|
||||
state_not: BYE
|
||||
- condition: state
|
||||
entity: binary_sensor.cleveland_guardians_inhibit
|
||||
state: 'off'
|
||||
- type: custom:teamtracker-card
|
||||
entity: sensor.los_angeles_dodgers
|
||||
visibility:
|
||||
- condition: state
|
||||
entity: sensor.los_angeles_dodgers
|
||||
state_not: NOT_FOUND
|
||||
- condition: state
|
||||
entity: sensor.los_angeles_dodgers
|
||||
state_not: BYE
|
||||
- condition: state
|
||||
entity: binary_sensor.los_angeles_dodgers_inhibit
|
||||
state: 'off'
|
||||
column_span: 3
|
||||
visibility:
|
||||
- condition: or
|
||||
conditions:
|
||||
- condition: state
|
||||
entity: binary_sensor.minnesota_twins_inhibit
|
||||
state: 'off'
|
||||
- condition: state
|
||||
entity: binary_sensor.cleveland_guardians_inhibit
|
||||
state: 'off'
|
||||
- condition: state
|
||||
entity: binary_sensor.los_angeles_dodgers_inhibit
|
||||
state: 'off'
|
||||
- type: grid
|
||||
cards:
|
||||
- type: heading
|
||||
heading: NHL
|
||||
- type: custom:teamtracker-card
|
||||
entity: sensor.minnesota_wild
|
||||
visibility:
|
||||
- condition: state
|
||||
entity: sensor.minnesota_wild
|
||||
state_not: NOT_FOUND
|
||||
- condition: state
|
||||
entity: sensor.minnesota_wild
|
||||
state_not: BYE
|
||||
- condition: state
|
||||
entity: binary_sensor.minnesota_wild_inhibit
|
||||
state: 'off'
|
||||
column_span: 1
|
||||
visibility:
|
||||
- condition: state
|
||||
entity: binary_sensor.minnesota_wild_inhibit
|
||||
state: 'off'
|
||||
- type: grid
|
||||
cards:
|
||||
- type: heading
|
||||
heading: Motorsports
|
||||
- type: custom:mushroom-template-card
|
||||
primary: Hello, {{user}}
|
||||
secondary: For the latest Formula 1 statistics, tap this card!
|
||||
icon: fas:flag-checkered
|
||||
icon_color: |-
|
||||
{% if is_state('sensor.formula_one','PRE') %}
|
||||
white
|
||||
{% elif is_state('sensor.formula_one','IN') %}
|
||||
green
|
||||
{% elif is_state('sensor.formula_one','POST') %}
|
||||
red
|
||||
{% else %}
|
||||
black
|
||||
{% endif %}
|
||||
badge_icon: |-
|
||||
{% if is_state('sensor.formula_one','PRE') %}
|
||||
mdi:car-clock
|
||||
{% elif is_state('sensor.formula_one','IN') %}
|
||||
mdi:car-multiple
|
||||
{% elif is_state('sensor.formula_one','POST') %}
|
||||
mdi:flag-checkered
|
||||
{% else %}
|
||||
mdi:close
|
||||
{% endif %}
|
||||
layout: horizontal
|
||||
fill_container: false
|
||||
multiline_secondary: false
|
||||
tap_action:
|
||||
action: navigate
|
||||
navigation_path: /lovelace/formula-1
|
||||
hold_action:
|
||||
action: none
|
||||
double_tap_action:
|
||||
action: none
|
||||
badge_color: |-
|
||||
{% if is_state('sensor.formula_one','PRE') %}
|
||||
grey
|
||||
{% elif is_state('sensor.formula_one','IN') %}
|
||||
green
|
||||
{% elif is_state('sensor.formula_one','POST') %}
|
||||
red
|
||||
{% else %}
|
||||
black
|
||||
{% endif %}
|
||||
column_span: 1
|
||||
max_columns: 5
|
||||
cards: []
|
||||
subview: true
|
||||
title: ''
|
||||
|
Reference in New Issue
Block a user