Move config out of subfolder

This commit is contained in:
Georgi Gardev
2022-12-01 16:01:59 +02:00
parent addfa33f6f
commit 1ae0c6d0b8
221 changed files with 0 additions and 0 deletions
@@ -0,0 +1,35 @@
aqara_tvoc_card:
card:
type: vertical-stack
cards:
- type: "custom:mini-graph-card"
entities:
- sensor.aqara_tvoc_voc
cache: false
group_by: hour
icon: "mdi:molecule"
hours_to_show: 72
line_width: 2
show:
average: true
extrema: true
fill: true
- type: horizontal-stack
cards:
- type: "custom:mini-graph-card"
name: Temperature
entities:
- sensor.aqara_tvoc_temperature
font_size: 75
line_color: "var(--color-blue)"
line_width: 6
hours_to_show: 72
- type: "custom:mini-graph-card"
name: Humidity
entities:
- sensor.aqara_tvoc_humidity
font_size: 75
line_color: "var(--color-blue)"
line_width: 6
hours_to_show: 72
@@ -0,0 +1,27 @@
bedroom_air_quality_card:
card:
type: vertical-stack
cards:
- type: "custom:mini-graph-card"
entities:
- sensor.purifier_air_quality
cache: false
group_by: hour
hours_to_show: 72
line_width: 2
show:
average: true
extrema: true
fill: true
- type: "custom:mini-graph-card"
name: Allergens
entities:
- sensor.purifier_allergens
group_by: hour
hours_to_show: 72
line_width: 2
show:
average: true
extrema: true
fill: tru
@@ -0,0 +1,22 @@
bedroom_allergen_index_card:
card:
type: vertical-stack
cards:
- type: "custom:mini-graph-card"
entities:
- sensor.purifier_allergens
cache: false
group_by: hour
hours_to_show: 72
line_width: 2
show:
average: true
extrema: true
fill: true
color_thresholds:
- value: 2
color: "var(--color-green)"
- value: 4
color: "var(--color-blue)"
- value: 5
color: "var(--color-red)"
@@ -0,0 +1,31 @@
bedroom_climate_card:
card:
type: vertical-stack
cards:
- type: custom:decluttering-card
template: climate_card
variables:
- main_entity: sensor.bedroom_weather_temperature
- main_name: Humidity
- left_entity: sensor.bedroom_weather_humidity
- left-name: Temperature
- right_entity: sensor.bedroom_weather_pressure
- type: horizontal-stack
cards:
- type: "custom:mini-graph-card"
name: Air Quality
entities:
- sensor.purifier_air_quality
font_size: 75
line_color: "var(--color-blue)"
line_width: 6
hours_to_show: 72
- type: "custom:mini-graph-card"
name: Allergens
entities:
- sensor.purifier_allergens
font_size: 75
line_color: "var(--color-blue)"
line_width: 6
hours_to_show: 72
@@ -0,0 +1,29 @@
bedroom_humidity_card:
card:
type: vertical-stack
cards:
- type: custom:decluttering-card
template: climate_card
variables:
- main_entity: sensor.bedroom_weather_humidity
- left_entity: sensor.bedroom_weather_temperature
- right_entity: sensor.bedroom_weather_pressure
- type: horizontal-stack
cards:
- type: "custom:mini-graph-card"
name: Air Quality
entities:
- sensor.purifier_air_quality
font_size: 75
line_color: "var(--color-blue)"
line_width: 6
hours_to_show: 72
- type: "custom:mini-graph-card"
name: Allergens
entities:
- sensor.purifier_allergens
font_size: 75
line_color: "var(--color-blue)"
line_width: 6
hours_to_show: 72
@@ -0,0 +1,33 @@
brita_card:
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: [v3_button, v3_popup_button]
name: New filter
entity: script.brita_new_filter
show_state: false
tap_action:
action: toggle
styles:
card:
- margin-left: 8px
- type: custom:button-card
template: [v3_button, v3_popup_button]
name: Pour water
entity: script.brita_pour_water
show_state: false
tap_action:
action: toggle
- type: custom:button-card
template: [v3_button, v3_popup_button]
name: Filter
entity: binary_sensor.brita_should_change_filter
@@ -0,0 +1,267 @@
bulsatcom_remote_card:
card:
type: picture-elements
image: /local/images/remotes/bulsatcom.png
elements:
- type: image
image: /local/images/floorplan/transparent.png
entity: script.bulsatcom_power
tap_action:
action: toggle
style:
width: 23.6%
height: 6.8%
top: 6.6%
left: 22%
border-radius: 50%
- type: image
image: /local/images/floorplan/transparent.png
entity: script.bulsatcom_mute
tap_action:
action: toggle
style:
width: 23.6%
height: 6.8%
top: 6.6%
left: 81%
border-radius: 50%
- type: image
image: /local/images/floorplan/transparent.png
entity: script.bulsatcom_ok
tap_action:
action: toggle
style:
width: 42.1%
height: 12%
top: 23%
left: 51.2%
border-radius: 50%
- type: image
image: /local/images/floorplan/transparent.png
entity: script.bulsatcom_left
tap_action:
action: toggle
style:
width: 18%
height: 5%
top: 23%
left: 19%
- type: image
image: /local/images/floorplan/transparent.png
entity: script.bulsatcom_right
tap_action:
action: toggle
style:
width: 18%
height: 5%
top: 23%
left: 83.8%
- type: image
image: /local/images/floorplan/transparent.png
entity: script.bulsatcom_up
tap_action:
action: toggle
style:
width: 50%
height: 4%
top: 14%
left: 51%
- type: image
image: /local/images/floorplan/transparent.png
entity: script.bulsatcom_down
tap_action:
action: toggle
style:
width: 50%
height: 4%
top: 32%
left: 51%
- type: image
image: /local/images/floorplan/transparent.png
entity: script.bulsatcom_back
tap_action:
action: toggle
style:
width: 23.6%
height: 6.8%
top: 39%
left: 21.2%
border-radius: 50%
- type: image
image: /local/images/floorplan/transparent.png
entity: script.bulsatcom_menu
tap_action:
action: toggle
style:
width: 28%
height: 8%
top: 43.5%
left: 51.4%
border-radius: 50%
- type: image
image: /local/images/floorplan/transparent.png
entity: script.bulsatcom_info
tap_action:
action: toggle
style:
width: 23.6%
height: 6.8%
top: 39%
left: 81.2%
border-radius: 50%
- type: image
image: /local/images/floorplan/transparent.png
entity: script.bulsatcom_volume_down
tap_action:
action: toggle
style:
width: 36.9%
height: 6.2%
top: 54%
left: 29.4%
border-top-left-radius: 45%
border-bottom-left-radius: 45%
- type: image
image: /local/images/floorplan/transparent.png
entity: script.bulsatcom_volume_up
tap_action:
action: toggle
style:
width: 36.9%
height: 6.2%
top: 54%
left: 72%
border-top-right-radius: 45%
border-bottom-right-radius: 45%
- type: image
image: /local/images/floorplan/transparent.png
entity: script.bulsatcom_1
tap_action:
action: toggle
style:
width: 22.2%
height: 4%
top: 62.5%
left: 20.5%
border-radius: 40%
- type: image
image: /local/images/floorplan/transparent.png
entity: script.bulsatcom_2
tap_action:
action: toggle
style:
width: 22.2%
height: 4%
top: 62.5%
left: 51%
border-radius: 40%
- type: image
image: /local/images/floorplan/transparent.png
entity: script.bulsatcom_3
tap_action:
action: toggle
style:
width: 22.2%
height: 4%
top: 62.5%
left: 81.5%
border-radius: 40%
- type: image
image: /local/images/floorplan/transparent.png
entity: script.bulsatcom_4
tap_action:
action: toggle
style:
width: 22.2%
height: 4%
top: 69.5%
left: 20.5%
border-radius: 40%
- type: image
image: /local/images/floorplan/transparent.png
entity: script.bulsatcom_5
tap_action:
action: toggle
style:
width: 22.2%
height: 4%
top: 69.5%
left: 51%
border-radius: 40%
- type: image
image: /local/images/floorplan/transparent.png
entity: script.bulsatcom_6
tap_action:
action: toggle
style:
width: 22.2%
height: 4%
top: 69.5%
left: 81.5%
border-radius: 40%
- type: image
image: /local/images/floorplan/transparent.png
entity: script.bulsatcom_7
tap_action:
action: toggle
style:
width: 22.2%
height: 4%
top: 76.5%
left: 21.5%
border-radius: 40%
- type: image
image: /local/images/floorplan/transparent.png
entity: script.bulsatcom_8
tap_action:
action: toggle
style:
width: 22.2%
height: 4%
top: 76.5%
left: 51%
border-radius: 40%
- type: image
image: /local/images/floorplan/transparent.png
entity: script.bulsatcom_9
tap_action:
action: toggle
style:
width: 22.2%
height: 4%
top: 76.5%
left: 81.5%
border-radius: 40%
- type: image
image: /local/images/floorplan/transparent.png
entity: script.bulsatcom_epg
tap_action:
action: toggle
style:
width: 22.2%
height: 4%
top: 83.5%
left: 21.5%
border-radius: 40%
- type: image
image: /local/images/floorplan/transparent.png
entity: script.bulsatcom_0
tap_action:
action: toggle
style:
width: 22.2%
height: 4%
top: 83.5%
left: 51%
border-radius: 40%
- type: image
image: /local/images/floorplan/transparent.png
entity: script.bulsatcom_clock
tap_action:
action: toggle
style:
width: 22.2%
height: 4%
top: 83.5%
left: 81.5%
border-radius: 40%
@@ -0,0 +1,119 @@
cadmium_card:
v3_xs_button:
- title:
- icon:
card:
type: entities
style: |
#states > div:last-child {
margin: 0 -16px -16px -16px;
}
title: "[[title]]"
icon: "[[icon]]"
entities:
- type: custom:hui-vertical-stack-card
cards:
- type: horizontal-stack
cards:
- type: custom:button-card
template: v3_xs_button
entity: switch.cadmium
name: Power
- type: custom:button-card
template: v3_xs_button
entity: script.cadmium_lock
name: Lock
icon: mdi:lock
tap_action:
action: toggle
- type: custom:button-card
template: v3_xs_button
entity: script.cadmium_displays_on
name: Displ. on
icon: mdi:monitor-dashboard
tap_action:
action: toggle
- type: custom:button-card
template: v3_xs_button
entity: script.cadmium_displays_off
name: Displ. off
icon: mdi:monitor-off
tap_action:
action: toggle
- type: custom:button-card
template: v3_xs_button
entity: script.cadmium_refresh
name: Refresh
icon: mdi:refresh
tap_action:
action: toggle
- type: vertical-stack
cards:
- type: entities
style:
"#states div": |
mini-graph-card {
margin: 0 -15px -15px
}
entities:
- sensor.cadmium_uptime
- sensor.cadmium_idle_time
- type: custom:fold-entity-row
head:
type: custom:decluttering-card
template: percentage_card
variables:
- name: Memory
- entity: sensor.cadmium_memory_used_percent
- icon: mdi:memory
- orange: 70
- red: 85
entities:
- entity: sensor.cadmium_memory_used
name: Memory used
- entity: sensor.cadmium_memory_available
name: Memory available
- entity: sensor.cadmium_memory_total
name: Memory total
- type: custom:fold-entity-row
head:
type: custom:decluttering-card
template: percentage_card
variables:
- name: "C: Drive"
- entity: sensor.cadmium_c_usage
- icon: mdi:harddisk
- orange: 70
- red: 85
entities:
- entity: sensor.cadmium_c_used_space
name: "C: Drive used"
- entity: sensor.cadmium_c_free_space
name: "C: Drive available"
- entity: sensor.cadmium_c_total_space
name: "C: Drive total"
- type: custom:mini-graph-card
align_state: left
entities:
- color: var(--accent-color)
entity: sensor.cadmium_cpu_usage
- color: green
entity: sensor.cadmium_memory_used_percent
points_per_hour: 1
line_width: 3
hour24: true
hours_to_show: 24
group_by: hour
show:
fill: fade
icon: true
name: true
state: true
name_adaptive_color: false
labels: hover
legend: false
tap_action:
action: none
@@ -0,0 +1,40 @@
climate_card:
default:
- main_name: "Temperature"
- left_name: "Humidity"
- right_name: "Pressure"
card:
type: vertical-stack
cards:
- type: "custom:mini-graph-card"
name: "[[main_name]]"
entities:
- "[[main_entity]]"
cache: false
group_by: hour
hours_to_show: 72
line_width: 2
show:
average: true
extrema: true
fill: true
- type: horizontal-stack
cards:
- type: "custom:mini-graph-card"
name: "[[left_name]]"
entities:
- "[[left_entity]]"
font_size: 75
line_color: "var(--color-blue)"
line_width: 6
hours_to_show: 72
- type: "custom:mini-graph-card"
name: "[[right_name]]"
entities:
- "[[right_entity]]"
font_size: 75
line_color: "var(--color-blue)"
line_width: 6
hours_to_show: 72
@@ -0,0 +1,107 @@
hdmi_switch_remote_card:
card:
type: picture-elements
image: /local/images/remotes/hdmi_switch_new.png
elements:
- type: image
image: /local/images/floorplan/transparent.png
entity: script.hdmi_switch_on
tap_action:
action: toggle
style:
width: 23.6%
height: 11.8%
top: 14.4%
left: 82%
border-radius: 50%
- type: image
image: /local/images/floorplan/transparent.png
entity: script.hdmi_switch_off
tap_action:
action: toggle
style:
width: 23.6%
height: 11.8%
top: 14%
left: 14.1%
border-radius: 50%
- type: image
image: /local/images/floorplan/transparent.png
entity: script.hdmi_switch_1
tap_action:
action: toggle
style:
width: 23.6%
height: 11.8%
top: 25.9%
left: 13.5%
border-radius: 50%
- type: image
image: /local/images/floorplan/transparent.png
entity: script.hdmi_switch_2
tap_action:
action: toggle
style:
width: 23.6%
height: 11.8%
top: 25.9%
left: 83%
border-radius: 50%
- type: image
image: /local/images/floorplan/transparent.png
entity: script.hdmi_switch_3
tap_action:
action: toggle
style:
width: 23.6%
height: 11.8%
top: 38.4%
left: 49%
border-radius: 50%
- type: image
image: /local/images/floorplan/transparent.png
entity: script.hdmi_switch_4
tap_action:
action: toggle
style:
width: 23.6%
height: 11.8%
top: 50.3%
left: 13.5%
border-radius: 50%
- type: image
image: /local/images/floorplan/transparent.png
entity: script.hdmi_switch_5
tap_action:
action: toggle
style:
width: 23.6%
height: 11.8%
top: 50.3%
left: 83%
border-radius: 50%
- type: image
image: /local/images/floorplan/transparent.png
entity: script.hdmi_switch_next
tap_action:
action: toggle
style:
width: 23.6%
height: 11.8%
top: 62.7%
left: 49%
border-radius: 50%
- type: image
image: /local/images/floorplan/transparent.png
entity: script.hdmi_switch_prev
tap_action:
action: toggle
style:
width: 23.6%
height: 11.8%
top: 75.8%
left: 49%
border-radius: 50%
@@ -0,0 +1,213 @@
mercury_card:
default:
- title:
card:
type: entities
style: |
#states > div:last-child {
margin: 0 -16px -16px -16px;
}
title: "[[title]]"
icon: "[[icon]]"
entities:
- type: custom:hui-horizontal-stack-card
cards:
- type: custom:button-card
template: v3_xs_button
entity: switch.cadmium
icon: mdi:firefox
name: "Open UI"
tap_action:
action: url
url_path: https://home.gar.dev
- type: custom:button-card
template: v3_xs_button
entity: update.mercury_dsm_update
name: Update?
- type: custom:button-card
template: v3_xs_button
entity: button.mercury_reboot
name: Reboot
- type: custom:button-card
template: v3_xs_button
entity: button.mercury_shutdown
name: Shutdown
- entity: sensor.mercury_temperature
name: Temperature
- type: custom:fold-entity-row
head:
type: custom:decluttering-card
template: percentage_card
variables:
- name: CPU
- entity: sensor.mercury_cpu_utilization_total
- icon: mdi:chip
- orange: 40
- red: 60
entities:
- entity: sensor.mercury_cpu_utilization_user
name: CPU load (User)
- entity: sensor.mercury_cpu_load_average_5_min
name: CPU load (5 min)
- entity: sensor.mercury_cpu_load_average_15_min
name: CPU load (15 min)
- type: custom:fold-entity-row
head:
type: custom:decluttering-card
template: percentage_card
variables:
- name: Memory
- entity: sensor.mercury_memory_usage_real
- icon: mdi:memory
- orange: 70
- red: 85
entities:
- entity: sensor.mercury_memory_available_real
name: Memory available (Real)
- entity: sensor.mercury_memory_total_real
name: Memory total (Real)
- entity: sensor.mercury_memory_available_swap
name: Memory available (Swap)
- entity: sensor.mercury_memory_total_swap
name: Memory total (Swap)
- type: custom:fold-entity-row
head:
type: custom:decluttering-card
template: percentage_card
variables:
- name: Volume 1
- entity: sensor.mercury_volume_1_volume_used
- icon: mdi:harddisk
- orange: 85
- red: 90
entities:
- entity: sensor.mercury_volume_1_status
name: Status
- entity: sensor.mercury_volume_1_average_disk_temp
name: Average temperature
- entity: sensor.mercury_volume_1_used_space
name: Used space
- type: custom:fold-entity-row
head:
entity: sensor.mercury_drive_1_status
name: Drive 1
entities:
- entity: sensor.mercury_drive_1_temperature
name: Temperature
- entity: binary_sensor.mercury_drive_1_below_min_remaining_life
name: Below minimum remaining life
- entity: binary_sensor.mercury_drive_1_exceeded_max_bad_sectors
name: Exceeded max bad sectors
- type: custom:fold-entity-row
head:
entity: sensor.mercury_drive_2_status
name: Drive 2
entities:
- entity: sensor.mercury_drive_2_temperature
name: Temperature
- entity: binary_sensor.mercury_drive_2_below_min_remaining_life
name: Below minimum remaining life
- entity: binary_sensor.mercury_drive_2_exceeded_max_bad_sectors
name: Exceeded max bad sectors
- type: custom:fold-entity-row
head:
entity: sensor.mercury_drive_3_status
name: Drive 3
entities:
- entity: sensor.mercury_drive_3_temperature
name: Temperature
- entity: binary_sensor.mercury_drive_3_below_min_remaining_life
name: Below minimum remaining life
- entity: binary_sensor.mercury_drive_3_exceeded_max_bad_sectors
name: Exceeded max bad sectors
- type: custom:fold-entity-row
head:
entity: sensor.mercury_drive_4_status
name: Drive 4
entities:
- entity: sensor.mercury_drive_4_temperature
name: Temperature
- entity: binary_sensor.mercury_drive_4_below_min_remaining_life
name: Below minimum remaining life
- entity: binary_sensor.mercury_drive_4_exceeded_max_bad_sectors
name: Exceeded max bad sectors
- type: custom:fold-entity-row
head:
entity: sensor.mercury_cache_device_1_status
name: Cache
entities:
- entity: sensor.mercury_cache_device_1_temperature
name: Temperature
- entity: binary_sensor.mercury_cache_device_1_below_min_remaining_life
name: Below minimum remaining life
- entity: binary_sensor.mercury_cache_device_1_exceeded_max_bad_sectors
name: Exceeded max bad sectors
- type: custom:hui-horizontal-stack-card
cards:
- type: entities
entities:
- entity: sensor.mercury_download_throughput
name: Down
style: |
:host {
--paper-item-icon-color: green;
}
style: &network-indicator-style
.: |
ha-card {
box-shadow: none;
background: none;
margin-top: -1.4em;
max-height: 1px;
z-index: 2;
}
"#states div":
hui-sensor-entity-row:
$:
hui-generic-entity-row:
$: |
.info {
margin-left: 0 !important;
flex-grow: 0 !important;
text-overflow: unset !important;
white-space: unset !important;
}
- type: entities
entities:
- entity: sensor.mercury_upload_throughput
name: Up
style: |
:host {
--paper-item-icon-color: var(--accent-color);
}
style: *network-indicator-style
- type: custom:mini-graph-card
align_state: left
entities:
- color: var(--accent-color)
entity: sensor.mercury_upload_throughput
- color: green
entity: sensor.mercury_download_throughput
group: false
points_per_hour: 1
line_width: 3
hour24: true
hours_to_show: 24
show:
fill: fade
icon: false
name: false
state: false
name_adaptive_color: true
labels: hover
legend: false
tap_action:
action: none
@@ -0,0 +1,64 @@
network_card:
default:
- title:
- icon:
card:
type: vertical-stack
cards:
- type: entities
title: "[[title]]"
icon: "[[icon]]"
entities:
- type: custom:template-entity-row
name: Open network tab
icon: mdi:server-network
tap_action:
action: navigate
navigation_path: /lovelace-main/network
- type: custom:template-entity-row
name: Open admin UI
icon: mdi:firefox
tap_action:
action: url
url_path: http://router.lan
- type: "custom:mini-graph-card"
animate: true
points_per_hour: 1
hours_to_show: 72
show:
graph: bar
average: true
extrema: true
entities:
- entity: sensor.fast_com_download
- type: "custom:mini-graph-card"
animate: true
points_per_hour: 1
hours_to_show: 72
show:
graph: bar
average: true
extrema: true
entities:
- entity: sensor.speedtest_download
- type: horizontal-stack
cards:
- type: custom:mini-graph-card
points_per_hour: 0.3
hours_to_show: 72
font_size: 75
line_color: var(--accent-color)
line_width: 6
entities:
- sensor.speedtest_upload
- type: custom:mini-graph-card
font_size: 75
points_per_hour: 0.3
hours_to_show: 72
line_color: var(--accent-color)
line_width: 6
entities:
- sensor.speedtest_ping
@@ -0,0 +1,93 @@
old_hdmi_switch_remote_card:
card:
type: picture-elements
image: /local/images/remotes/hdmi_switcher.png
elements:
- type: image
image: /local/images/floorplan/transparent.png
entity: script.hdmi_switch_1
tap_action:
action: toggle
style:
width: 23.6%
height: 11.8%
top: 9.6%
left: 19.5%
border-radius: 50%
- type: image
image: /local/images/floorplan/transparent.png
entity: script.hdmi_switch_2
tap_action:
action: toggle
style:
width: 23.6%
height: 11.8%
top: 9.6%
left: 50%
border-radius: 50%
- type: image
image: /local/images/floorplan/transparent.png
entity: script.hdmi_switch_3
tap_action:
action: toggle
style:
width: 23.6%
height: 11.8%
top: 9.6%
left: 80.5%
border-radius: 50%
- type: image
image: /local/images/floorplan/transparent.png
entity: script.hdmi_switch_4
tap_action:
action: toggle
style:
width: 23.6%
height: 11.8%
top: 23%
left: 19.5%
border-radius: 50%
- type: image
image: /local/images/floorplan/transparent.png
entity: script.hdmi_switch_next
tap_action:
action: toggle
style:
width: 23.6%
height: 11.8%
top: 23%
left: 80.5%
border-radius: 50%
- type: image
image: /local/images/floorplan/transparent.png
entity: script.hdmi_switch_pip
tap_action:
action: toggle
style:
width: 23.6%
height: 11.8%
top: 63.7%
left: 19.5%
border-radius: 50%
- type: image
image: /local/images/floorplan/transparent.png
entity: script.hdmi_switch_sel
tap_action:
action: toggle
style:
width: 23.6%
height: 11.8%
top: 63.7%
left: 50%
border-radius: 50%
- type: image
image: /local/images/floorplan/transparent.png
entity: script.hdmi_switch_enter
tap_action:
action: toggle
style:
width: 23.6%
height: 11.8%
top: 63.7%
left: 80.5%
border-radius: 50%
@@ -0,0 +1,100 @@
philips_airpurifier_card:
card:
type: vertical-stack
cards:
- type: horizontal-stack
cards:
- type: custom:button-card
template: [v3_button_purifier, v3_popup_button]
entity: fan.philips_airpurifier
styles:
card:
- margin-left: 8px
- type: custom:button-card
template: [v3_button, v3_popup_button]
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: [v3_button, v3_popup_button]
entity: sensor.purifier_preset_mode
state_display: "[[[ return entity.state.charAt(0).toUpperCase() + entity.state.slice(1); ]]]"
tap_action:
action: call-service
service: input_select.select_next
service_data:
entity_id: input_select.purifier_preset_mode
- type: horizontal-stack
cards:
- type: custom:button-card
template: [v3_button, v3_popup_button]
entity: sensor.purifier_function
tap_action:
action: call-service
service: script.purifier_toggle_function
styles:
card:
- margin-left: 8px
- type: custom:button-card
template: [v3_button, v3_popup_button]
entity: sensor.purifier_target_humidity
variables:
value_has_error: |
[[[
return states['binary_sensor.purifier_out_of_water'].state === 'on';
]]]
tap_action:
action: call-service
service: input_select.select_next
service_data:
entity_id: input_select.purifier_target_humidity
- type: custom:button-card
template: [v3_button, v3_popup_button]
entity: binary_sensor.purifier_filter_needs_change
variables:
value_has_error: "[[[ return entity.state === 'on' ]]]"
- type: entities
show_header_toggle: false
entities:
- type: custom:fold-entity-row
head:
type: custom:template-entity-row
name: Sensors
icon: mdi:air-purifier
entities:
- sensor.purifier_air_quality
- sensor.purifier_allergens
- sensor.purifier_temperature
- sensor.purifier_humidity
- binary_sensor.purifier_out_of_water
- type: custom:fold-entity-row
head:
type: custom:template-entity-row
name: Attributes
icon: mdi:view-headline
entities:
- sensor.purifier_speed
- sensor.purifier_preset_mode
- sensor.purifier_function
- sensor.purifier_target_humidity
- sensor.purifier_brightness
- sensor.purifier_timer
- sensor.purifier_time_remaining
- binary_sensor.purifier_child_lock
- binary_sensor.purifier_display_light
- type: custom:fold-entity-row
head:
type: custom:template-entity-row
name: Filters
icon: mdi:air-filter
entities:
- sensor.purifier_pre_filter
- sensor.purifier_hepa_filter
- sensor.purifier_carbon_filter
- sensor.purifier_wick_filter
@@ -0,0 +1,57 @@
pi_hole_card:
default:
- title:
- icon:
card:
type: vertical-stack
cards:
- type: entities
title: "[[title]]"
icon: "[[icon]]"
entities:
- entity: binary_sensor.pi_hole_enabled
name: Status
- entity: switch.pihole_temp_disable
name: Pause for 5 mins
- type: custom:template-entity-row
name: Open admin UI
icon: mdi:firefox
tap_action:
action: url
url_path: http://cobalt.lan:8081/admin
- type: horizontal-stack
cards:
- type: custom:mini-graph-card
name: Total queries
font_size: 75
line_color: var(--accent-color)
line_width: 6
entities:
- sensor.pi_hole_dns_queries_today
- type: custom:mini-graph-card
name: Queries blocked
font_size: 75
line_color: var(--accent-color)
line_width: 6
entities:
- sensor.pi_hole_ads_blocked_today
- type: horizontal-stack
cards:
- type: custom:mini-graph-card
name: Percent blocked
font_size: 75
line_color: var(--accent-color)
line_width: 6
entities:
- sensor.pi_hole_ads_percentage_blocked_today
- type: custom:mini-graph-card
name: Seen clients
font_size: 75
line_color: var(--accent-color)
line_width: 6
entities:
- sensor.pi_hole_seen_clients
@@ -0,0 +1,33 @@
floorplan_state_icon:
default:
- tap_action:
action: toggle
element: &floorplan_state_icon
type: state-icon
entity: "[[entity]]"
tap_action: "[[tap_action]]"
style:
top: "[[top]]"
left: "[[left]]"
right: "[[right]]"
display: flex
align-items: center
justify-content: center
width: 35px
height: 35px
border-radius: 50%
background-color: "#fff"
box-shadow: 0 0 5px rgba(0, 0, 0, 0.6)
--divider-color: rgba(255, 255, 255, 0.4)
--paper-item-icon-color: rgba(50, 50, 50, 0.8)
--paper-item-icon-active-color: "#007cd6"
--iron-icon-width: 18px
--iron-icon-height: 18px
floorplan_state_with_icon:
default:
- tap_action:
action: toggle
element:
<<: *floorplan_state_icon
icon: "[[icon]]"
@@ -0,0 +1,28 @@
light_with_fade_and_switch:
card:
type: custom:multiple-entity-row
entity: "[[light]]"
show_state: false
entities:
- entity: "[[wifi]]"
name: Wifi
- entity: "[[fade]]"
name: Fade
toggle: true
- entity: "[[light]]"
name: Switch
toggle: true
light_with_update_and_lqi:
card:
type: custom:multiple-entity-row
entity: "[[light]]"
show_state: false
entities:
- entity: "[[update]]"
name: Update
- entity: "[[lqi]]"
name: LQI
- entity: "[[light]]"
name: Switch
toggle: true
@@ -0,0 +1,30 @@
sonos_media_player:
default:
- info: "short"
- sync_volume: true
- name:
card:
type: custom:mini-media-player
artwork: cover
name: "[[name]]"
info: "[[info]]"
entity: "[[player]]"
scale: 1.2
speaker_group:
sync_volume: "[[sync_volume]]"
entities: &entities_in_gorup
- entity_id: media_player.master_bedroom
name: Bedroom
- entity_id: media_player.living_room
name: Living room
- entity_id: media_player.kitchen
name: Kitchen
- entity_id: media_player.bathroom
name: Bathroom
hide:
power: true
icon: true
shuffle: false
idle_view:
when_idle: true
when_standby: true
@@ -0,0 +1,52 @@
percentage_card:
default:
- orange: 70
- red: 85
card:
type: custom:bar-card
entity: "[[entity]]"
name: "[[name]]"
icon: "[[icon]]"
entity_row: true
tap_action:
action: none
severity:
- from: 0
to: "[[orange]]"
color: green
- from: "[[orange]]"
to: "[[red]]"
color: darkorange
- from: "[[red]]"
to: 100
color: darkred
positions:
name: outside
icon: outside
indicator: inside
title: outside
width: 50%
height: 2em
style: |
ha-card {
margin-bottom: -0.51em;
}
bar-card-value {
margin-right: auto;
color: #e0e1e1;
text-shadow: none;
font-size: 1em;
font-weight: 400;
letter-spacing: 0.01em;
}
bar-card-background {
background: radial-gradient(circle, rgba(52, 57, 58, 0.1) 0%, rgba(17,18,18,0.2) 75%);
box-shadow: inset 0 0 25px #00000045;
border-radius: 0.4em;
}
bar-card-currentbar {
border-radius: 0.4em;
}
bar-card-backgroundbar {
background: none;
}
@@ -0,0 +1,16 @@
v3_horizontal_stack_card:
card:
type: custom:mod-card
card_size: 12
card:
type: horizontal-stack
cards: "[[cards]]"
card_mod:
style:
hui-horizontal-stack-card:
$: |
#root {
max-width: 100vw;
padding-bottom: 10px;
overflow: scroll
}
@@ -0,0 +1,125 @@
v3_media_with_controls:
default:
- title: "Media"
- player_name:
card:
type: vertical-stack
title: "[[title]]"
cards:
- type: custom:decluttering-card
template: sonos_media_player
variables:
- player: "[[player]]"
- name: "[[player_name]]"
- sync_volume: false
- type: horizontal-stack
cards:
- type: vertical-stack
cards:
- type: custom:decluttering-card
template: v3_section_title
variables:
- title: Volume
- margin_left: 8px
- type: horizontal-stack
cards:
- type: custom:button-card
template: [v3_xs_button, v3_popup_button]
show_state: false
entity: script.sonos_volume_10
icon: mdi:volume-medium
name: Vol 10
tap_action:
action: call-service
service: script.sonos_volume_10
styles:
card:
- margin-left: 8px
- type: custom:button-card
template: [v3_xs_button, v3_popup_button]
show_state: false
entity: script.sonos_volume_20
icon: mdi:volume-high
name: Vol 20
tap_action:
action: call-service
service: script.sonos_volume_20
- type: vertical-stack
cards:
- type: custom:decluttering-card
template: v3_section_title
variables:
- title: Group
- margin_left: 8px
- type: horizontal-stack
cards:
- type: custom:button-card
template: [v3_xs_button, v3_popup_button]
entity: binary_sensor.sonos_is_bedroom_master
name: Bedroom
icon: mdi:speaker-multiple
tap_action:
action: call-service
service: script.sonos_join_bedroom
styles:
card:
- margin-left: 8px
- type: custom:button-card
template: [v3_xs_button, v3_popup_button]
entity: binary_sensor.sonos_is_living_room_master
name: TV
icon: mdi:speaker-multiple
tap_action:
action: call-service
service: script.sonos_join_tv
- type: vertical-stack
cards:
- type: custom:decluttering-card
template: v3_section_title
variables:
- title: Playlists
- margin_left: 16px
- type: custom:button-card
template: v3_pill
entity: script.music_play
name: Chill
icon: mdi:music
tap_action:
action: toggle
- type: custom:button-card
template: v3_pill
entity: script.music_play
name: Chill 2
icon: mdi:music
tap_action:
action: call-service
service: script.music_play
service_data:
playlist: "Songs for a Romantic Evening"
shuffle: true
volume_level: 0.1
- type: custom:button-card
template: v3_pill
entity: script.music_play
name: Jazz
icon: mdi:music
tap_action:
action: call-service
service: script.music_play
service_data:
playlist: "Smooth Romantic Evening"
shuffle: true
volume_level: 0.1
- type: custom:button-card
template: v3_pill
entity: script.music_play
name: Retro
icon: mdi:music
tap_action:
action: call-service
service: script.music_play
service_data:
playlist: "Retro"
styles:
card:
- margin-bottom: 8px
@@ -0,0 +1,18 @@
v3_section_title:
default:
margin_left: '0'
card:
type: markdown
content: >
### [[title]]
card_mod:
style: |
ha-card {
box-shadow: none;
background: transparent;
}
ha-card > ha-markdown {
font-size: 18px;
padding: 16px 6px 6px [[margin_left]];
}
@@ -0,0 +1,18 @@
v3_title:
card:
type: markdown
content: >
## [[title]]
card_mod:
style: |
ha-card {
box-shadow: none;
background: transparent;
}
ha-card > ha-markdown {
font-size: 22px;
padding-left: 0;
padding-bottom: 14px;
letter-spacing: -1px;
}