Compare commits

..

11 Commits

2 changed files with 491 additions and 96 deletions

View File

@@ -245,9 +245,10 @@ views:
- entity: binary_sensor.internet
name: Internet (Min/Avg/Max)
secondary_info: >-
{{ states('sensor.min_ping') | round }}ms/{{
states('sensor.avg_ping') | round }}ms/{{
states('sensor.max_ping') | round }}ms
{{ states('sensor.internet_round_trip_time_minimum') | round
}}ms/{{ states('sensor.internet_round_trip_time_average') |
round }}ms/{{
states('sensor.internet_round_trip_time_maximum') | round }}ms
tap_action:
action: navigate
navigation_path: /lovelace/house-stats

View File

@@ -166,6 +166,16 @@ streamline_templates:
show_state: false
tap_action:
action: toggle
modules:
- badgy-condition-helper
badgy-condition-helper:
entity_badges:
'1':
entity: '[[floor_lights_count]]'
condition:
- condition: state
entity_id: '[[lights_entity]]'
state: 'on'
popup_temperature_button:
defaults:
- name: ''
@@ -300,6 +310,124 @@ streamline_templates:
- state_color_button
state_color_button:
color: '[[color]]'
phone_info_grid:
card:
type: custom:stack-in-card
card_mod:
style: |
ha-card {
overflow: visible !important;
}
cards:
- type: glance
entities:
- entity: device_tracker.[[device]]
name: Location
- entity: sensor.[[device]]_interval
name: Interval
icon: mdi:clock-start
- entity: sensor.[[device]]_travel_time
name: TravTime
icon: mdi:clock-outline
- entity: sensor.[[device]]_zone_distance
name: Home
icon: mdi:map-marker-distance
- entity: sensor.[[device]]_next_update
name: NextUpdt
icon: mdi:update
state_color: false
- type: glance
entities:
- entity: sensor.[[device]]_waze_distance
name: WazeDist
icon: mdi:map-marker-distance
- entity: sensor.[[device]]_calc_distance
name: CalcDist
icon: mdi:map-marker-distance
- entity: sensor.[[device]]_dir_of_travel
name: Direction
icon: mdi:compass-outline
- entity: sensor.[[device]]_last_located
name: Located
icon: mdi:map-clock
- entity: sensor.[[device]]_last_update
name: LastUpdt
icon: mdi:history
- type: horizontal-stack
cards:
- type: entities
entities:
- entity: sensor.[[device]]_info
name: Info
icon: mdi:information-outline
iphone_entities_card:
card:
type: entities
entities:
- entity: device_tracker.[[device]]_app
name: App Location
- type: custom:battery-state-entity
entity: sensor.[[device]]_battery
name: Battery
tap_action: more-info
charging_state:
entity_id: sensor.[[device]]_battery_status
state: Charging
- type: custom:template-entity-row
name: Connection Type
entity: sensor.[[device]]_connection_type
state: |
{% if is_state('sensor.[[device]]_connection_type','Cellular') %}
{{ state_attr('sensor.[[device]]_connection_type','Cellular Technology') }}
{% elif is_state('sensor.[[device]]_connection_type','Wi-Fi') %}
Wi-Fi
{% else %}
Unknown
{% endif %}
- entity: sensor.[[device]]_ssid
name: SSID
- entity: sensor.[[device]]_steps
name: Steps Today
- entity: binary_sensor.[[device]]_focus
name: Focus
- entity: sensor.[[device]]_storage
name: Storage
show_header_toggle: false
state_color: true
ipad_entities_card:
card:
type: entities
entities:
- entity: device_tracker.[[device]]_app
name: App Location
- type: custom:battery-state-entity
entity: sensor.[[device]]_battery
name: Battery
tap_action: more-info
charging_state:
entity_id: sensor.[[device]]_battery_status
state: Charging
- type: custom:template-entity-row
name: Connection Type
entity: sensor.[[device]]_connection_type
state: |
{% if is_state('sensor.[[device]]_connection_type','Cellular') %}
{{ state_attr('sensor.[[device]]_connection_type','Cellular Technology') }}
{% elif is_state('sensor.[[device]]_connection_type','Wi-Fi') %}
Wi-Fi
{% else %}
Unknown
{% endif %}
- entity: sensor.[[device]]_ssid
name: SSID
- entity: binary_sensor.[[device]]_focus
name: Focus
- entity: sensor.[[device]]_storage
name: Storage
- entity: sensor.[[device]]_info
name: Info
show_header_toggle: false
state_color: true
views:
- title: Home
path: home
@@ -356,6 +484,13 @@ views:
layout: vertical
icon_type: entity-picture
fill_container: false
- type: custom:streamline-card
template: main_button_name
variables:
name: Mobile Devices
icon: mdi:cellphone-information
navigation_path: /dashboard-mobile/mobile-devices
columns: '4'
- type: heading
icon: mdi:cctv
heading: Cameras
@@ -509,6 +644,19 @@ views:
!important;
transition: background-color 1s !important;
}
.bubble-icon {
color:
{% set feeding_reminders = states('counter.rabbit_feeding_reminder_count') | int %}
{% set cleaning_reminders = states('counter.rabbit_hutch_cleaning_reminder_count') | int %}
{% if feeding_reminders == 0 and cleaning_reminders == 0 %}
var(--bubble-main-icon-color)
{% elif feeding_reminders < 3 and cleaning_reminders < 3 %}
var(--warning-color)
{% else %}
var(--error-color)
{% endif %}
!important;
transition: color 1s !important;
- type: custom:streamline-card
template: main_button_name
variables:
@@ -624,6 +772,24 @@ views:
!important;
transition: background-color 1s !important;
}
.bubble-icon {
color:
{% set counters = states.counter
| selectattr('entity_id','contains','tony')
| selectattr('entity_id','contains','meds')
| map(attribute='state')
| max
| int %}
{% if counters == 0 %}
var(--bubble-main-icon-color)
{% elif counters < 3 %}
var(--warning-color)
{% else %}
var(--error-color)
{% endif %}
!important;
transition: color 1s !important;
}
visibility:
- condition: user
users:
@@ -667,6 +833,24 @@ views:
!important;
transition: background-color 1s !important;
}
.bubble-icon {
color:
{% set counters = states.counter
| selectattr('entity_id','contains','tina')
| selectattr('entity_id','contains','meds')
| map(attribute='state')
| max
| int %}
{% if counters == 0 %}
var(--bubble-main-icon-color)
{% elif counters < 3 %}
var(--warning-color)
{% else %}
var(--error-color)
{% endif %}
!important;
transition: color 1s !important;
}
visibility:
- condition: user
users:
@@ -718,6 +902,24 @@ views:
!important;
transition: background-color 1s !important;
}
.bubble-icon {
color:
{% set counters = states.counter
| selectattr('entity_id','contains','kallen')
| selectattr('entity_id','contains','meds')
| map(attribute='state')
| max
| int %}
{% if counters == 0 %}
var(--bubble-main-icon-color)
{% elif counters < 3 %}
var(--warning-color)
{% else %}
var(--error-color)
{% endif %}
!important;
transition: color 1s !important;
}
- type: custom:bubble-card
card_type: button
button_type: name
@@ -797,10 +999,11 @@ views:
- type: custom:streamline-card
template: floors_separator
variables:
- name: Basement
- icon: mdi:home-floor-b
- power_entity: sensor.basement_total_power_sensor
- lights_entity: light.basement_lights
name: Basement
icon: mdi:home-floor-b
power_entity: sensor.basement_total_power_sensor
lights_entity: light.basement_lights
floor_lights_count: sensor.basement_lights_on
- type: custom:streamline-card
template: main_button_floors
variables:
@@ -815,10 +1018,11 @@ views:
- type: custom:streamline-card
template: floors_separator
variables:
- name: First Floor
- icon: mdi:home-floor-1
- power_entity: sensor.first_floor_total_power_sensor
- lights_entity: light.first_floor_lights
name: First Floor
icon: mdi:home-floor-1
power_entity: sensor.first_floor_total_power_sensor
lights_entity: light.first_floor_lights
floor_lights_count: sensor.first_floor_lights_on
- type: custom:streamline-card
template: main_button_floors
variables:
@@ -894,10 +1098,11 @@ views:
- type: custom:streamline-card
template: floors_separator
variables:
- name: Second Floor
- icon: mdi:home-floor-2
- power_entity: sensor.second_floor_total_power_sensor
- lights_entity: light.second_floor_lights
name: Second Floor
icon: mdi:home-floor-2
power_entity: sensor.second_floor_total_power_sensor
lights_entity: light.second_floor_lights
floor_lights_count: sensor.second_floor_lights_on
- type: custom:streamline-card
template: main_button_floors
variables:
@@ -1259,7 +1464,15 @@ views:
double_tap_action:
action: none
modules:
- rotating_icon
- badgy-condition-helper
badgy-condition-helper:
icon_effects:
main_icon:
effect: spin-360
condition:
- condition: state
entity_id: fan.basement_fan
state: 'on'
- type: custom:bubble-card
card_type: button
button_type: switch
@@ -2466,7 +2679,15 @@ views:
double_tap_action:
action: none
modules:
- rotating_icon
- badgy-condition-helper
badgy-condition-helper:
icon_effects:
main_icon:
effect: spin-360
condition:
- condition: state
entity_id: fan.master_bedroom_fan
state: 'on'
- type: custom:bubble-card
card_type: empty-column
- type: custom:bubble-card
@@ -2632,7 +2853,15 @@ views:
double_tap_action:
action: none
modules:
- rotating_icon
- badgy-condition-helper
badgy-condition-helper:
icon_effects:
main_icon:
effect: spin-360
condition:
- condition: state
entity_id: fan.kallen_bedroom_fan
state: 'on'
- type: custom:bubble-card
card_type: button
button_type: switch
@@ -3580,7 +3809,6 @@ views:
state: active
- type: custom:mushroom-template-badge
content: Tornado Possible
icon: mdi:weather-tornado
color: red
label: Stay Alert
tap_action:
@@ -3594,6 +3822,7 @@ views:
- condition: state
entity: binary_sensor.tornado_possible
state: 'on'
icon: '{{ state_attr(''binary_sensor.tornado_possible'',''icon'') }}'
- type: custom:mushroom-template-badge
content: >-
{{
@@ -3801,10 +4030,10 @@ views:
entity: sensor.spc_outlook_day_1
state_not: No Risk
- type: custom:mushroom-template-badge
content: '{{ state_attr(entity,''wind_probability'') }}'
content: '{{ states(entity) }}'
icon: mdi:weather-windy
color: '{{ state_attr(entity,''wind_fill'') }}'
entity: sensor.spc_outlook_day_1
entity: sensor.spc_wind_risk_day_1
label: SPC Wind Risk
tap_action:
action: more-info
@@ -3816,22 +4045,19 @@ views:
- condition: and
conditions:
- condition: state
entity: sensor.spc_outlook_day_1
entity: sensor.spc_wind_risk_day_1
state_not: unavailable
- condition: state
entity: sensor.spc_outlook_day_1
entity: sensor.spc_wind_risk_day_1
state_not: unknown
- condition: state
entity: sensor.spc_outlook_day_1
entity: sensor.spc_wind_risk_day_1
state_not: No Risk
- condition: state
entity: sensor.spc_outlook_day_1
state_not: General Thunderstorms Risk
- type: custom:mushroom-template-badge
content: '{{ state_attr(entity,''torn_probability'') }}'
content: '{{ states(entity) }}'
icon: mdi:weather-tornado
color: '{{ state_attr(entity,''torn_fill'') }}'
entity: sensor.spc_outlook_day_1
entity: sensor.spc_tornado_risk_day_1
label: SPC Tornado Risk
tap_action:
action: more-info
@@ -3843,22 +4069,19 @@ views:
- condition: and
conditions:
- condition: state
entity: sensor.spc_outlook_day_1
entity: sensor.spc_tornado_risk_day_1
state_not: unavailable
- condition: state
entity: sensor.spc_outlook_day_1
entity: sensor.spc_tornado_risk_day_1
state_not: unknown
- condition: state
entity: sensor.spc_outlook_day_1
entity: sensor.spc_tornado_risk_day_1
state_not: No Risk
- condition: state
entity: sensor.spc_outlook_day_1
state_not: General Thunderstorms Risk
- type: custom:mushroom-template-badge
content: '{{ state_attr(entity,''hail_probability'') }}'
content: '{{ states(entity) }}'
icon: mdi:weather-hail
color: '{{ state_attr(entity,''hail_fill'') }}'
entity: sensor.spc_outlook_day_1
entity: sensor.spc_hail_risk_day_1
label: SPC Hail Risk
tap_action:
action: more-info
@@ -3870,17 +4093,14 @@ views:
- condition: and
conditions:
- condition: state
entity: sensor.spc_outlook_day_1
entity: sensor.spc_hail_risk_day_1
state_not: unavailable
- condition: state
entity: sensor.spc_outlook_day_1
entity: sensor.spc_hail_risk_day_1
state_not: unknown
- condition: state
entity: sensor.spc_outlook_day_1
entity: sensor.spc_hail_risk_day_1
state_not: No Risk
- condition: state
entity: sensor.spc_outlook_day_1
state_not: General Thunderstorms Risk
- type: custom:mushroom-template-badge
content: |-
{% if is_state(entity,'on') %}
@@ -4986,32 +5206,6 @@ views:
action: none
type: masonry
subview: true
- title: Global Scenes
path: global-scenes
icon: mdi:home-lightbulb-outline
type: sections
max_columns: 4
subview: true
sections:
- type: grid
cards:
- type: entities
entities:
- script.give_me_darkness
- button.good_morning
- button.goodnight
- script.max_brightness
- button.sunset_lights_trigger
- entity: button.basement_on_manual
name: Basement On
- script.adaptive_on_first_floor
- script.adaptive_on_second_floor
- script.bright_on_first_floor
- script.bright_on_second_floor
- script.evening_on_first_floor
- script.evening_on_second_floor
- switch.animated_scene_halloween
- script.emma_rainbow_lights
- title: Tony
path: tony
icon: mdi:human-male
@@ -5725,26 +5919,55 @@ views:
- type: grid
cards:
- type: heading
heading: Overview
heading: Climate Devices On
heading_style: title
icon: m3rf:climate-mini-split
- type: custom:auto-entities
show_empty: false
card:
type: entities
title: Climate On
show_header_toggle: false
state_color: true
filter:
include:
- domain: fan
- domain: climate
- options: {}
domain: fan
- options: {}
domain: climate
exclude:
- entity_id: fan.all_fans
- state: 'off'
- state: unavailable
- integration: generic_thermostat
- options: {}
entity_id: fan.all_fans
- options: {}
state: 'off'
- options: {}
state: unavailable
- options: {}
integration: generic_thermostat
sort:
method: friendly_name
reverse: false
- type: heading
icon: mdi:home-thermometer
heading: Floor Average Temperatures
heading_style: title
- type: custom:auto-entities
card:
type: entities
state_color: true
show_header_toggle: false
filter:
include:
- options: {}
entity_id: sensor.*floor_average_temperature
exclude: []
sort:
method: state
numeric: true
reverse: true
- type: heading
icon: hue:motion-sensor-temperature
heading: Room Temperatures
heading_style: title
- type: custom:auto-entities
card:
type: entities
@@ -5753,9 +5976,11 @@ views:
state_color: true
filter:
include:
- entity_id: binary_sensor.*_hot
- options: {}
entity_id: binary_sensor.*_hot
state: 'on'
- entity_id: binary_sensor.*_cold
- options: {}
entity_id: binary_sensor.*_cold
state: 'on'
sort:
method: entity_id
@@ -5766,26 +5991,12 @@ views:
- type: custom:auto-entities
card:
type: entities
title: Floor Average Temperatures
state_color: true
show_header_toggle: false
filter:
include:
- entity_id: sensor.*floor_average_temperature
exclude: []
sort:
method: state
numeric: true
reverse: true
- type: custom:auto-entities
card:
type: entities
title: Room Temperatures
state_color: true
show_header_toggle: false
filter:
include:
- device_manufacturer: Signify Netherlands B.V.
- options: {}
device_manufacturer: Signify Netherlands B.V.
entity_id: sensor.*_temperature
exclude: []
sort:
@@ -5796,6 +6007,8 @@ views:
cards:
- type: heading
heading: Master Bedroom
heading_style: title
icon: mdi:bed
- type: entities
entities:
- entity: switch.master_bedroom_aircon_display
@@ -5836,6 +6049,8 @@ views:
cards:
- type: heading
heading: Emma Bedroom
heading_style: title
icon: mdi:bed
- type: entities
entities:
- entity: switch.emma_bedroom_aircon_display
@@ -5879,6 +6094,8 @@ views:
cards:
- type: heading
heading: Climate Feed
heading_style: title
icon: mdi:timeline-text
- type: custom:home-feed-card
card_id: climate_feed_ac
show_empty: false
@@ -5991,6 +6208,172 @@ views:
cards: []
badges: []
subview: true
- title: Mobile Devices
path: mobile-devices
icon: mdi:cellphone-information
type: sections
sections:
- type: grid
cards:
- type: heading
heading: Tony's iPhone
- type: custom:streamline-card
template: iphone_entities_card
variables:
- device: tony_s_iphone
- type: custom:streamline-card
template: phone_info_grid
variables:
- device: tony_s_iphone
column_span: 2
- type: grid
cards:
- type: heading
heading: Tina's iPhone
- type: custom:streamline-card
template: iphone_entities_card
variables:
- device: tinas_iphone
- type: custom:streamline-card
template: phone_info_grid
variables:
- device: tinas_iphone
column_span: 2
- type: grid
cards:
- type: heading
heading: Kallen's iPhone
- type: custom:streamline-card
template: iphone_entities_card
variables:
- device: kallen_iphone
- type: custom:streamline-card
template: phone_info_grid
variables:
- device: kallen_iphone
column_span: 2
- type: grid
cards:
- type: heading
heading: Map
- type: map
entities:
- entity: person.tony_stork
- entity: person.christina_stork
- entity: person.kallen_stork
- entity: zone.bob_evans
- entity: zone.home
- entity: zone.aldi
- entity: zone.chief
- entity: zone.courtney_cave
- entity: zone.dollar_general_clinton_st
- entity: zone.elementary_school
- entity: zone.kroger
- entity: zone.meijer
- entity: zone.menards
- entity: zone.middle_school
- entity: zone.rite_aid
- entity: zone.the_elder_storks
- entity: zone.wal_mart
- entity: zone.latty
hours_to_show: 24
theme_mode: dark
- type: grid
cards:
- type: heading
heading: Tony's iPad
- type: custom:streamline-card
template: ipad_entities_card
variables:
- device: tony_s_ipad
- type: grid
cards:
- type: heading
heading: Tinas iPad
- type: custom:streamline-card
template: ipad_entities_card
variables:
- device: tinas_ipad
- type: grid
cards:
- type: heading
heading: Tony's Accessories
- type: entities
entities:
- type: custom:battery-state-entity
entity: sensor.tony_s_apple_watch_battery
name: Battery
tap_action: more-info
charging_state:
entity_id: sensor.tony_s_apple_watch_battery_status
state: Charging
- entity: sensor.tony_s_apple_watch_zone_distance
name: Distance
- entity: sensor.tony_s_apple_watch_info
name: Info
show_header_toggle: false
state_color: true
title: Apple Watch
- type: entities
entities:
- entity: sensor.tonys_airpods_pro_zone_distance
name: Distance
- entity: sensor.tonys_airpods_pro_info
name: Info
state_color: true
show_header_toggle: false
title: Airpods Pro
- type: grid
cards:
- type: heading
heading: Tina's Accessories
- type: entities
entities:
- type: custom:battery-state-entity
entity: sensor.christinas_apple_watch_battery
name: Battery
tap_action: more-info
charging_state:
entity_id: sensor.christinas_apple_watch_battery_status
state: Charging
- entity: sensor.christinas_apple_watch_zone_distance
name: Distance
- entity: sensor.christinas_apple_watch_info
name: Info
show_header_toggle: false
state_color: true
title: Apple Watch
- type: entities
entities:
- entity: sensor.tinas_airpods_pro_zone_distance
name: Distance
- entity: sensor.tinas_airpods_pro_info
name: Info
show_header_toggle: false
state_color: true
title: Airpods Pro
max_columns: 4
cards: []
badges:
- type: entity
show_name: true
show_state: true
show_icon: true
entity: person.tony_stork
color: ''
- type: entity
show_name: true
show_state: true
show_icon: true
entity: person.christina_stork
color: ''
- type: entity
show_name: true
show_state: true
show_icon: true
entity: person.kallen_stork
color: ''
subview: true
- type: sections
max_columns: 4
title: Test
@@ -6038,6 +6421,7 @@ views:
icon: mdi:home-floor-1
power_entity: sensor.first_floor_total_power_sensor
lights_entity: light.first_floor_lights
floor_lights_count: sensor.first_floor_lights_on
- type: custom:streamline-card
template: state_color_button
variables:
@@ -6194,10 +6578,20 @@ views:
show_state: false
tap_action:
action: toggle
modules:
- badgy-condition-helper
badgy-condition-helper:
entity_badges:
'1':
entity: sensor.first_floor_lights_on
condition:
- condition: state
entity_id: light.first_floor_lights
state: 'on'
- type: custom:bubble-card
card_type: button
button_type: state
entity: binary_sensor.living_room_front_motion
entity: binary_sensor.living_room_back_motion
name: State Color Button
show_state: true
tap_action: