Overhaul main dashboard, integrate cameras, update media player configs, add play/pause button for chromecasts
parent
5aa51d0e4c
commit
247530e3a2
@ -1 +1,2 @@
|
||||
compiled
|
||||
cameras.yaml
|
@ -0,0 +1,34 @@
|
||||
# Dashboard Config
|
||||
title: Cameras
|
||||
widget_dimensions: [120, 120]
|
||||
widget_size: [1, 1]
|
||||
widget_margins: [5, 5]
|
||||
columns: 8
|
||||
rows: 19
|
||||
global_parameters:
|
||||
use_hass_icon: 1
|
||||
|
||||
nav_back:
|
||||
widget_type: navigate
|
||||
dashboard: Main
|
||||
icon_inactive: mdi-arrow-left-bold-outline
|
||||
widget_style: "background: MEDIUMSLATEBLUE;"
|
||||
|
||||
# Layout
|
||||
layout:
|
||||
- include: header
|
||||
- include: cameras
|
||||
- nav_main, clock(5x1), nav_back, reload
|
||||
- camera_stairs(8x6)
|
||||
-
|
||||
-
|
||||
-
|
||||
-
|
||||
-
|
||||
- camera_deck(8x6)
|
||||
-
|
||||
-
|
||||
-
|
||||
-
|
||||
-
|
||||
- camera_living_room(8x6)
|
@ -0,0 +1,22 @@
|
||||
# Dashboard Config
|
||||
title: Entertainment
|
||||
widget_dimensions: [120, 120]
|
||||
widget_size: [1, 1]
|
||||
widget_margins: [5, 5]
|
||||
columns: 4
|
||||
rows: 3
|
||||
global_parameters:
|
||||
use_hass_icon: 1
|
||||
|
||||
nav_back:
|
||||
widget_type: navigate
|
||||
dashboard: Main
|
||||
icon_inactive: mdi-arrow-left-bold-outline
|
||||
widget_style: "background: MEDIUMSLATEBLUE;"
|
||||
|
||||
# Layout
|
||||
layout:
|
||||
- include: header
|
||||
- nav_main, clock, nav_back, reload
|
||||
- include: entertainment
|
||||
- bedroom_tv(2x2), living_room_tv(2x2)
|
@ -0,0 +1,43 @@
|
||||
play_pause_living_room_tv:
|
||||
widget_type: switch
|
||||
title: Living Room
|
||||
entity: switch.living_room_tv
|
||||
icon_on: mdi-pause
|
||||
icon_off: mdi-play
|
||||
|
||||
mute_living_room_tv:
|
||||
widget_type: switch
|
||||
title: Living Room
|
||||
entity: switch.living_room_tv_mute
|
||||
icon_on: mdi-volume-off
|
||||
icon_off: mdi-volume-high
|
||||
|
||||
play_pause_bedroom_tv:
|
||||
widget_type: switch
|
||||
title: Bedroom
|
||||
entity: switch.bedroom_tv
|
||||
icon_on: mdi-pause
|
||||
icon_off: mdi-play
|
||||
|
||||
mute_bedroom_tv:
|
||||
widget_type: switch
|
||||
title: Living Room
|
||||
entity: switch.bedroom_tv_mute
|
||||
icon_on: mdi-volume-off
|
||||
icon_off: mdi-volume-high
|
||||
|
||||
bedroom_tv:
|
||||
widget_type: media_player
|
||||
entity: media_player.bedroom_tv
|
||||
title: Bedroom TV
|
||||
step: 5
|
||||
icon_on: mdi-power-settings
|
||||
icon_off: mdi-power
|
||||
|
||||
living_room_tv:
|
||||
widget_type: media_player
|
||||
entity: media_player.living_room_tv
|
||||
title: Living Room TV
|
||||
step: 5
|
||||
icon_on: mdi-power-settings
|
||||
icon_off: mdi-power
|
@ -1,2 +1,2 @@
|
||||
media_player:
|
||||
!secret google_casts
|
||||
media_player:
|
||||
!secret google_casts
|
||||
|
@ -0,0 +1,75 @@
|
||||
- platform: template
|
||||
switches:
|
||||
living_room_tv:
|
||||
value_template: "{{ is_state('media_player.living_room_tv', 'playing') }}"
|
||||
turn_on:
|
||||
service: media_player.media_play
|
||||
data:
|
||||
entity_id: media_player.living_room_tv
|
||||
turn_off:
|
||||
service: media_player.media_pause
|
||||
data:
|
||||
entity_id: media_player.living_room_tv
|
||||
icon_template: >-
|
||||
{% if is_state('media_player.living_room_tv', 'playing') %}
|
||||
mdi:pause
|
||||
{% else %}
|
||||
mdi:play
|
||||
{% endif %}
|
||||
|
||||
#- platform: template
|
||||
# switches:
|
||||
# living_room_tv_mute:
|
||||
# value_template: "{{ state_attr('media_player.living_room_tv', 'is_volume_muted') != 'false' }}"
|
||||
# turn_on:
|
||||
# service: media_player.volume_mute
|
||||
# data:
|
||||
# entity_id: media_player.living_room_tv
|
||||
# turn_off:
|
||||
# service: media_player.volume_mute
|
||||
# data:
|
||||
# entity_id: media_player.living_room_tv
|
||||
# icon_template: >-
|
||||
# {% if state_attr('media_player.living_room_tv', 'is_volume_muted') != 'false' %}
|
||||
# mdi:volume-high
|
||||
# {% else %}
|
||||
# mdi:volume-off
|
||||
# {% endif %}
|
||||
|
||||
- platform: template
|
||||
switches:
|
||||
bedroom_tv:
|
||||
value_template: "{{ is_state('media_player.bedroom_tv', 'playing') }}"
|
||||
turn_on:
|
||||
service: media_player.media_play
|
||||
data:
|
||||
entity_id: media_player.bedroom_tv
|
||||
turn_off:
|
||||
service: media_player.media_pause
|
||||
data:
|
||||
entity_id: media_player.bedroom_tv
|
||||
icon_template: >-
|
||||
{% if is_state('media_player.bedroom_tv', 'playing') %}
|
||||
mdi:pause
|
||||
{% else %}
|
||||
mdi:play
|
||||
{% endif %}
|
||||
|
||||
#- platform: template
|
||||
# switches:
|
||||
# bedroom_tv_mute:
|
||||
# value_template: "{{ state_attr('media_player.bedroom_tv', 'is_volume_muted') != 'false' }}"
|
||||
# turn_on:
|
||||
# service: media_player.volume_mute
|
||||
# data:
|
||||
# entity_id: media_player.bedroom_tv
|
||||
# turn_off:
|
||||
# service: media_player.volume_mute
|
||||
# data:
|
||||
# entity_id: media_player.bedroom_tv
|
||||
# icon_template: >-
|
||||
# {% if state_attr('media_player.bedroom_tv', 'is_volume_muted') != 'false' %}
|
||||
# mdi:volume-high
|
||||
# {% else %}
|
||||
# mdi:volume-off
|
||||
# {% endif %}
|
Loading…
Reference in new issue