Files
sarah/config/kitchen-lovelace.yaml
2025-05-14 15:34:15 +03:00

187 lines
6.9 KiB
YAML

decluttering_templates: !include_dir_merge_named lovelace/decluttering_templates
button_card_templates: !include_dir_merge_named lovelace/button_card_templates
# kiosk_mode:
# kiosk: false
# hide_overflow: true
title: Sarah
views:
- title: Kitchen
path: kitchen
icon: "mdi:chef-hat"
background: "#333"
cards:
- type: custom:mod-card
style:
layout-card:
.: |
* {
--primary-color: black;
margin: 0 var(--main-layout-card-margin);
}
$:
horizontal-layout:
$:
.: |
#columns {
padding: 0 10px;
margin: 0 30px;
grid-gap: 20px;
}
card:
type: custom:layout-card
layout_type: custom:horizontal-layout
layout:
max_cols: 2
cards:
- type: vertical-stack
cards:
- type: 'custom:simple-clock-card'
hide_seconds: true
font_size: 4rem
paddingTop_size: 23px
paddingBottom_size: 23px
- type: horizontal-stack
cards:
- type: custom:button-card
template: v3_chip
entity: sensor.kitchen_weather_temperature
- type: custom:button-card
template: v3_chip
entity: sensor.kitchen_weather_humidity
- type: horizontal-stack
cards:
- type: custom:button-card
template: v3_chip_name
entity: binary_sensor.kitchen_motion_occupancy
name: Motion
- type: custom:button-card
template: v3_chip_name
entity: binary_sensor.kitchen_window_contact
name: Window
- type: custom:button-card
template: v3_chip_name
entity: binary_sensor.kitchen_door
name: Door
- type: custom:decluttering-card
template: v3_section_title
variables:
- title: Music
- type: horizontal-stack
cards:
- type: custom:button-card
template: v3_xs_button
entity: script.sonos_guitar_instrumental
tap_action:
action: call-service
service: script.sonos_guitar_instrumental
name: Китара
icon: mdi:music
show_state: false
- type: custom:button-card
template: v3_xs_button
entity: script.sonos_french
tap_action:
action: call-service
service: script.sonos_french
name: Шансони
icon: mdi:music
show_state: false
- type: custom:button-card
template: v3_xs_button
entity: script.sonos_starred
tap_action:
action: call-service
service: script.sonos_starred
name: Starred
icon: mdi:music
show_state: false
- type: custom:button-card
template: v3_xs_button
entity: media_player.kitchen
name: Stop
icon: mdi:stop
show_state: false
tap_action:
action: call-service
service: media_player.media_stop
service_data:
entity_id: media_player.master_bedroom
- 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: custom:decluttering-card
template: v3_section_title
variables:
- title: Devices
- type: horizontal-stack
cards:
- type: custom:button-card
template: v3_button
entity: media_player.kitchen
name: Sonos
hold_action:
action: call-service
service: media_player.media_play_pause
service_data:
entity_id: media_player.kitchen
- type: custom:button-card
template: v3_button
entity: binary_sensor.sonos_is_kitchen_grouped
name: Sonos Grouped
tap_action:
action: call-service
service: "[[[ return entity.state == 'on' ? 'script.sonos_kitchen_unjoin' : 'script.sonos_kitchen_join' ]]]"
- 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: horizontal-stack
# cards:
# - type: custom:button-card
# template: v3_button
# entity: vacuum.vacuum
# name: Vacuum
# - type: custom:button-card
# template: v3_button
# name: Coffe machine
# entity: button.coffee_machine
# show_state: false
# tap_action:
# action: call-service
# service: button.press
# service_data:
# entity_id: button.coffee_machine
- !include ./lovelace/popup_cards.yaml