This commit is contained in:
2021-10-10 19:02:34 +03:00
parent 4245f8d2d9
commit 67a1fd9853
87 changed files with 1995 additions and 1226 deletions
@@ -1,6 +1,11 @@
- type: custom:mod-card
style:
layout-card:
.: |
* {
--primary-color: #FF7900
}
$:
horizontal-layout:
$:
@@ -13,20 +18,31 @@
type: custom:layout-card
layout_type: custom:horizontal-layout
layout:
max_cols: 2
max_cols: 3
cards:
- type: vertical-stack
cards:
- type: custom:decluttering-card
template: media_with_controls
template: v3_title
variables:
- player: media_player.bathroom
- player_name: Bathroom
- title: Bathroom
- type: custom:decluttering-card
template: climate_card
variables:
- title: "Climate"
- main_entity: sensor.bathroom_weather_temperature
- left_entity: sensor.bathroom_weather_humidity
- right_entity: sensor.bathroom_weather_pressure
- type: horizontal-stack
cards:
- type: custom:button-card
template: v3_badge_temp
entity: sensor.bathroom_weather_temperature
- type: custom:button-card
template: v3_badge_humidity
entity: sensor.bathroom_weather_humidity
- type: custom:decluttering-card
template: v3_section_title
variables:
- title: Devices
- type: horizontal-stack
cards:
- type: custom:button-card
template: v3_button
entity: media_player.bathroom
name: Sonos
@@ -1,6 +1,11 @@
- type: custom:mod-card
style:
layout-card:
.: |
* {
--primary-color: #871CAB
}
$:
horizontal-layout:
$:
@@ -16,141 +21,140 @@
max_cols: 3
cards:
- type: vertical-stack
title: Bedroom
cards:
- type: custom:decluttering-card
template: v3_title
variables:
- title: Bedroom
- type: horizontal-stack
cards:
- type: custom:button-card
template: default
entity: light.master_bedroom
name: Bedroom
template: v3_badge_temp
entity: sensor.bedroom_weather_temperature
state_display: "[[[return entity.state.split(' ')[0] + '°']]]"
- type: custom:button-card
template: default
template: v3_badge_humidity
entity: sensor.bedroom_weather_humidity
- type: custom:button-card
template: v3_badge
entity: sensor.purifier_air_quality
state_display: "[[[return entity.state.split(' ')[0] + ' pm2.5']]]"
variables:
state_size: "11px"
- type: custom:button-card
template: v3_badge_icon
entity: binary_sensor.bedroom_left_window
- type: custom:button-card
template: v3_badge_icon
entity: binary_sensor.bedroom_right_window
- type: horizontal-stack
cards:
- type: custom:button-card
template: v3_badge_icon
entity: binary_sensor.bedroom_door
- type: custom:decluttering-card
template: v3_section_title
variables:
- title: Scenes
- type: custom:decluttering-card
template: v3_horizontal_stack_card
variables:
- cards:
- type: custom:button-card
template: v3_scene
entity: scene.bedroom_neon
name: Neon
variables:
scene_color_1: rgb(255, 0, 190)
scene_color_2: rgb(0, 255, 190)
- type: custom:button-card
template: v3_scene
entity: scene.bedroom_ambient_neon
name: Ambient neon
variables:
scene_color_1: rgb(255, 0, 190)
scene_color_2: rgb(0, 255, 190)
- type: custom:button-card
template: v3_scene
entity: scene.bedroom_default
name: Regular
variables:
scene_color_1: rgb(254, 255, 209)
- type: custom:button-card
template: v3_scene
entity: scene.bedroom_ambient_default
name: Ambient regular
variables:
scene_color_1: rgb(254, 255, 209)
- type: custom:button-card
template: v3_scene
entity: scene.bedroom_pink
name: Pink
variables:
scene_color_1: rgb(255, 92, 38)
scene_color_2: rgb(255, 0, 190)
- type: custom:button-card
template: v3_scene
entity: scene.bedroom_ambient_pink
name: Ambient pink
variables:
scene_color_1: rgb(255, 92, 38)
scene_color_2: rgb(255, 0, 190)
- type: custom:decluttering-card
template: v3_section_title
variables:
- title: Lights
- type: horizontal-stack
cards:
- type: custom:button-card
template: v3_button_light
entity: light.master_bedroom
name: All
- type: custom:button-card
template: v3_button_light
entity: light.master_bedroom_main
name: Main
- type: custom:button-card
template: default
entity: light.bed_led
name: Bed
tap_action:
action: call-service
service: script.bed_led_toggle
- type: custom:button-card
template: default
template: v3_button_light
entity: light.bedside
name: Bedside
- type: horizontal-stack
cards:
- type: custom:button-card
template: [small, scene]
entity: scene.bedroom_ambient_neon
name: Neon
variables:
scene_color_1: rgb(255, 0, 190)
scene_color_2: rgb(0, 255, 190)
tap_action:
action: call-service
service: script.apply_bedroom_neon
- type: custom:button-card
template: [small, scene]
entity: scene.bedroom_ambient_neon
name: Ambient neon
variables:
scene_color_1: rgb(255, 0, 190)
scene_color_2: rgb(0, 255, 190)
tap_action:
action: call-service
service: script.apply_bedroom_ambient_neon
- type: custom:button-card
template: [small, scene]
entity: scene.bedroom_default
name: Regular
variables:
scene_color_1: rgb(254, 255, 209)
- type: custom:button-card
template: [small, scene]
entity: scene.bedroom_ambient_default
name: Ambient regular
variables:
scene_color_1: rgb(254, 255, 209)
- type: custom:button-card
template: [small, scene]
entity: scene.bedroom_ambient_pink
name: Ambient pink
tap_action:
action: call-service
service: script.apply_bedroom_pink
variables:
scene_color_1: rgb(255, 92, 38)
scene_color_2: rgb(255, 0, 190)
template: v3_button_light
entity: light.bed_led
name: Bed
- type: vertical-stack
cards:
- type: custom:decluttering-card
template: v3_section_title
variables:
- title: Devices
- type: horizontal-stack
title: Climate
cards:
- type: custom:button-card
template: radiator_button
entity: climate.bedroom_radiator_mode
template: v3_button
entity: media_player.master_bedroom
name: Sonos
- type: custom:button-card
template: [default, with_state_indicator]
template: v3_button_purifier
entity: fan.philips_airpurifier
variables:
state_indicator_id: binary_sensor.purifier_filter_needs_change
state_indicator_size: 5px
state_indicator_off_size: 0px
state_indicator_on_color: var(--color-red)
state_on_indicator_on_color: var(--color-red)
name: Air Purifier
- type: custom:button-card
template: default
entity: sensor.purifier_speed
tap_action:
action: call-service
service: input_select.select_next
service_data:
entity_id: input_select.purifier_speed
- type: custom:button-card
template: default
entity: sensor.purifier_function
tap_action:
action: call-service
service: script.purifier_toggle_function
- type: custom:decluttering-card
template: purifier_target_humidity
template: v3_button_radiator
entity: climate.bedroom_radiator_mode
name: Radiator
- type: horizontal-stack
cards:
- type: custom:button-card
template: default
entity: binary_sensor.bedroom_door
name: Door
- type: custom:button-card
template: default
entity: binary_sensor.bedroom_left_window
name: Left window
- type: custom:button-card
template: default
entity: binary_sensor.bedroom_right_window
name: Right window
- type: vertical-stack
cards:
- type: custom:decluttering-card
template: climate_card
variables:
- title: "Climate"
- main_entity: sensor.bedroom_weather_temperature
- left_entity: sensor.bedroom_weather_humidity
- right_entity: sensor.bedroom_weather_pressure
- type: vertical-stack
cards:
- type: custom:decluttering-card
template: media_with_controls
variables:
- player: media_player.master_bedroom
- player_name: Bedroom
- type: vertical-stack
title: Camera
cards:
- type: custom:decluttering-card
template: v3_section_title
variables:
- title: Camera
- type: picture-glance
camera_image: camera.bedroom_hd
entities:
@@ -1,30 +0,0 @@
- type: custom:mod-card
style:
layout-card:
$:
horizontal-layout:
$:
.: |
#columns {
margin: 0 20px;
grid-gap: 20px;
}
card:
type: custom:layout-card
layout_type: custom:horizontal-layout
layout:
max_cols: 2
cards:
- type: vertical-stack
title: Living Room
cards:
- type: picture-glance
camera_image: camera.mercury_amcrest_1
entities: []
- type: vertical-stack
title: Bedroom
cards:
- type: picture-glance
camera_image: camera.mercury_bedroom
entities: []
@@ -1,6 +1,11 @@
- type: custom:mod-card
style:
layout-card:
.: |
* {
--primary-color: #188A9C
}
$:
horizontal-layout:
$:
@@ -13,54 +18,44 @@
type: custom:layout-card
layout_type: custom:horizontal-layout
layout:
max_cols: 2
max_cols: 3
cards:
- type: vertical-stack
title: Hallway
cards:
- type: horizontal-stack
cards:
- type: custom:button-card
template: default
entity: light.hallway
name: Hallway
- type: custom:button-card
template: default
entity: light.hallway_entrance
name: Entrance
- type: custom:button-card
template: default
entity: light.hallway_main
name: Main
- type: horizontal-stack
title: "Sensors"
cards:
- type: custom:button-card
template: default
entity: binary_sensor.front_door
name: Front door
- type: custom:button-card
template: [default, with_state_indicator]
entity: group.hallway_motion
name: Motion
variables:
state_indicator_id: automation.lighting_hallway_motion_on
- type: custom:button-card
template: [regular, progress]
entity: sensor.hallway_motion_illuminance
name: Lux
variables:
min_value: 0
max_value: 1000
normal_value: 1000
- type: vertical-stack
cards:
- type: custom:decluttering-card
template: climate_card
template: v3_title
variables:
- title: "Climate"
- main_entity: sensor.hallway_weather_temperature
- left_entity: sensor.hallway_weather_humidity
- right_entity: sensor.hallway_weather_pressure
- title: Hallway
- type: horizontal-stack
cards:
- type: custom:button-card
template: v3_badge_temp
entity: sensor.hallway_weather_temperature
- type: custom:button-card
template: v3_badge_humidity
entity: sensor.hallway_weather_humidity
- type: custom:button-card
template: v3_badge_icon
entity: binary_sensor.hallway_motion_occupancy
- type: custom:button-card
template: v3_badge_icon
entity: binary_sensor.front_door
- type: custom:decluttering-card
template: v3_section_title
variables:
- title: Lights
- type: horizontal-stack
cards:
- type: custom:button-card
template: v3_button_light
entity: light.hallway
name: All
- type: custom:button-card
template: v3_button_light
entity: light.hallway_main
name: Main
- type: custom:button-card
template: v3_button_light
entity: light.hallway_entrance
name: Entrance
@@ -1,6 +1,11 @@
- type: custom:mod-card
style:
layout-card:
.: |
* {
--primary-color: #58892D
}
$:
horizontal-layout:
$:
@@ -9,72 +14,4 @@
margin: 0 20px;
grid-gap: 20px;
}
card:
type: custom:layout-card
layout_type: custom:horizontal-layout
layout:
max_cols: 2
cards:
- type: vertical-stack
title: Kitchen
cards:
- type: horizontal-stack
cards:
- type: custom:button-card
template: default
entity: light.kitchen
name: Kitchen
- type: custom:button-card
template: default
entity: light.kitchen_main
name: Main
- type: custom:button-card
template: default
entity: light.kitchen_secondary
name: Secondary
- type: vertical-stack
cards:
- type: custom:button-card
template: half
entity: light.hallway_entrance
name: Entrance
- type: custom:button-card
template: half
entity: light.hallway_main
name: Hallway
styles:
card:
- height: 46px
- type: horizontal-stack
title: Devices
cards:
- type: custom:button-card
template: brita_water
- type: custom:button-card
template: radiator_button
entity: climate.kitchen_radiator_mode
- type: custom:button-card
template: default
entity: vacuum.vacuum
name: Vacuum
- type: custom:button-card
template: default
entity: binary_sensor.kitchen_window
name: Window
- type: custom:decluttering-card
template: media_with_controls
variables:
- player: media_player.kitchen
- player_name: Kitchen
- type: vertical-stack
cards:
- type: custom:decluttering-card
template: climate_card
variables:
- title: "Climate"
- main_entity: sensor.kitchen_weather_temperature
- left_entity: sensor.kitchen_weather_humidity
- right_entity: sensor.kitchen_weather_pressure
card: !include kitchen_dashboard_card.yaml
@@ -0,0 +1,70 @@
type: custom:layout-card
layout_type: custom:horizontal-layout
layout:
max_cols: 3
cards:
- type: vertical-stack
cards:
- type: custom:decluttering-card
template: v3_title
variables:
- title: Kitchen
- type: horizontal-stack
cards:
- type: custom:button-card
template: v3_badge_temp
entity: sensor.kitchen_weather_temperature
- type: custom:button-card
template: v3_badge_humidity
entity: sensor.kitchen_weather_humidity
- type: custom:button-card
template: v3_badge_icon
entity: binary_sensor.kitchen_motion_occupancy
- type: custom:button-card
template: v3_badge_icon
entity: binary_sensor.kitchen_window
- type: custom:decluttering-card
template: v3_section_title
variables:
- title: Lights
- type: horizontal-stack
cards:
- type: custom:button-card
template: v3_button_light
entity: light.kitchen
name: All
- type: custom:button-card
template: v3_button_light
entity: light.kitchen_main
name: Main
- type: custom:button-card
template: v3_button_light
entity: light.kitchen_secondary
name: Secondary
- type: vertical-stack
cards:
- type: custom:decluttering-card
template: v3_section_title
variables:
- title: Devices
- type: horizontal-stack
cards:
- type: custom:button-card
template: v3_button_brita_water
- type: custom:button-card
template: v3_button_radiator
entity: climate.kitchen_radiator_mode
name: Radiator
- type: custom:button-card
template: v3_button
entity: vacuum.vacuum
name: Vacuum
- type: horizontal-stack
cards:
- type: custom:button-card
template: v3_button
entity: media_player.kitchen
name: Sonos
@@ -1,6 +1,11 @@
- type: custom:mod-card
style:
layout-card:
.: |
* {
--primary-color: #0040A0
}
$:
horizontal-layout:
$:
@@ -16,137 +21,127 @@
max_cols: 3
cards:
- type: vertical-stack
title: Living room
cards:
- type: custom:decluttering-card
template: v3_title
variables:
- title: Living room
- type: horizontal-stack
cards:
- type: custom:button-card
template: default
entity: light.living_room
name: Living room
template: v3_badge_temp
entity: sensor.multisensor_6_temperature
- type: custom:button-card
template: default
entity: light.living_room_main
name: Main
template: v3_badge_humidity
entity: sensor.multisensor_6_relative_humidity
- type: custom:button-card
template: default
entity: light.pc
name: PC
- type: custom:button-card
template: default
entity: light.living_room_ambient
name: Ambient
- type: vertical-stack
cards:
- type: custom:button-card
template: half
entity: light.living_room_ambient_main
name: Main
- type: custom:button-card
template: half
entity: light.light_avatar_small_1
name: Secondary
styles:
card:
- height: 46px
- type: horizontal-stack
template: v3_badge_icon
entity: binary_sensor.living_room_right_window
- type: custom:decluttering-card
template: v3_section_title
variables:
- title: Scenes
- type: vertical-stack
cards:
- type: custom:button-card
template: [small, scene]
template: v3_scene
entity: scene.living_room_ambient_neon
name: Neon
variables:
scene_color_1: rgb(255, 0, 190)
scene_color_2: rgb(0, 255, 190)
scene_color_1: rgba(255, 0, 190, 0.7)
scene_color_2: rgba(0, 255, 190, 0.7)
- type: custom:button-card
template: [small, scene]
template: v3_scene
entity: scene.living_room_ambient_default
name: Regular
name: Warm
variables:
scene_color_1: rgb(254, 255, 209)
scene_color_1: rgba(240, 240, 190, 0.7)
scene_color_2: rgba(255, 210, 170, 0.7)
- type: custom:decluttering-card
template: v3_section_title
variables:
- title: Lights
- type: horizontal-stack
title: Devices
cards:
- type: custom:button-card
template: [default, cover]
template: v3_button_light
entity: light.living_room
name: All
- type: custom:button-card
template: v3_button_light
entity: light.living_room_main
name: Main
- type: custom:button-card
template: v3_button_light
entity: light.pc
name: PC
- type: horizontal-stack
cards:
- type: custom:button-card
template: v3_button_light
entity: light.living_room_ambient
name: Ambient
- type: custom:button-card
template: v3_button_light
entity: light.living_room_ambient_main
name: Ambient Main
- type: custom:button-card
template: v3_button
entity: light.light_avatar_small_1
name: Ambient 2nd
- type: vertical-stack
cards:
- type: custom:decluttering-card
template: v3_section_title
variables:
- title: "Devices"
- type: horizontal-stack
cards:
- type: custom:button-card
template: v3_button
entity: media_player.living_room
name: Sonos
- type: custom:button-card
template: v3_button_tv
entity: media_player.living_room_tv
name: TV
- type: custom:button-card
template: v3_button_cover
entity: cover.living_room
name: Cover
name: Blinds
tap_action:
action: call-service
service: script.toggle_living_room_cover
- type: custom:button-card
template: radiator_button
entity: climate.living_room_radiator_mode
- type: custom:button-card
template: ac_button
- type: custom:button-card
template: default
entity: binary_sensor.living_room_right_window
name: Window
- type: horizontal-stack
cards:
- type: custom:button-card
template: default
entity: media_player.living_room_tv
name: TV
icon: mdi:television
template: v3_button_radiator
entity: climate.living_room_radiator_mode
name: Radiator
- type: custom:button-card
template: v3_button_ac
entity: climate.toshiba_ac
name: AC
tap_action:
action: toggle
state:
- value: 'playing'
styles: &on_styles
card:
- background-color: var(--primary-color)
- color: black
icon:
- color: black
- value: 'standby'
styles: *on_styles
- value: 'on'
styles: *on_styles
- value: 'home'
styles: *on_styles
- value: 'idle'
styles: *on_styles
- type: custom:button-card
template: [default, with_state_indicator]
entity: switch.titanium
variables:
state_indicator_id: automation.titanium_turn_off_when_idle
action: call-service
service: script.toshiba_ac_toggle
- type: custom:button-card
template: [regular, progress]
entity: sensor.desk_outlet_power
name: Desk power
template: v3_button_power
entity: switch.desk_outlet
name: Desk Outlet
variables:
min_value: 1
max_value: 800
normal_value: 100
high_value: 300
power_sensor: sensor.desk_outlet_power
- type: vertical-stack
cards:
- type: custom:decluttering-card
template: climate_card
variables:
- title: "Climate"
- main_entity: sensor.multisensor_6_temperature
- left_entity: sensor.multisensor_6_relative_humidity
- left_name: Humidity (6)
- right_entity: sensor.multisensor_6_luminance
- right_name: Luminance (6)
- type: vertical-stack
cards:
- type: custom:decluttering-card
template: media_with_controls
variables:
- player: media_player.living_room
- player_name: Living room
- type: vertical-stack
title: Camera
cards:
- type: custom:decluttering-card
template: v3_section_title
variables:
- title: Camera
- type: picture-glance
camera_image: camera.mercury_amcrest_1
entities: []
@@ -1,271 +0,0 @@
- type: custom:mod-card
style:
layout-card:
$:
horizontal-layout:
$:
.: |
#columns {
margin: 0 20px;
grid-gap: 20px;
}
card:
type: custom:layout-card
layout_type: custom:horizontal-layout
layout:
max_cols: 3
cards:
# Column 1
- type: vertical-stack
cards:
- type: vertical-stack
title: Lights
cards:
- type: horizontal-stack
cards:
- type: custom:button-card
template: half
icon: none
entity: light.all
name: All
- type: custom:button-card
template: half
icon: none
entity: light.ceiling
name: Ceiling
- type: horizontal-stack
cards:
- type: custom:button-card
template: default
entity: light.living_room
name: Living room
- type: custom:button-card
template: default
entity: light.living_room_main
name: Main
- type: custom:button-card
template: default
entity: light.pc
- type: custom:button-card
template: default
entity: light.living_room_ambient
name: Ambient
- type: horizontal-stack
cards:
- type: custom:button-card
template: default
entity: light.master_bedroom
name: Bedroom
- type: custom:button-card
template: default
entity: light.master_bedroom_main
name: Main
- type: custom:button-card
template: default
entity: light.bed_led
name: Bed
tap_action:
action: call-service
service: script.bed_led_toggle
- type: custom:button-card
template: default
entity: light.bedside
name: Bedside
- type: horizontal-stack
cards:
- type: custom:button-card
template: default
entity: light.kitchen
name: Kitchen
- type: custom:button-card
template: default
entity: light.hallway_main
name: Hallway
- type: custom:button-card
template: default
entity: light.hallway_entrance
name: Entrance
- type: vertical-stack
title: Climate
cards:
- type: horizontal-stack
cards:
- type: custom:button-card
template: [regular, progress]
entity: sensor.average_temperature
icon: mdi:thermometer
state_display: "[[[ return Math.round(entity.state) + ' °C' ]]]"
- type: custom:button-card
template: [regular, progress]
entity: sensor.average_humidity
icon: mdi:water-percent
state_display: "[[[ return Math.round(entity.state) + ' %' ]]]"
variables:
min_value: 25
max_value: 90
normal_value: 40
high_value: 65
low_color: "var(--color-red)"
# Column 2
- type: vertical-stack
cards:
- type: vertical-stack
cards:
- type: vertical-stack
title: Devices
cards:
- type: horizontal-stack
cards:
- type: custom:button-card
template: [default, cover]
entity: cover.living_room
name: LR Cover
tap_action:
action: call-service
service: script.toggle_living_room_cover
- type: custom:button-card
template: regular
entity: media_player.living_room_tv
name: TV
icon: mdi:television
tap_action:
action: toggle
state:
- value: 'playing'
styles: &on_styles
card:
- background-color: var(--primary-color)
- color: black
icon:
- color: black
- value: 'standby'
styles: *on_styles
- value: 'on'
styles: *on_styles
- value: 'home'
styles: *on_styles
- value: 'idle'
styles: *on_styles
- type: custom:button-card
template: [default, with_state_indicator]
entity: switch.titanium
variables:
state_indicator_id: automation.titanium_turn_off_when_idle
- type: custom:button-card
template: default
entity: binary_sensor.pi_hole_enabled
name: Pi-Hole
icon: mdi:pi-hole
- type: horizontal-stack
cards:
- type: custom:button-card
template: ac_button
- type: custom:button-card
template: radiator_button
entity: climate.living_room_radiator_mode
name: "Living room"
- type: custom:button-card
template: radiator_button
entity: climate.bedroom_radiator_mode
name: "Bedroom"
- type: custom:button-card
template: radiator_button
entity: climate.kitchen_radiator_mode
name: "Kitchen"
- type: horizontal-stack
cards:
- type: custom:button-card
template: default
entity: camera.mercury_amcrest_1
name: Living Room
- type: custom:button-card
template: default
entity: switch.tapo_bedroom
name: Bedroom
- type: custom:button-card
template: [default, with_state_indicator]
entity: fan.philips_airpurifier
variables:
state_indicator_id: binary_sensor.purifier_filter_needs_change
state_indicator_size: 5px
state_indicator_off_size: 0px
state_indicator_on_color: var(--color-red)
state_on_indicator_on_color: var(--color-red)
- type: custom:button-card
template: default
entity: vacuum.vacuum
name: Vacuum
- type: custom:button-card
template: brita_water
- type: vertical-stack
title: Sensors
cards:
- type: horizontal-stack
cards:
- type: custom:button-card
template: default
entity: binary_sensor.living_room_right_window
name: Living room
- type: custom:button-card
template: default
entity: binary_sensor.bedroom_left_window
name: Bedroom left
- type: custom:button-card
template: default
entity: binary_sensor.bedroom_right_window
name: Bedroom right
- type: custom:button-card
template: default
entity: binary_sensor.kitchen_window
name: Kitchen
- type: horizontal-stack
cards:
- type: custom:button-card
template: default
entity: binary_sensor.georgi_home
tap_action:
action: call-service
service: input_boolean.toggle
service_data:
entity_id: input_boolean.georgi_home
- type: custom:button-card
template: default
entity: binary_sensor.front_door
- type: custom:button-card
template: default
entity: binary_sensor.bedroom_door
# Column 3
- type: vertical-stack
cards:
- type: vertical-stack
cards:
- type: custom:decluttering-card
template: media_with_controls
variables:
- player: media_player.master_bedroom
- player_name: Bedroom
- type: custom:decluttering-card
template: sonos_media_player_small
variables:
- player: media_player.living_room
- name: Living room
- type: custom:decluttering-card
template: sonos_media_player_small
variables:
- player: media_player.kitchen
- name: Kitchen
- type: custom:decluttering-card
template: sonos_media_player_small
variables:
- player: media_player.bathroom
- name: Bathroom
@@ -1,6 +1,11 @@
- type: custom:mod-card
style:
layout-card:
.: |
* {
--primary-color: #6A737A
}
$:
horizontal-layout:
$:
@@ -13,78 +18,99 @@
type: custom:layout-card
layout_type: custom:horizontal-layout
layout:
max_cols: 2
max_cols: 3
cards:
- type: vertical-stack
title: Temperature
cards:
- type: entities
show_header_toggle: false
entities:
- input_boolean.heating_enabled
- input_number.radiators_temperature
- script.turn_on_all_radiators
- type: divider
- input_boolean.ac_heating
- input_number.toshiba_heat_temp
- input_number.toshiba_cool_temp
- input_number.toshiba_trigger_temp
- type: entities
entities:
- input_number.bathroom_high_volume
- type: custom:decluttering-card
template: v3_title
variables:
- title: Preferences
- type: vertical-stack
title: Controls
cards:
- type: horizontal-stack
cards:
- type: custom:button-card
template: [default, with_state_indicator, with_state_background]
template: [v3_button, with_state_indicator]
entity: input_boolean.alarm_enabled
state_display: >-
[[[
if (entity.state === 'off') { return 'Off'; }
const time = states['input_datetime.alarm_time'].state;
return time.split(':').slice(0, -1).join(':');
]]]
show_state: true
show_name: false
styles:
icon:
- transform: translateY(0) # adjusted for state indicator size
state:
- transform: translateY(-8px) # adjusted for state indicator size
name: Alarm
variables:
state_indicator_id: automation.alarm_set_time
- type: custom:button-card
template: default
template: v3_button
entity: input_boolean.speech_notifications
name: Speech
- type: custom:button-card
template: default
entity: binary_sensor.house_mode
template: v3_button
entity: input_select.house_mode
name: House
tap_action:
action: call-service
service: input_select.select_next
service_data:
entity_id: input_select.house_mode
- type: custom:button-card
template: default
name: Guests
entity: input_boolean.guest_mode
- type: horizontal-stack
cards:
- type: custom:button-card
template: default
template: v3_button
name: Guests
entity: input_boolean.guest_mode
- type: custom:button-card
template: v3_button
entity: input_boolean.simulation_mode
name: Simulation
- type: custom:button-card
template: default
template: v3_button
entity: switch.mercury_home_mode
name: Mercury
- type: horizontal-stack
cards:
- type: custom:button-card
template: default
template: v3_button
entity: binary_sensor.pi_hole_enabled
name: Pi-Hole
icon: mdi:pi-hole
- type: custom:decluttering-card
template: v3_section_title
variables:
- title: Media
- type: entities
entities:
- input_number.bathroom_high_volume
- type: vertical-stack
cards:
- type: custom:decluttering-card
template: v3_section_title
variables:
- title: Climate
- type: horizontal-stack
cards:
- type: custom:button-card
template: v3_button
entity: input_boolean.heating_enabled
name: Central Heating
- type: custom:button-card
template: v3_button
entity: input_boolean.ac_heating
name: AC Heating
- type: custom:button-card
template: v3_button
entity: script.turn_on_all_radiators
name: Turn On Radiators
- type: entities
show_header_toggle: false
entities:
- input_number.radiators_temperature
- type: divider
- input_number.toshiba_heat_temp
- input_number.toshiba_cool_temp
- input_number.toshiba_trigger_temp