Files
sarah/lovelace/hallway_dashboard/at_home_dashboard.yaml
T
Georgi Gardev 055a2eb484 Implement chips
2022-12-01 16:02:01 +02:00

245 lines
8.2 KiB
YAML

type: custom:mod-card
style:
layout-card:
$:
horizontal-layout:
$:
.: |
#columns {
padding-left: 10px;
margin: 0 20px;
grid-gap: 20px;
}
card:
type: custom:layout-card
layout_type: custom:horizontal-layout
layout:
max_cols: 2
cards:
# Column 1
- type: vertical-stack
cards:
- type: 'custom:simple-clock-card'
hide_seconds: true
font_size: 4rem
padding_size: 0px
style: |
ha-card {
background: none;
box-shadow: none;
margin-top: 30px;
text-align: left;
}
- type: horizontal-stack
cards:
- type: custom:button-card
template: v3_chip_person
entity: input_boolean.georgi_home
entity_picture: /local/images/people/georgi.jpg
- type: custom:button-card
template: v3_chip_person
entity: input_boolean.player_2_home
entity_picture: /local/images/people/maya.jpg
- type: custom:button-card
template: v3_chip
entity: sensor.average_temperature
icon: mdi:thermometer
- type: custom:button-card
template: v3_chip
entity: sensor.average_humidity
icon: mdi:water-percent
- type: horizontal-stack
cards:
- type: custom:button-card
template: v3_chip_name
entity: group.all_motion_sensors
icon: |
[[[
return entity.state === 'off' ? 'mdi:motion-sensor-off' : 'mdi:motion-sensor';
]]]
name: Motion
tap_action:
action: more-info
- type: custom:button-card
template: v3_chip_entity_count
entity: sensor.open_window_count
variables:
entity_type: window
icon: |
[[[
return entity.state === 0 ? 'mdi:window-closed' : 'mdi:window-open';
]]]
- type: custom:button-card
template: v3_chip_entity_count
entity: sensor.open_door_count
variables:
entity_type: door
icon: |
[[[
return entity.state === 0 ? 'mdi:door-closed' : 'mdi:door-open';
]]]
- type: custom:decluttering-card
template: v3_section_title
variables:
- title: Modes & Devices
- type: horizontal-stack
cards:
- type: custom:button-card
template: v3_tablet_button
entity: input_select.hallway_dashboard_mode
name: Mode
styles:
card:
- background-color: var(--primary-color)
tap_action:
action: call-service
service: input_select.select_next
service_data:
entity_id: input_select.hallway_dashboard_mode
- type: custom:button-card
template: v3_tablet_button
entity: input_boolean.guest_mode
tap_action:
action: toggle
- type: custom:button-card
template: [v3_button_tv, v3_tablet_button]
entity: media_player.living_room_tv
name: TV
- type: custom:button-card
template: v3_tablet_button
entity: switch.cadmium
- type: horizontal-stack
cards:
- type: custom:button-card
template: [v3_button_ac, v3_tablet_button]
entity: climate.toshiba_ac
name: AC
tap_action:
action: call-service
service: script.toshiba_ac_toggle
- type: custom:button-card
template: [v3_button_radiator, v3_tablet_button]
entity: climate.living_room_radiator_mode
name: "Living room"
- type: custom:button-card
template: [v3_button_radiator, v3_tablet_button]
entity: climate.bedroom_radiator_mode
name: "Bedroom"
- type: custom:button-card
template: [v3_button_radiator, v3_tablet_button]
entity: climate.kitchen_radiator_mode
name: "Kitchen"
- type: horizontal-stack
cards:
- type: custom:button-card
template: v3_tablet_button
entity: media_player.master_bedroom
name: Sonos
hold_action:
action: call-service
service: media_player.media_play_pause
service_data:
entity_id: media_player.master_bedroom
- type: custom:button-card
template: [v3_button_cover, v3_tablet_button]
entity: cover.living_room
name: LR Blinds
tap_action:
action: call-service
service: script.toggle_living_room_cover
- type: custom:button-card
template: [v3_button_purifier, v3_tablet_button]
entity: fan.philips_airpurifier
name: Air Purifier
- type: custom:button-card
template: v3_button_brita_water
variables:
long_state: false
styles:
card:
- width: 100px
- height: 100px
- border-radius: 16px
icon:
- top: 4px
- left: 12px
- width: 20px
- height: 20px
- --mdc-icon-size: 20px
state:
- bottom: 4px
- left: 12px
name:
- left: 12px
- bottom: 22px
- width: 60px
- font-size: 13px
# Column 2
- type: vertical-stack
cards:
- type: custom:weather-card
entity: weather.dark_sky
forecast: false
- type: markdown
content: >-
{% set forecast = states('sensor.dark_sky_hourly_summary') %}
{{ forecast }}
- type: custom:decluttering-card
template: v3_section_title
variables:
- title: Lights
- type: horizontal-stack
cards:
- type: custom:button-card
template: v3_xs_button
entity: light.living_room
name: Living room
- type: custom:button-card
template: v3_xs_button
entity: light.living_room_main
name: Main
- type: custom:button-card
template: v3_xs_button
entity: light.hue_ambiance_7
- type: custom:button-card
template: v3_xs_button
entity: light.living_room_ambient
name: Ambient
- type: horizontal-stack
cards:
- type: custom:button-card
template: v3_xs_button
entity: light.master_bedroom
name: Bedroom
- type: custom:button-card
template: v3_xs_button
entity: light.master_bedroom_main
name: Main
- type: custom:button-card
template: v3_xs_button
entity: light.bedside
name: Bedside
- type: custom:button-card
template: v3_xs_button
entity: light.kitchen
name: Kitchen
- type: horizontal-stack
cards:
- type: custom:button-card
template: v3_xs_button
entity: light.hallway_main
name: Hallway
- type: custom:button-card
template: v3_xs_button
entity: light.hallway_entrance
name: Entrance
- type: custom:button-card
template: v3_xs_button
entity: light.tradfri_large
name: G. Bedroom
- !include ../popup_cards.yaml