mirror of
https://github.com/GeorgeSG/sarah.git
synced 2026-05-15 12:34:42 +00:00
168 lines
5.7 KiB
YAML
168 lines
5.7 KiB
YAML
- type: custom:mod-card
|
|
style:
|
|
layout-card:
|
|
.: |
|
|
* {
|
|
--primary-color: #6A737A
|
|
}
|
|
|
|
$:
|
|
horizontal-layout:
|
|
$:
|
|
.: |
|
|
#columns {
|
|
margin: 0 20px;
|
|
grid-gap: 20px;
|
|
}
|
|
card:
|
|
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: Preferences
|
|
- type: horizontal-stack
|
|
cards:
|
|
- type: custom:button-card
|
|
template: v3_button_person
|
|
entity: input_boolean.georgi_home
|
|
styles:
|
|
card:
|
|
- background-image: url("/local/images/people/georgi.jpg")
|
|
- type: custom:button-card
|
|
template: v3_button_person
|
|
entity: input_boolean.player_2_home
|
|
styles:
|
|
card:
|
|
- background-image: url("/local/images/people/maya.jpg")
|
|
# - type: custom:button-card
|
|
# template: v3_button_person
|
|
# entity: input_boolean.player_2_home
|
|
# styles:
|
|
# card:
|
|
# - background-image: url("/local/images/people/milena.jpg")
|
|
- type: custom:button-card
|
|
template: v3_badge
|
|
entity: binary_sensor.someone_home
|
|
- type: custom:button-card
|
|
template: v3_badge
|
|
entity: binary_sensor.someone_sleeping
|
|
|
|
- type: horizontal-stack
|
|
cards:
|
|
- type: custom:button-card
|
|
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(':');
|
|
]]]
|
|
name: Alarm
|
|
variables:
|
|
state_indicator_id: automation.alarm_set_time
|
|
- type: custom:button-card
|
|
template: v3_button
|
|
entity: input_boolean.speech_notifications
|
|
name: Speech
|
|
- type: custom:button-card
|
|
template: v3_button
|
|
entity: input_boolean.simulation_mode
|
|
name: Simulation
|
|
|
|
- type: horizontal-stack
|
|
cards:
|
|
- type: custom:button-card
|
|
template: v3_button
|
|
entity: binary_sensor.pi_hole_enabled
|
|
name: Pi-Hole
|
|
icon: mdi:pi-hole
|
|
- type: custom:button-card
|
|
template: v3_button
|
|
entity: switch.mercury_home_mode
|
|
name: Mercury
|
|
- type: custom:button-card
|
|
template: v3_button
|
|
entity: input_select.bedroom_mode
|
|
name: Bedroom
|
|
tap_action:
|
|
action: call-service
|
|
service: input_select.select_next
|
|
service_data:
|
|
entity_id: input_select.bedroom_mode
|
|
|
|
- type: horizontal-stack
|
|
cards:
|
|
- type: custom:button-card
|
|
template: v3_button
|
|
name: Guests
|
|
entity: input_boolean.guest_mode
|
|
- type: custom:button-card
|
|
template: v3_button
|
|
entity: input_boolean.guest_bedroom
|
|
name: G. Bedroom Occupied
|
|
- type: custom:button-card
|
|
template: v3_button
|
|
entity: input_select.guest_bedroom_mode
|
|
name: G. Bedroom
|
|
tap_action:
|
|
action: call-service
|
|
service: input_select.select_next
|
|
service_data:
|
|
entity_id: input_select.guest_bedroom_mode
|
|
|
|
- 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
|
|
|
|
|
|
- type: custom:decluttering-card
|
|
template: v3_section_title
|
|
variables:
|
|
- title: Preferences Milena
|
|
- type: horizontal-stack
|
|
cards:
|
|
- type: custom:button-card
|
|
template: v3_button
|
|
entity: input_number.guest_bedroom_light_temp
|