Files
sarah/config/lovelace/popup_cards.yaml

270 lines
6.6 KiB
YAML

binary_sensor.house_mode:
title: House mode
style: &popup_style
'--ha-card-border-radius': 0 0 0.8em 0.8em
border-radius: 0.8em
opacity: 0.95
min-width: 400px
card:
type: entities
entities:
- input_select.house_mode
binary_sensor.motion_1_ias_zone:
title: Kitchen motion
style: &broad_popup_style
'--ha-card-border-radius': 0 0 0.8em 0.8em
border-radius: 0.8em
opacity: 0.95
margin-bottom: 200px
width: 40%
card:
type: vertical-stack
cards:
- type: glance
entities:
- entity: binary_sensor.motion_1_ias_zone
- entity: sensor.motion_1_illuminance
- entity: binary_sensor.motion_1_occupancy
- entity: sensor.motion_1_power
- type: "custom:mini-graph-card"
animate: true
points_per_hour: 1
hours_to_show: 48
show:
graph: bar
average: true
extrema: true
entities:
- entity: sensor.motion_1_illuminance
binary_sensor.motion_2_ias_zone:
title: Hallway motion
style: *broad_popup_style
card:
type: vertical-stack
cards:
- type: glance
entities:
- entity: binary_sensor.motion_2_ias_zone
- entity: sensor.motion_2_illuminance
- entity: binary_sensor.motion_2_occupancy
- entity: sensor.motion_2_power
- type: "custom:mini-graph-card"
animate: true
points_per_hour: 1
hours_to_show: 48
show:
graph: bar
average: true
extrema: true
entities:
- entity: sensor.motion_2_illuminance
sensor.synology_type_volume_1:
title: Platinum
style: *popup_style
card:
type: custom:decluttering-card
template: platinum_card
switch.camera:
title: Security camera
style: *popup_style
card:
type: vertical-stack
cards:
- type: picture-entity
aspect_ratio: 50%
entity: camera.amcrest_camera
show_name: true
show_state: true
- type: entities
title: Camera Controls
show_header_toggle: false
entities:
- switch.camera
- binary_sensor.amcrest_camera_online
- binary_sensor.amcrest_camera_motion_detected
media_player.kitchen:
title: Kitchen Sonos
style: *popup_style
card:
type: custom:decluttering-card
template: sonos_media_player
variables:
- player: media_player.kitchen
media_player.bathroom:
title: Bathroom Sonos
style: *popup_style
card:
type: custom:decluttering-card
template: sonos_media_player
variables:
- player: media_player.bathroom
media_player.master_bedroom:
title: Master bedroom Sonos
style: *popup_style
card:
type: custom:decluttering-card
template: sonos_media_player
variables:
- player: media_player.master_bedroom
media_player.nvidia_shield: &nvidia_shield
title: TV
style: *popup_style
card:
type: vertical-stack
cards:
- type: horizontal-stack
cards:
- type: custom:button-card
icon: mdi:set-top-box
name: Set to Shield
template: default
tap_action:
action: call-service
service: media_player.select_source
service_data:
entity_id: media_player.living_room_tv
source: Shield
- type: custom:button-card
name: Set to Switch
icon: mdi:video-input-hdmi
template: default
tap_action:
action: call-service
service: media_player.select_source
service_data:
entity_id: media_player.living_room_tv
source: Switch
- type: custom:button-card
name: Bulsatcom
icon: mdi:remote-tv
template: default
tap_action:
action: call-service
service: script.tv_bulsatcom_toggle
- type: "custom:mini-media-player"
entity: media_player.nvidia_shield
- type: "custom:mini-media-player"
entity: media_player.living_room_tv
- type: custom:decluttering-card
template: sonos_media_player
variables:
- player: media_player.living_room
- type: horizontal-stack
cards:
- type: custom:decluttering-card
template: hdmi_switch_remote_card
- type: custom:decluttering-card
template: bulsatcom_remote_card
media_player.living_room_tv: *nvidia_shield
light.living_room_main_lights:
title: Living room lights
style: *popup_style
card:
type: custom:mod-card
card:
type: custom:light-popup-card
entity: light.living_room_main_lights
fullscreen: false
actionsInARow: 2
actions:
- service: light.toggle
service_data:
entity_id: light.living_room_main_lights
color: "#ffffcc"
name: Toggle
sensor.bedroom_weather_temperature:
title: Bedroom climate
style: *broad_popup_style
card:
type: custom:decluttering-card
template: bedroom_temperature_card
sensor.bedroom_weather_humidity:
title: Bedroom climate
style: *broad_popup_style
card:
type: custom:decluttering-card
template: bedroom_humidity_card
fan.philips_airpurifier:
title: Bedroom air
style: *popup_style
card:
type: custom:decluttering-card
template: philips_airpurifier_card
switch.titanium_power:
title: Titanium
style: *popup_style
card:
type: custom:decluttering-card
template: titanium_card
sensor.fast_com_download:
title: Network Speed
style: *broad_popup_style
card:
type: custom:decluttering-card
template: network_card
binary_sensor.pi_hole_enabled:
title: Pi-Hole
style: *broad_popup_style
card:
type: custom:decluttering-card
template: pi_hole_card
input_boolean.alarm_enabled:
title: Alarm
style: *popup_style
card:
type: entities
entities:
- input_boolean.alarm_enabled
- input_datetime.alarm_time
script.brita_pour_water:
title: Brita
style: *popup_style
card:
type: vertical-stack
cards:
- type: entities
entities:
- input_number.brita_remaining_liters
- input_datetime.brita_next_change
- type: horizontal-stack
cards:
- type: custom:button-card
template: default
name: New filter
entity: script.brita_new_filter
tap_action:
action: toggle
- type: custom:button-card
template: default
name: Filter
entity: binary_sensor.brita_should_change_filter