Skip to content

Instantly share code, notes, and snippets.

@IronButterfly
Created July 19, 2022 14:48
Show Gist options
  • Save IronButterfly/7cebf2304bd39add7b6b7361f5b9468b to your computer and use it in GitHub Desktop.
Save IronButterfly/7cebf2304bd39add7b6b7361f5b9468b to your computer and use it in GitHub Desktop.
My desktop version of HomeAssistant dashboard
title: My Sweet Home
views:
- title: Главная
id: main
icon: mdi:home-assistant
cards:
- type: custom:simple-weather-card
entity: weather.home
name: Новосибирск
show_forecast: false
- type: vertical-stack
cards:
- type: custom:mushroom-chips-card
chips:
- type: conditional
conditions:
- entity: binary_sensor.door_wardrobe_contact
state: 'on'
chip:
type: entity
entity: binary_sensor.door_wardrobe_contact
icon_color: red
name: Гардероб
icon: mdi:door-open
content_info: name
- type: conditional
conditions:
- entity: binary_sensor.window_hall_contact
state: 'on'
chip:
type: entity
entity: binary_sensor.window_hall_contact
icon_color: red
name: Окно зал
icon: mdi:window-open
content_info: name
- type: conditional
conditions:
- entity: binary_sensor.door_entrance_contact
state: 'on'
chip:
type: entity
entity: binary_sensor.door_entrance_contact
icon_color: red
name: Входная
icon: mdi:door-open
content_info: name
- type: conditional
conditions:
- entity: binary_sensor.door_balcon_contact
state: 'on'
chip:
type: entity
entity: binary_sensor.door_balcon_contact
icon_color: red
name: Балкон
content_info: name
- type: conditional
conditions:
- entity: binary_sensor.door_bathroom_contact
state: 'on'
chip:
type: entity
entity: binary_sensor.door_bathroom_contact
icon_color: green
name: Ванная
content_info: name
- type: conditional
conditions:
- entity: binary_sensor.water_leak_water_leak
state: 'on'
chip:
type: entity
entity: binary_sensor.water_leak_water_leak
icon_color: red
name: Протечка
content_info: name
icon: mdi:water
- type: conditional
conditions:
- entity: binary_sensor.internet_is_available
state: 'off'
chip:
type: entity
entity: binary_sensor.internet_is_available
icon_color: red
name: Интернет
content_info: name
icon: mdi:close-network-outline
- type: conditional
conditions:
- entity: binary_sensor.kitchen_motion_group
state: 'on'
chip:
type: entity
entity: binary_sensor.kitchen_motion_group
icon_color: green
icon: mdi:motion-sensor
name: Кухня
content_info: name
- type: conditional
conditions:
- entity: binary_sensor.corridor_motion_group
state: 'on'
chip:
type: entity
entity: binary_sensor.corridor_motion_group
icon_color: green
name: Коридор
content_info: name
icon: mdi:motion-sensor
alignment: center
- type: entities
show_header_toggle: false
entities:
- entity: switch.switch_hall_switch_left
name: Левый зал
icon: mdi:ceiling-light
state_color: true
secondary_info: last-changed
- entity: switch.switch_hall_switch_right
name: Правый зал
icon: mdi:ceiling-light
state_color: true
secondary_info: last-changed
- entity: switch.outlet_hall_switch
name: Увлажнитель
icon: mdi:air-humidifier
state_color: true
secondary_info: last-changed
- entity: light.0x00124b000a9df11f_light
name: Лампа
icon: mdi:lamp
state_color: true
secondary_info: last-changed
- entity: light.koogeek_ls1
name: Подсветка
icon: mdi:led-strip-variant
state_color: true
secondary_info: last-changed
- entity: light.desklamp
name: Настольная лампа
icon: mdi:desk-lamp
state_color: true
secondary_info: last-changed
- entity: switch.orange_one
name: Лампа на окне
icon: mdi:desk-lamp
state_color: true
secondary_info: last-changed
# - entity: light.wled
# name: Ёлка
# icon: mdi:pine-tree
# state_color: true
# secondary_info: last-changed
- type: entities
show_header_toggle: false
entities:
- entity: switch.switch_kitchen_switch_left
name: Левый кухня
icon: mdi:ceiling-light
state_color: true
secondary_info: last-changed
- entity: switch.switch_kitchen_switch_right
name: Правый кухня
icon: mdi:ceiling-light
state_color: true
secondary_info: last-changed
- entity: switch.relay_switch_l1
name: Подсветка стола
icon: mdi:wall-sconce-flat
state_color: true
secondary_info: last-changed
- entity: switch.relay_switch_l2
name: Подсветка потолка
icon: mdi:wall-sconce-flat
state_color: true
secondary_info: last-changed
- entity: light.led_strip
secondary_info: last-changed
name: Лента
icon: mdi:led-strip-variant
# - entity: input_boolean.ny
# secondary_info: last-changed
# name: Эффект
- type: entities
show_header_toggle: false
entities:
- entity: switch.switch_wardrobe_switch
name: Свет в гардеробе
icon: mdi:ceiling-light
state_color: true
secondary_info: last-changed
- entity: switch.switch_entrance_switch
name: Свет в коридоре
icon: mdi:ceiling-light
state_color: true
secondary_info: last-changed
- entity: switch.switch_bath_switch
name: Свет в ванной
icon: mdi:ceiling-light
state_color: true
secondary_info: last-changed
- type: entities
show_header_toggle: false
entities:
- entity: switch.outlet_rozetka_switch
name: Лампа Жеки
icon: mdi:desk-lamp
state_color: true
secondary_info: last-changed
- entity: switch.switch_bedroom_switch_left
name: Левый спальня
icon: mdi:ceiling-light
state_color: true
secondary_info: last-changed
- entity: switch.switch_bedroom_switch_right
name: Правый спальня
icon: mdi:ceiling-light
state_color: true
secondary_info: last-changed
- type: vertical-stack
cards:
- type: horizontal-stack
cards:
- type: custom:mushroom-person-card
entity: person.pi
use_entity_picture: true
name: Игорь
fill_container: false
- type: custom:mushroom-person-card
entity: person.jane
use_entity_picture: true
name: Женя
- type: custom:mushroom-person-card
entity: person.natasha
use_entity_picture: true
name: Наташа
- type: horizontal-stack
cards:
- type: custom:mini-graph-card
name: Температура
unit: 'С°'
entities:
- entity: sensor.conditions_hall_temperature
name: Зал
show_state: true
color: green
show_indicator: true
- entity: sensor.conditions_kitchen_temperature
name: Кухня
show_state: true
show_indicator: true
- entity: sensor.conditions_bedroom_temperature
name: Спальня
show_state: true
show_indicator: true
- entity: binary_sensor.night
name: Ночь
show_legend: false
color: grey
y_axis: secondary
aggregate_func: min
show_state: false
show_line: false
show_points: false
state_map:
- value: 'off'
label: День
- value: 'on'
label: Ночь
group_by: hour
hours_to_show: 48
points_per_hour: 1
line_width: 3
- type: horizontal-stack
cards:
- type: custom:mini-graph-card
name: Влажность
unit: '%'
entities:
- entity: sensor.conditions_hall_humidity
name: Зал
color: green
show_state: true
show_indicator: true
- entity: sensor.conditions_kitchen_humidity
name: Кухня
show_state: true
show_indicator: true
- entity: sensor.conditions_bedroom_humidity
name: Спальня
show_state: true
show_indicator: true
- entity: binary_sensor.night
name: Ночь
color: grey
y_axis: secondary
aggregate_func: min
show_state: false
show_legend: false
show_line: false
show_points: false
state_map:
- value: 'off'
label: День
- value: 'on'
label: Ночь
group_by: hour
hours_to_show: 48
points_per_hour: 1
line_width: 3
- type: horizontal-stack
cards:
- type: custom:mini-graph-card
entities:
- sensor.conditions_pressure_mmhg
name: Давление
color_thresholds:
- value: 1013
color: "#4bf01f" #зеленый
- value: 980
color: "#5586fa" #синий
- value: 1100
color: "#c0392b" #красный
show:
labels: false
hours_to_show: 48
points_per_hour: 1
line_width: 3
- type: custom:mini-graph-card
entities:
- sensor.airqmon_co2_co2
name: Концентрация
color_thresholds:
- value: 400
color: "#4bf01f" #зеленый
- value: 800
color: "#d37b00" #оранжевый
- value: 1000
color: "#c0392b" #красный
icon: mdi:molecule-co2
show:
labels: false
hours_to_show: 48
points_per_hour: 1
line_width: 3
- type: custom:mushroom-cover-card
entity: cover.roller_shade_hall
name: Штора в зале
show_position_control: true
show_buttons_control: true
layout: horizontal
- type: entities
show_header_toggle: false
entities:
- entity: sensor.zal_perception
type: custom:multiple-entity-row
icon: tc:thermal-perception
name: Комфорт
state_header: Зал
entities:
- entity: sensor.spalnia_perception
name: Спальня
- entity: sensor.kukhnia_perception
name: Кухня
- type: entities
show_header_toggle: false
entities:
- entity: sensor.zal_heatindex
type: custom:multiple-entity-row
icon: tc:heat-index
name: Ощущается температура
state_header: Зал
entities:
- entity: sensor.spalnia_heatindex
name: Спальня
- entity: sensor.kukhnia_heatindex
name: Кухня
- type: entities
show_header_toggle: false
entities:
- entity: sensor.zal_absolutehumidity
type: custom:multiple-entity-row
icon: mdi:water
name: Абс. влажность
state_header: Зал
entities:
- entity: sensor.spalnia_absolutehumidity
name: Спальня
- entity: sensor.kukhnia_absolutehumidity
name: Кухня
- type: entities
show_header_toggle: false
entities:
- entity: sensor.drink_water_yearly_single
type: custom:multiple-entity-row
icon: mdi:water-pump
name: Питьевая вода
state_header: Год
entities:
- entity: sensor.drink_water_daily_single
name: Сегодня
- entity: sensor.drink_water_yesterday
name: Вчера
- entity: sensor.drink_water_monthly_single
name: Месяц
- type: vertical-stack
cards:
- type: picture-elements
image: /local/images/plant3.png
name: Фикусы
elements:
- type: state-badge
entity: sensor.miflora_moisture
card_mod: &ref_card_mod
style:
ha-state-label-badge:
$:
ha-label-badge:
$: |
.badge-container .label-badge {
border-radius: 20% !important;
}
style:
top: 70%
left: 9%
color: transparent
--ha-label-badge-font-size: 1.4em
- type: state-badge
entity: sensor.miflora_temperature
card_mod: *ref_card_mod
style:
top: 70%
left: 23%
color: transparent
--ha-label-badge-font-size: 1.4em
- type: state-badge
entity: sensor.miflora_soil_conductivity
card_mod: *ref_card_mod
style:
top: 70%
left: 37%
color: transparent
--ha-label-badge-font-size: 1.4em
- type: state-badge
entity: sensor.miflora_illuminance
card_mod: *ref_card_mod
style:
top: 70%
left: 51%
color: transparent
--ha-label-badge-font-size: 1.4em
- type: state-badge
entity: sensor.flower_zigbee_soil_moisture
card_mod: *ref_card_mod
style:
top: 70%
left: 77%
color: transparent
--ha-label-badge-font-size: 1.4em
- type: state-badge
entity: sensor.flower_zigbee_temperature_ds
card_mod: *ref_card_mod
style:
top: 70%
left: 91%
color: transparent
--ha-label-badge-font-size: 1.4em
- type: 'custom:simple-thermostat'
entity: climate.conder
layout:
step: row
hide:
state: true
header: false
sensors:
- entity: switch.conder_health
name: Health mode
- entity: switch.conder_quiet
name: Quiet mode
control:
hvac:
_name: Режимы
auto:
name: false
heat:
name: false
cool:
name: false
dry:
name: false
fan_only:
name: false
'off':
name: false
swing:
_name: Шторки
'off':
name: false
ud:
icon: mdi:arrow-up-down
name: false
lr:
icon: mdi:arrow-left-right
name: false
all:
icon: mdi:arrow-expand-all
name: false
# - type: grid
# columns: 2
# cards:
# - type: thermostat
# name: Спальня
# entity: climate.thermo_hall
# - type: thermostat
# name: Кухня
# entity: climate.thermo_kitchen
# - type: grid
# columns: 2
# cards:
# - type: thermostat #custom:better-thermostat-ui-card
# name: Спальня
# entity: climate.ai_bedroom
# - type: thermostat #custom:better-thermostat-ui-card
# name: Кухня
# entity: climate.ai_kitchen
- type: 'custom:vacuum-card'
entity: vacuum.casper
actions:
start:
service: xiaomi_vacuum.vacuum_clean_room_by_id
service_data:
entity_id: vacuum.casper
rooms: [[ 'A' ], [ 'C' ], ['G'], [ 'D' ]]
repeats: 1
clean_mode: 2
mop_mode: 2
stats:
default:
- attribute: filter_time_left
unit: часов
subtitle: Фильтр
- attribute: side_brush_time_left
unit: часов
subtitle: Боковая щетка
- attribute: main_brush_time_left
unit: часов
subtitle: Главная щетка
- attribute: waterbox
subtitle: Бак для воды
cleaning:
- attribute: cleaning_area
unit: m2
subtitle: Площадь уборки
- attribute: cleaning_time
unit: minutes
subtitle: Время уборки
shortcuts:
- name: Уборка гостинной
icon: 'mdi:sofa'
service: xiaomi_vacuum.vacuum_clean_room_by_id
service_data:
entity_id: vacuum.casper
rooms:
- C
repeats: 1
clean_mode: 1
mop_mode: 2
- name: Уборка кухни
icon: 'mdi:silverware-fork-knife'
service: xiaomi_vacuum.vacuum_clean_room_by_id
service_data:
entity_id: vacuum.casper
rooms:
- G
repeats: 1
clean_mode: 1
mop_mode: 2
- name: Уборка спальни
icon: 'mdi:bed'
service: xiaomi_vacuum.vacuum_clean_room_by_id
service_data:
entity_id: vacuum.casper
rooms:
- F
repeats: 1
clean_mode: 1
mop_mode: 2
- name: Уборка коридора
icon: 'mdi:shoe-sneaker'
service: xiaomi_vacuum.vacuum_clean_room_by_id
service_data:
entity_id: vacuum.casper
rooms:
- D
repeats: 1
clean_mode: 1
mop_mode: 2
- type: custom:mini-graph-card
name: Дневное потребление энергии
unit: 'W'
entities:
- entity: sensor.total_power
name: Всего
show_state: true
- entity: sensor.energy_relay_single
name: Подсветка
color: green
show_indicator: true
show_state: true
- entity: sensor.energy_humidity_single
name: Увлаж
show_indicator: true
show_state: true
- entity: sensor.energy_jane_single
name: Лампа Жеки
show_indicator: true
show_state: true
- entity: sensor.energy_window_lamp_single
name: Лампа моя
show_indicator: true
show_state: true
hours_to_show: 96
aggregate_func: max
group_by: date
bar_spacing: 5
hour24: true
show:
graph: bar
- title: Инфо
id: control
icon: mdi:server
cards:
- type: vertical-stack
cards:
- type: entities
title: Контроль счетчика воды
show_header_toggle: false
entities:
- entity: sensor.drink_water_drink_filter
name: Volume
- entity: button.restart_drink_filter
name: Restart Counter
- entity: binary_sensor.state_drink_filter
name: Status
- entity: sensor.status_drink_filter
name: WiFi Level
- entity: sensor.uptime_drink_filter_new
name: Uptime
- type: entities
show_name: true
title: Параметры системы
entities:
- entity: sensor.last_boot_custom
name: Server Online
- entity: sensor.online_custom
icon: mdi:home-assistant
- entity: binary_sensor.internet_is_available
name: Internet
- entity: sensor.home_assistant_v2_db_size
name: DB size
icon: mdi:database
- entity: sensor.cert_expiry_timestamp_ha_pavuk_su
- entity: switch.sonoff_zigbee
name: AirConditioner Power
- type: custom:auto-entities
show_empty: false
card:
type: entities
filter:
include:
- entity_id: sensor.*battery*
exclude:
- state: "off"
- state: "unavailable"
- state: '> 20.0'
#- entity_id: sensor.*natasha_battery*
- entity_id: sensor.macbookpro_internal_battery_state
- entity_id: sensor.mi_band_battery_level
- entity_id: sensor.state_of_battery
- entity_id: sensor.jane_poco_battery_health
sort:
method: state
reverse: false
numeric: true
count: 10
- type: entities
show_name: true
entities:
- entity: input_number.reg_list_bat
name: Порог уровня заряда, %
- type: markdown
title: Состояние батарей устройств, %
content: >-
<center>
| | | |
|:----|:----|----:|
{% for ent_nm, st_ent in state_attr('sensor.state_of_battery','list_of_bat')-%}
{% if st_ent < 15 %}
{% set icon = '<font color=Red><ha-icon icon="mdi:battery-10"></ha-icon></font>' %}
{% elif st_ent < 25 %}
{% set icon = '<font color=Orange><ha-icon icon="mdi:battery-20"></ha-icon></font>' %}
{% elif st_ent < 35 %}
{% set icon = '<ha-icon icon="mdi:battery-30"></ha-icon>' %}
{% elif st_ent < 45 %}
{% set icon = '<ha-icon icon="mdi:battery-40"></ha-icon>' %}
{% elif st_ent < 55 %}
{% set icon = '<ha-icon icon="mdi:battery-50"></ha-icon>' %}
{% elif st_ent < 65 %}
{% set icon = '<ha-icon icon="mdi:battery-60"></ha-icon>' %}
{% elif st_ent < 75 %}
{% set icon = '<ha-icon icon="mdi:battery-70"></ha-icon>' %}
{% elif st_ent < 85 %}
{% set icon = '<ha-icon icon="mdi:battery-80"></ha-icon>' %}
{% elif st_ent < 95 %}
{% set icon = '<ha-icon icon="mdi:battery-90"></ha-icon>' %}
{% else %}
{% set icon = '<ha-icon icon="mdi:battery"></ha-icon>' %}
{% endif %}
| {{ icon }} | {{ ent_nm }} | {{ "&emsp;" ~ st_ent }}
{% endfor %} </center></font>
- type: vertical-stack
cards:
- type: custom:mini-graph-card
unit: '%'
name: CPU use
entities:
- sensor.processor_use
color_thresholds:
- value: 0
color: "#4bf01f"
- value: 20
color: "#d35400"
- value: 45
color: "#c0392b"
show:
labels: false
extrema: true
hours_to_show: 48
points_per_hour: 1
line_width: 2
- type: custom:mini-graph-card
unit: 'C'
entities:
- sensor.cpu_temperature
color_thresholds:
- value: 60
color: "#4bf01f"
- value: 68
color: "#d35400"
- value: 73
color: "#c0392b"
show:
labels: false
extrema: true
hours_to_show: 48
points_per_hour: 1
line_width: 2
- type: custom:mini-graph-card
name: Memory use
unit: '%'
entities:
- sensor.memory_use_percent
color_thresholds:
- value: 300
color: "#4bf01f"
- value: 40
color: "#d35400"
- value: 50
color: "#c0392b"
show:
labels: false
extrema: true
hours_to_show: 48
points_per_hour: 1
line_width: 2
- type: custom:mini-graph-card
name: Disk use
unit: '%'
entities:
- sensor.disk_use_percent_home
color_thresholds:
- value: 50
color: "#4bf01f"
- value: 55
color: "#d35400"
- value: 60
color: "#c0392b"
show:
labels: false
extrema: true
hours_to_show: 48
points_per_hour: 1
line_width: 2
- type: vertical-stack
cards:
- type: entities
title: Айфон Игоря
show_header_toggle: false
entities:
- entity: sensor.iphone_igor_connection_type
name: Connection Type
# - sensor.iphoneig_ssid
- entity: sensor.iphone_igor_distance
name: Distance
- entity: sensor.iphone_igor_floors_ascended
name: Floors Ascended
- entity: sensor.iphone_igor_floors_descended
name: Floors Descended
- entity: sensor.iphone_igor_geocoded_location
name: Location
- entity: sensor.iphone_igor_steps
name: Steps
- type: entities
title: Айфон Наташи
show_header_toggle: false
entities:
- entity: sensor.iphone_natasha_connection_type
name: Connection Type
# - sensor.iphone_natasha_ssid
- entity: sensor.iphone_natasha_distance
name: Distance
- entity: sensor.iphone_natasha_floors_ascended
name: Floors Ascended
- entity: sensor.iphone_natasha_floors_descended
name: Floors Descended
- entity: sensor.iphone_natasha_geocoded_location
name: Location
- entity: sensor.iphone_natasha_steps
name: Steps
- type: custom:mini-graph-card
name: Освещенность
unit: 'lx'
entities:
- entity: sensor.corridor_lux_illuminance_lux
name: Освещенность коридора
show_state: true
show_indicator: true
- entity: sensor.kitchen_lux_illuminance_lux
name: Освещенность кухни
show_state: true
show_indicator: true
color: orange
- entity: binary_sensor.night
name: Ночь
color: rgba(255,255,255,.25)
y_axis: secondary
aggregate_func: min
show_legend: false
show_state: false
show_line: false
show_points: false
state_map:
- value: 'off'
label: День
- value: 'on'
label: Ночь
group_by: hour
show:
labels: false
extrema: true
hours_to_show: 48
points_per_hour: 1
line_width: 2
- title: Медиа
id: data
icon: mdi:cast-audio
cards:
- type: vertical-stack
cards:
- type: custom:mini-media-player
artwork: full-cover
entity: media_player.yandex_station_ff98f01063d0
shortcuts:
attribute: sound_mode
buttons:
- icon: 'mdi:account-voice'
id: Произнеси текст
type: sound_mode
- icon: 'mdi:google-assistant'
id: Выполни команду
type: sound_mode
- icon: 'mdi:playlist-star'
id: включи мою любимую музыку вперемешку
type: command
- icon: 'mdi:playlist-music'
id: включи плейлист дня
type: command
- icon: 'mdi:heart'
id: лайк
type: command
- icon: 'mdi:radio-fm'
id: включи Вести ФМ
type: command
columns: 6
hide:
power: true
tts:
platform: yandex_station
- type: vertical-stack
cards:
- type: media-control
artwork: full-cover
entity: media_player.lgtv
- type: media-control
artwork: full-cover
entity: media_player.samsungtv
- type: media-control
artwork: full-cover
entity: media_player.pod
- type: media-control
artwork: full-cover
entity: media_player.appletv
- title: Rooms Conditions
icon: mdi:home-thermometer
cards:
- type: vertical-stack
cards:
- type: entities
entities:
- entity: sensor.zal_absolutehumidity
name: Absolute Humidity
- entity: sensor.zal_dewpoint
name: Dew Point
- entity: sensor.zal_frostpoint
name: Frost Point
- entity: sensor.zal_frostrisk
name: Frost Risk
- entity: sensor.zal_heatindex
name: Heat Index
- entity: sensor.zal_simmerindex
name: Simmer Index
- entity: sensor.zal_simmerzone
name: Simmer Zone
- entity: sensor.zal_perception
name: Thermal Perception
title: Зал
- type: vertical-stack
cards:
- type: entities
entities:
- entity: sensor.kukhnia_absolutehumidity
name: Absolute Humidity
- entity: sensor.kukhnia_dewpoint
name: Dew Point
- entity: sensor.kukhnia_frostpoint
name: Frost Point
- entity: sensor.kukhnia_frostrisk
name: Frost Risk
- entity: sensor.kukhnia_heatindex
name: Heat Index
- entity: sensor.kukhnia_simmerindex
name: Simmer Index
- entity: sensor.kukhnia_simmerzone
name: Simmer Zone
- entity: sensor.kukhnia_perception
name: Thermal Perception
title: Кухня
- type: vertical-stack
cards:
- type: entities
entities:
- entity: sensor.spalnia_absolutehumidity
name: Absolute Humidity
- entity: sensor.spalnia_dewpoint
name: Dew Point
- entity: sensor.spalnia_frostpoint
name: Frost Point
- entity: sensor.spalnia_frostrisk
name: Frost Risk
- entity: sensor.spalnia_heatindex
name: Heat Index
- entity: sensor.spalnia_simmerindex
name: Simmer Index
- entity: sensor.spalnia_simmerzone
name: Simmer Zone
- entity: sensor.spalnia_perception
name: Thermal Perception
title: Спальня
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment