From 0af54c6d90d79e7eec1ede9236395209e78ff5d4 Mon Sep 17 00:00:00 2001 From: Georgi Gardev Date: Thu, 1 Dec 2022 16:01:59 +0200 Subject: [PATCH] Add new popup cards --- config/desktop-lovelace.yaml | 1 - config/floorplan-lovelace.yaml | 1 - config/hallway-lovelace.yaml | 4 - config/kitchen-lovelace.yaml | 3 +- .../hallway_dashboard/at_home_dashboard.yaml | 3 +- .../coming_home_dashboard.yaml | 3 +- .../leaving_home_dashboard.yaml | 2 + .../home_dashboard/bathroom_dashboard.yaml | 4 +- .../home_dashboard/bedroom_dashboard.yaml | 5 +- .../guest_bedroom_dashboard.yaml | 4 +- .../home_dashboard/hallway_dashboard.yaml | 4 +- .../home_dashboard/kitchen_dashboard.yaml | 4 +- .../home_dashboard/living_room_dashboard.yaml | 4 +- .../home_dashboard/preferences_dashboard.yaml | 4 +- .../home_dashboard/terrarium_dashboard.yaml | 4 +- config/lovelace/popup_cards.yaml | 1406 +++++++++-------- config/ui-lovelace.yaml | 1 - 17 files changed, 758 insertions(+), 699 deletions(-) diff --git a/config/desktop-lovelace.yaml b/config/desktop-lovelace.yaml index a6c1ace..5375843 100644 --- a/config/desktop-lovelace.yaml +++ b/config/desktop-lovelace.yaml @@ -1,6 +1,5 @@ decluttering_templates: !include_dir_merge_named lovelace/decluttering_templates button_card_templates: !include_dir_merge_named lovelace/button_card_templates -popup_cards: !include lovelace/popup_cards.yaml kiosk_mode: hide_overflow: true diff --git a/config/floorplan-lovelace.yaml b/config/floorplan-lovelace.yaml index eb43784..dc8a37e 100644 --- a/config/floorplan-lovelace.yaml +++ b/config/floorplan-lovelace.yaml @@ -1,6 +1,5 @@ decluttering_templates: !include_dir_merge_named lovelace/decluttering_templates button_card_templates: !include_dir_merge_named lovelace/button_card_templates -popup_cards: !include lovelace/popup_cards.yaml kiosk_mode: hide_header: true diff --git a/config/hallway-lovelace.yaml b/config/hallway-lovelace.yaml index 8050961..81d890c 100644 --- a/config/hallway-lovelace.yaml +++ b/config/hallway-lovelace.yaml @@ -1,9 +1,5 @@ decluttering_templates: !include_dir_merge_named lovelace/decluttering_templates button_card_templates: !include_dir_merge_named lovelace/button_card_templates -popup_cards: !include lovelace/popup_cards.yaml - -kiosk_mode: - kiosk: true title: Sarah views: diff --git a/config/kitchen-lovelace.yaml b/config/kitchen-lovelace.yaml index 5def61e..75f7146 100644 --- a/config/kitchen-lovelace.yaml +++ b/config/kitchen-lovelace.yaml @@ -1,6 +1,5 @@ decluttering_templates: !include_dir_merge_named lovelace/decluttering_templates button_card_templates: !include_dir_merge_named lovelace/button_card_templates -popup_cards: !include lovelace/popup_cards.yaml kiosk_mode: kiosk: false @@ -113,3 +112,5 @@ views: # name: Outlet # variables: # power_sensor: sensor.kitchen_outlet_electric_consumption_w + + - !include ./lovelace/popup_cards.yaml diff --git a/config/lovelace/hallway_dashboard/at_home_dashboard.yaml b/config/lovelace/hallway_dashboard/at_home_dashboard.yaml index 32de98f..ee26f31 100644 --- a/config/lovelace/hallway_dashboard/at_home_dashboard.yaml +++ b/config/lovelace/hallway_dashboard/at_home_dashboard.yaml @@ -186,7 +186,6 @@ card: - width: 60px - font-size: 13px - # Column 2 - type: vertical-stack cards: @@ -335,3 +334,5 @@ card: styles: card: - margin-bottom: 8px + + - !include ../popup_cards.yaml diff --git a/config/lovelace/hallway_dashboard/coming_home_dashboard.yaml b/config/lovelace/hallway_dashboard/coming_home_dashboard.yaml index e1bee25..fe0dd63 100644 --- a/config/lovelace/hallway_dashboard/coming_home_dashboard.yaml +++ b/config/lovelace/hallway_dashboard/coming_home_dashboard.yaml @@ -183,7 +183,6 @@ card: entity: vacuum.vacuum name: Vacuum - # Column 2 - type: vertical-stack cards: @@ -332,3 +331,5 @@ card: styles: card: - margin-bottom: 8px + + - !include ../popup_cards.yaml diff --git a/config/lovelace/hallway_dashboard/leaving_home_dashboard.yaml b/config/lovelace/hallway_dashboard/leaving_home_dashboard.yaml index b66deb8..0985b57 100644 --- a/config/lovelace/hallway_dashboard/leaving_home_dashboard.yaml +++ b/config/lovelace/hallway_dashboard/leaving_home_dashboard.yaml @@ -124,3 +124,5 @@ card: entities: - sensor.dark_sky_precip_probability - sensor.dark_sky_cloud_coverage + + - !include ../popup_cards.yaml diff --git a/config/lovelace/home_dashboard/bathroom_dashboard.yaml b/config/lovelace/home_dashboard/bathroom_dashboard.yaml index ea4d322..e054ebb 100644 --- a/config/lovelace/home_dashboard/bathroom_dashboard.yaml +++ b/config/lovelace/home_dashboard/bathroom_dashboard.yaml @@ -18,7 +18,7 @@ type: custom:layout-card layout_type: custom:horizontal-layout layout: - max_cols: 3 + max_cols: 1 cards: - type: vertical-stack cards: @@ -54,3 +54,5 @@ tap_action: action: call-service service: "[[[ return entity.state == 'on' ? 'script.sonos_bathroom_unjoin' : 'script.sonos_bathroom_join' ]]]" + + - !include ../popup_cards.yaml diff --git a/config/lovelace/home_dashboard/bedroom_dashboard.yaml b/config/lovelace/home_dashboard/bedroom_dashboard.yaml index efbd2c6..1c4725b 100644 --- a/config/lovelace/home_dashboard/bedroom_dashboard.yaml +++ b/config/lovelace/home_dashboard/bedroom_dashboard.yaml @@ -18,7 +18,7 @@ type: custom:layout-card layout_type: custom:horizontal-layout layout: - max_cols: 3 + max_cols: 2 cards: - type: vertical-stack cards: @@ -121,7 +121,6 @@ entity: light.bedside name: Bedside - - type: vertical-stack cards: - type: custom:decluttering-card @@ -162,3 +161,5 @@ camera_image: camera.bedroom_hd entities: - switch.tapo_bedroom + + - !include ../popup_cards.yaml diff --git a/config/lovelace/home_dashboard/guest_bedroom_dashboard.yaml b/config/lovelace/home_dashboard/guest_bedroom_dashboard.yaml index bbcafb8..8d2969b 100644 --- a/config/lovelace/home_dashboard/guest_bedroom_dashboard.yaml +++ b/config/lovelace/home_dashboard/guest_bedroom_dashboard.yaml @@ -18,7 +18,7 @@ type: custom:layout-card layout_type: custom:horizontal-layout layout: - max_cols: 3 + max_cols: 1 cards: - type: vertical-stack cards: @@ -74,3 +74,5 @@ entity: sensor.mercury_temperature name: Mercury icon: mdi:nas + + - !include ../popup_cards.yaml diff --git a/config/lovelace/home_dashboard/hallway_dashboard.yaml b/config/lovelace/home_dashboard/hallway_dashboard.yaml index eae79f1..f951f0b 100644 --- a/config/lovelace/home_dashboard/hallway_dashboard.yaml +++ b/config/lovelace/home_dashboard/hallway_dashboard.yaml @@ -18,7 +18,7 @@ type: custom:layout-card layout_type: custom:horizontal-layout layout: - max_cols: 3 + max_cols: 1 cards: - type: vertical-stack cards: @@ -67,3 +67,5 @@ template: v3_button_light entity: light.hallway_entrance name: Entrance + + - !include ../popup_cards.yaml diff --git a/config/lovelace/home_dashboard/kitchen_dashboard.yaml b/config/lovelace/home_dashboard/kitchen_dashboard.yaml index d960709..a93e977 100644 --- a/config/lovelace/home_dashboard/kitchen_dashboard.yaml +++ b/config/lovelace/home_dashboard/kitchen_dashboard.yaml @@ -18,7 +18,7 @@ type: custom:layout-card layout_type: custom:horizontal-layout layout: - max_cols: 3 + max_cols: 2 cards: - type: vertical-stack cards: @@ -104,3 +104,5 @@ # name: Outlet # variables: # power_sensor: sensor.kitchen_outlet_electric_consumption_w + + - !include ../popup_cards.yaml diff --git a/config/lovelace/home_dashboard/living_room_dashboard.yaml b/config/lovelace/home_dashboard/living_room_dashboard.yaml index e10ecdd..a4b79a7 100644 --- a/config/lovelace/home_dashboard/living_room_dashboard.yaml +++ b/config/lovelace/home_dashboard/living_room_dashboard.yaml @@ -18,7 +18,7 @@ type: custom:layout-card layout_type: custom:horizontal-layout layout: - max_cols: 3 + max_cols: 2 cards: - type: vertical-stack cards: @@ -176,3 +176,5 @@ - type: picture-glance camera_image: camera.mercury_amcrest_1 entities: [] + + - !include ../popup_cards.yaml diff --git a/config/lovelace/home_dashboard/preferences_dashboard.yaml b/config/lovelace/home_dashboard/preferences_dashboard.yaml index 98dd5c6..aace1eb 100644 --- a/config/lovelace/home_dashboard/preferences_dashboard.yaml +++ b/config/lovelace/home_dashboard/preferences_dashboard.yaml @@ -18,7 +18,7 @@ type: custom:layout-card layout_type: custom:horizontal-layout layout: - max_cols: 3 + max_cols: 2 cards: - type: vertical-stack cards: @@ -152,3 +152,5 @@ - type: custom:button-card template: v3_button entity: input_number.guest_bedroom_light_temp + + - !include ../popup_cards.yaml diff --git a/config/lovelace/home_dashboard/terrarium_dashboard.yaml b/config/lovelace/home_dashboard/terrarium_dashboard.yaml index a24bd26..056f011 100644 --- a/config/lovelace/home_dashboard/terrarium_dashboard.yaml +++ b/config/lovelace/home_dashboard/terrarium_dashboard.yaml @@ -18,7 +18,7 @@ type: custom:layout-card layout_type: custom:horizontal-layout layout: - max_cols: 3 + max_cols: 2 cards: - type: vertical-stack cards: @@ -59,3 +59,5 @@ camera_image: camera.terrarium_cam_sd entities: - camera.terrarium_cam_hd + + - !include ../popup_cards.yaml diff --git a/config/lovelace/popup_cards.yaml b/config/lovelace/popup_cards.yaml index 89d68a4..31e831d 100644 --- a/config/lovelace/popup_cards.yaml +++ b/config/lovelace/popup_cards.yaml @@ -1,733 +1,779 @@ -binary_sensor.bedroom_mode: - title: Bedroom mode - card: - type: entities - entities: - - input_select.bedroom_mode +type: horizontal-stack +cards: + - type: custom:popup-card + entity: binary_sensor.bedroom_mode + title: Bedroom mode + card: + type: entities + entities: + - input_select.bedroom_mode -binary_sensor.kitchen_motion_occupancy: - title: Kitchen motion - card: - type: vertical-stack - cards: - - type: glance - entities: - - entity: binary_sensor.kitchen_motion_occupancy - - entity: sensor.kitchen_motion_illuminance - - entity: sensor.kitchen_motion_battery - - 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.kitchen_motion_illuminance + - type: custom:popup-card + entity: binary_sensor.kitchen_motion_occupancy + title: Kitchen motion + card: + type: vertical-stack + cards: + - type: glance + entities: + - entity: binary_sensor.kitchen_motion_occupancy + - entity: sensor.kitchen_motion_illuminance + - entity: sensor.kitchen_motion_battery + - 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.kitchen_motion_illuminance -group.hallway_motion: - title: Hallway motion - card: - type: vertical-stack - cards: - - type: glance - entities: - - entity: binary_sensor.hallway_motion_occupancy - - entity: binary_sensor.hallway_motion_2_occupancy - - entity: sensor.hallway_motion_illuminance - - entity: sensor.hallway_motion_battery + - type: custom:popup-card + entity: group.hallway_motion + title: Hallway motion + card: + type: vertical-stack + cards: + - type: glance + entities: + - entity: binary_sensor.hallway_motion_occupancy + - entity: binary_sensor.hallway_motion_2_occupancy + - entity: sensor.hallway_motion_illuminance + - entity: sensor.hallway_motion_battery - - 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.hallway_motion_illuminance + - 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.hallway_motion_illuminance -sensor.mercury_temperature: - title: Mercury - card: - type: custom:decluttering-card - template: mercury_card + - type: custom:popup-card + entity: sensor.mercury_temperature + title: Mercury + card: + type: custom:decluttering-card + template: mercury_card -media_player.living_room: - title: Living room Sonos - card: - type: custom:decluttering-card - template: v3_media_with_controls - variables: - - player: media_player.living_room - - player_name: Living room - - title: "" + - type: custom:popup-card + entity: media_player.living_room + title: Living room Sonos + card: + type: custom:decluttering-card + template: v3_media_with_controls + variables: + - player: media_player.living_room + - player_name: Living room + - title: "" -media_player.kitchen: - title: Kitchen Sonos - card: - type: custom:decluttering-card - template: v3_media_with_controls - variables: - - player: media_player.kitchen - - player_name: Kitchen - - title: "" + - type: custom:popup-card + entity: media_player.kitchen + title: Kitchen Sonos + card: + type: custom:decluttering-card + template: v3_media_with_controls + variables: + - player: media_player.kitchen + - player_name: Kitchen + - title: "" -media_player.bathroom: - title: Bathroom Sonos - card: - type: custom:decluttering-card - template: v3_media_with_controls - variables: - - player: media_player.bathroom - - player_name: Bathroom - - title: "" + - type: custom:popup-card + entity: media_player.bathroom + title: Bathroom Sonos + card: + type: custom:decluttering-card + template: v3_media_with_controls + variables: + - player: media_player.bathroom + - player_name: Bathroom + - title: "" -media_player.master_bedroom: - title: Bedroom Sonos - card: - type: custom:decluttering-card - template: v3_media_with_controls - variables: - - player: media_player.master_bedroom - - player_name: Bedroom - - title: "" + - type: custom:popup-card + entity: media_player.master_bedroom + title: Bedroom Sonos + card: + type: custom:decluttering-card + template: v3_media_with_controls + variables: + - player: media_player.master_bedroom + - player_name: Bedroom + - title: "" -media_player.nvidia_shield: &nvidia_shield - title: TV - card: - type: vertical-stack - cards: - - type: horizontal-stack - cards: - - type: custom:button-card - template: [v3_button, v3_popup_button] - icon: mdi:set-top-box - name: Set to Shield - show_state: false - tap_action: - action: call-service - service: media_player.select_source - service_data: - entity_id: media_player.living_room_tv - source: Shield - styles: - card: - - margin-left: 8px + - type: custom:popup-card + entity: media_player.nvidia_shield + title: TV + card: + type: vertical-stack + cards: + - type: horizontal-stack + cards: + - type: custom:button-card + template: [v3_button, v3_popup_button] + icon: mdi:set-top-box + name: Set to Shield + show_state: false + tap_action: + action: call-service + service: media_player.select_source + service_data: + entity_id: media_player.living_room_tv + source: Shield + styles: + card: + - margin-left: 8px - - type: custom:button-card - template: [v3_button, v3_popup_button] - name: Set to Switch - icon: mdi:video-input-hdmi - show_state: false - 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 + template: [v3_button, v3_popup_button] + name: Set to Switch + icon: mdi:video-input-hdmi + show_state: false + 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 - template: [v3_button, v3_popup_button] - name: Bulsatcom - icon: mdi:remote-tv - show_state: false - tap_action: - action: call-service - service: script.tv_bulsatcom_toggle + - type: custom:button-card + template: [v3_button, v3_popup_button] + name: Bulsatcom + icon: mdi:remote-tv + show_state: false + 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.nvidia_shield - - type: custom:mini-media-player - entity: media_player.living_room_tv + - 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 - - name: Sonos - - sync_volume: false + - type: custom:decluttering-card + template: sonos_media_player + variables: + - player: media_player.living_room + - name: Sonos + - sync_volume: false - - type: horizontal-stack - title: Remotes - cards: - - type: custom:decluttering-card - template: hdmi_switch_remote_card - - type: custom:decluttering-card - template: bulsatcom_remote_card + - type: horizontal-stack + title: Remotes + 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 + # - type: custom:popup-card + # entity: media_player.living_room_tv: *nvidia_shiel -group.all_motion_sensors: - title: Active motion sensors - card: - type: vertical-stack - cards: - - type: horizontal-stack - cards: - - type: custom:button-card - template: [v3_button, v3_popup_button] - entity: binary_sensor.hallway_motion_occupancy - name: Hallway Entrance - styles: - card: - - margin-left: 8px - - type: custom:button-card - template: [v3_button, v3_popup_button] - entity: binary_sensor.hallway_motion_2_occupancy - name: Hallway - - type: custom:button-card - template: [v3_button, v3_popup_button] - entity: binary_sensor.multisensor_motion - name: Living Room - - type: horizontal-stack - cards: - - type: custom:button-card - template: [v3_button, v3_popup_button] - entity: binary_sensor.kitchen_motion_occupancy - name: Kitchen - styles: - card: - - margin-left: 8px + - type: custom:popup-card + entity: group.all_motion_sensors + title: Active motion sensors + card: + type: vertical-stack + cards: + - type: horizontal-stack + cards: + - type: custom:button-card + template: [v3_button, v3_popup_button] + entity: binary_sensor.hallway_motion_occupancy + name: Hallway Entrance + styles: + card: + - margin-left: 8px + - type: custom:button-card + template: [v3_button, v3_popup_button] + entity: binary_sensor.hallway_motion_2_occupancy + name: Hallway + - type: custom:button-card + template: [v3_button, v3_popup_button] + entity: binary_sensor.multisensor_motion + name: Living Room + - type: horizontal-stack + cards: + - type: custom:button-card + template: [v3_button, v3_popup_button] + entity: binary_sensor.kitchen_motion_occupancy + name: Kitchen + styles: + card: + - margin-left: 8px -sensor.open_door_count: - title: Open doors - card: - type: vertical-stack - cards: - - type: horizontal-stack - cards: - - type: custom:button-card - template: [v3_button, v3_popup_button] - entity: binary_sensor.front_door - styles: - card: - - margin-left: 8px - - type: custom:button-card - template: [v3_button, v3_popup_button] - entity: binary_sensor.bedroom_door - name: Bedroom + - type: custom:popup-card + entity: sensor.open_door_count + title: Open doors + card: + type: vertical-stack + cards: + - type: horizontal-stack + cards: + - type: custom:button-card + template: [v3_button, v3_popup_button] + entity: binary_sensor.front_door + styles: + card: + - margin-left: 8px + - type: custom:button-card + template: [v3_button, v3_popup_button] + entity: binary_sensor.bedroom_door + name: Bedroom -sensor.open_window_count: - title: Open windows - card: - type: vertical-stack - cards: - - type: horizontal-stack - cards: - - type: custom:button-card - template: [v3_button, v3_popup_button] - entity: binary_sensor.living_room_right_window - name: Living Room - styles: - card: - - margin-left: 8px - - type: custom:button-card - template: [v3_button, v3_popup_button] - entity: binary_sensor.bedroom_left_window - name: Bedroom Left - - type: custom:button-card - template: [v3_button, v3_popup_button] - entity: binary_sensor.bedroom_right_window - name: Bedroom Right - - type: horizontal-stack - cards: - - type: custom:button-card - template: [v3_button, v3_popup_button] - entity: binary_sensor.kitchen_window - name: Kitchen - styles: - card: - - margin-left: 8px + - type: custom:popup-card + entity: sensor.open_window_count + title: Open windows + card: + type: vertical-stack + cards: + - type: horizontal-stack + cards: + - type: custom:button-card + template: [v3_button, v3_popup_button] + entity: binary_sensor.living_room_right_window + name: Living Room + styles: + card: + - margin-left: 8px + - type: custom:button-card + template: [v3_button, v3_popup_button] + entity: binary_sensor.bedroom_left_window + name: Bedroom Left + - type: custom:button-card + template: [v3_button, v3_popup_button] + entity: binary_sensor.bedroom_right_window + name: Bedroom Right + - type: horizontal-stack + cards: + - type: custom:button-card + template: [v3_button, v3_popup_button] + entity: binary_sensor.kitchen_window + name: Kitchen + styles: + card: + - margin-left: 8px -sensor.bedroom_weather_temperature: - title: Bedroom Climate - card: - type: custom:decluttering-card - template: bedroom_climate_card + - type: custom:popup-card + entity: sensor.bedroom_weather_temperature + title: Bedroom Climate + card: + type: custom:decluttering-card + template: bedroom_climate_card -sensor.multisensor_6_temperature: - title: Living Room Climate - card: - type: custom:decluttering-card - template: climate_card - variables: - - main_entity: sensor.multisensor_6_temperature - - left_entity: sensor.multisensor_6_relative_humidity - - right_entity: sensor.multisensor_6_luminance - - right_name: Luminance + - type: custom:popup-card + entity: sensor.multisensor_6_temperature + title: Living Room Climate + card: + type: custom:decluttering-card + template: climate_card + variables: + - main_entity: sensor.multisensor_6_temperature + - left_entity: sensor.multisensor_6_relative_humidity + - right_entity: sensor.multisensor_6_luminance + - right_name: Luminance -sensor.multisensor_6_relative_humidity: - title: Living Room Humidity - card: - type: custom:decluttering-card - template: climate_card - variables: - - main_entity: sensor.multisensor_6_relative_humidity - - main_name: Humidity - - left_entity: sensor.multisensor_6_temperature - - left_name: Temperature - - right_entity: sensor.multisensor_6_luminance - - right_name: Luminance + - type: custom:popup-card + entity: sensor.multisensor_6_relative_humidity + title: Living Room Humidity + card: + type: custom:decluttering-card + template: climate_card + variables: + - main_entity: sensor.multisensor_6_relative_humidity + - main_name: Humidity + - left_entity: sensor.multisensor_6_temperature + - left_name: Temperature + - right_entity: sensor.multisensor_6_luminance + - right_name: Luminance -sensor.bedroom_weather_humidity: - title: Bedroom Humidity - card: - type: custom:decluttering-card - template: bedroom_humidity_card + - type: custom:popup-card + entity: sensor.bedroom_weather_humidity + title: Bedroom Humidity + card: + type: custom:decluttering-card + template: bedroom_humidity_card -sensor.kitchen_weather_temperature: - title: Kitchen Temperature - card: - type: custom:decluttering-card - template: climate_card - variables: - - main_entity: sensor.kitchen_weather_temperature - - left_entity: sensor.kitchen_weather_humidity - - right_entity: sensor.kitchen_weather_pressure + - type: custom:popup-card + entity: sensor.kitchen_weather_temperature + title: Kitchen Temperature + card: + type: custom:decluttering-card + template: climate_card + variables: + - main_entity: sensor.kitchen_weather_temperature + - left_entity: sensor.kitchen_weather_humidity + - right_entity: sensor.kitchen_weather_pressure -sensor.kitchen_weather_humidity: - title: Kitchen Humidity - card: - type: custom:decluttering-card - template: climate_card - variables: - - main_entity: sensor.kitchen_weather_humidity - - main_name: Humidity - - left_entity: sensor.kitchen_weather_temperature - - left_name: Temperature - - right_entity: sensor.kitchen_weather_pressure + - type: custom:popup-card + entity: sensor.kitchen_weather_humidity + title: Kitchen Humidity + card: + type: custom:decluttering-card + template: climate_card + variables: + - main_entity: sensor.kitchen_weather_humidity + - main_name: Humidity + - left_entity: sensor.kitchen_weather_temperature + - left_name: Temperature + - right_entity: sensor.kitchen_weather_pressure -sensor.bathroom_weather_temperature: - title: Bathroom Temperature - card: - type: custom:decluttering-card - template: climate_card - variables: - - main_entity: sensor.bathroom_weather_temperature - - left_entity: sensor.bathroom_weather_humidity - - right_entity: sensor.bathroom_weather_pressure + - type: custom:popup-card + entity: sensor.bathroom_weather_temperature + title: Bathroom Temperature + card: + type: custom:decluttering-card + template: climate_card + variables: + - main_entity: sensor.bathroom_weather_temperature + - left_entity: sensor.bathroom_weather_humidity + - right_entity: sensor.bathroom_weather_pressure -sensor.bathroom_weather_humidity: - title: Bathroom Humidity - card: - type: custom:decluttering-card - template: climate_card - variables: - - main_entity: sensor.bathroom_weather_humidity - - main_name: Humidity - - left_entity: sensor.bathroom_weather_temperature - - left_name: Temperature - - right_entity: sensor.bathroom_weather_pressure + - type: custom:popup-card + entity: sensor.bathroom_weather_humidity + title: Bathroom Humidity + card: + type: custom:decluttering-card + template: climate_card + variables: + - main_entity: sensor.bathroom_weather_humidity + - main_name: Humidity + - left_entity: sensor.bathroom_weather_temperature + - left_name: Temperature + - right_entity: sensor.bathroom_weather_pressure -sensor.hallway_weather_temperature: - title: Hallway Temperature - card: - type: custom:decluttering-card - template: climate_card - variables: - - main_entity: sensor.hallway_weather_temperature - - left_entity: sensor.hallway_weather_humidity - - right_entity: sensor.hallway_weather_pressure + - type: custom:popup-card + entity: sensor.hallway_weather_temperature + title: Hallway Temperature + card: + type: custom:decluttering-card + template: climate_card + variables: + - main_entity: sensor.hallway_weather_temperature + - left_entity: sensor.hallway_weather_humidity + - right_entity: sensor.hallway_weather_pressure -sensor.hallway_weather_humidity: - title: Hallway Humidity - card: - type: custom:decluttering-card - template: climate_card - variables: - - main_entity: sensor.hallway_weather_humidity - - main_name: Humidity - - left_entity: sensor.hallway_weather_temperature - - left_name: Temperature - - right_entity: sensor.hallway_weather_pressure + - type: custom:popup-card + entity: sensor.hallway_weather_humidity + title: Hallway Humidity + card: + type: custom:decluttering-card + template: climate_card + variables: + - main_entity: sensor.hallway_weather_humidity + - main_name: Humidity + - left_entity: sensor.hallway_weather_temperature + - left_name: Temperature + - right_entity: sensor.hallway_weather_pressure -sensor.terrarium_weather_temperature: - title: Terrarium Temperature - card: - type: custom:decluttering-card - template: climate_card - variables: - - main_entity: sensor.terrarium_weather_temperature - - left_entity: sensor.terrarium_weather_humidity - - right_entity: sensor.terrarium_weather_pressure + - type: custom:popup-card + entity: sensor.terrarium_weather_temperature + title: Terrarium Temperature + card: + type: custom:decluttering-card + template: climate_card + variables: + - main_entity: sensor.terrarium_weather_temperature + - left_entity: sensor.terrarium_weather_humidity + - right_entity: sensor.terrarium_weather_pressure -sensor.terrarium_weather_humidity: - title: Terrarium Humidity - card: - type: custom:decluttering-card - template: climate_card - variables: - - main_entity: sensor.terrarium_weather_humidity - - main_name: Humidity - - left_entity: sensor.terrarium_weather_temperature - - left_name: Temperature - - right_entity: sensor.terrarium_weather_pressure + - type: custom:popup-card + entity: sensor.terrarium_weather_humidity + title: Terrarium Humidity + card: + type: custom:decluttering-card + template: climate_card + variables: + - main_entity: sensor.terrarium_weather_humidity + - main_name: Humidity + - left_entity: sensor.terrarium_weather_temperature + - left_name: Temperature + - right_entity: sensor.terrarium_weather_pressure -sensor.guest_bedroom_weather_temperature: - title: Guest Bedroom Temperature - card: - type: custom:decluttering-card - template: climate_card - variables: - - main_entity: sensor.guest_bedroom_weather_temperature - - left_entity: sensor.guest_bedroom_weather_humidity - - right_entity: sensor.guest_bedroom_weather_pressure + - type: custom:popup-card + entity: sensor.guest_bedroom_weather_temperature + title: Guest Bedroom Temperature + card: + type: custom:decluttering-card + template: climate_card + variables: + - main_entity: sensor.guest_bedroom_weather_temperature + - left_entity: sensor.guest_bedroom_weather_humidity + - right_entity: sensor.guest_bedroom_weather_pressure -sensor.guest_bedroom_weather_humidity: - title: Guest Bedroom Humidity - card: - type: custom:decluttering-card - template: climate_card - variables: - - main_entity: sensor.guest_bedroom_weather_humidity - - main_name: Humidity - - left_entity: sensor.guest_bedroom_weather_temperature - - left_name: Temperature - - right_entity: sensor.guest_bedroom_weather_pressure + - type: custom:popup-card + entity: sensor.guest_bedroom_weather_humidity + title: Guest Bedroom Humidity + card: + type: custom:decluttering-card + template: climate_card + variables: + - main_entity: sensor.guest_bedroom_weather_humidity + - main_name: Humidity + - left_entity: sensor.guest_bedroom_weather_temperature + - left_name: Temperature + - right_entity: sensor.guest_bedroom_weather_pressure -sensor.aqara_tvoc_voc: - title: VOC - card: - type: custom:decluttering-card - template: aqara_tvoc_card + - type: custom:popup-card + entity: sensor.aqara_tvoc_voc + title: VOC + card: + type: custom:decluttering-card + template: aqara_tvoc_card -sensor.purifier_air_quality: - title: Bedroom air quality - card: - type: custom:decluttering-card - template: bedroom_air_quality_card + - type: custom:popup-card + entity: sensor.purifier_air_quality + title: Bedroom air quality + card: + type: custom:decluttering-card + template: bedroom_air_quality_card -sensor.purifier_allergens: - title: Bedroom allergen index - card: - type: custom:decluttering-card - template: bedroom_allergen_index_card + - type: custom:popup-card + entity: sensor.purifier_allergens + title: Bedroom allergen index + card: + type: custom:decluttering-card + template: bedroom_allergen_index_card -fan.philips_airpurifier: - title: Air Purifier - card: - type: custom:decluttering-card - template: philips_airpurifier_card + - type: custom:popup-card + entity: fan.philips_airpurifier + title: Air Purifier + card: + type: custom:decluttering-card + template: philips_airpurifier_card -switch.cadmium: - title: Cadmium - card: - type: custom:decluttering-card - template: cadmium_card - variables: - - title: '' + - type: custom:popup-card + entity: switch.cadmium + title: Cadmium + card: + type: custom:decluttering-card + template: cadmium_card + variables: + - title: '' -sensor.fast_com_download: - title: Network Speed - card: - type: custom:decluttering-card - template: network_card + - type: custom:popup-card + entity: sensor.fast_com_download + title: Network Speed + card: + type: custom:decluttering-card + template: network_card -binary_sensor.pi_hole_enabled: - title: Pi-Hole - card: - type: custom:decluttering-card - template: pi_hole_card + - type: custom:popup-card + entity: binary_sensor.pi_hole_enabled + title: Pi-Hole + card: + type: custom:decluttering-card + template: pi_hole_card -input_boolean.alarm_enabled: - title: Alarm - card: - type: vertical-stack - cards: - - type: custom:time-picker-card - entity: input_datetime.alarm_time - hour_mode: 12 - minute_step: 10 - hide: - name: true - - type: entities - show_header_toggle: false - entities: - - input_boolean.alarm_enabled - - input_datetime.alarm_time - - entity: automation.alarm_set_time - name: Automatically set time - -script.brita_pour_water: - title: Brita - card: - type: custom:decluttering-card - template: brita_card - -sensor.kitchen_outlet_electric_consumption_w: - title: Kitchen power - card: - type: entities - entities: - - entity: switch.kitchen_outlet - name: Turned on - - entity: light.kitchen_outlet - name: Light - - entity: sensor.kitchen_outlet_electric_consumption_v - name: Voltage - - entity: sensor.kitchen_outlet_electric_consumption_a - name: Amperes - - entity: sensor.kitchen_outlet_electric_consumption_w - name: Watts - - entity: sensor.kitchen_outlet_electric_consumption_kwh - name: kWh - - entity: binary_sensor.kitchen_outlet_power_management_over_current_detected - name: Over-current detected - - entity: binary_sensor.kitchen_outlet_power_management_over_load_detected - name: Over-load detected - -sensor.desk_outlet_power: - title: Desk power - card: - type: entities - entities: - - entity: switch.desk_outlet - name: Turned on - - entity: sensor.desk_outlet_power - name: Power - - entity: sensor.desk_outlet_voltage - name: Voltage - - entity: sensor.desk_outlet_current - name: Current - - entity: sensor.desk_outlet_energy_today - name: Energy today - - entity: sensor.desk_outlet_energy_yesterday - name: Energy yesterday - - entity: sensor.desk_outlet_energy_total - name: Total energy - - entity: sensor.desk_outlet_energy_total_start_time - name: Total energy start - - entity: sensor.desk_outlet_wifi - name: Wifi strength - -sensor.printer_status: - title: Brother Printer - card: - type: entities - entities: - - sensor.printer_black_toner_remaining - - sensor.printer_drum_remaining_life - - sensor.printer_duplex_unit_pages_counter - - sensor.printer_page_counter - - sensor.printer_uptime + - type: custom:popup-card + entity: input_boolean.alarm_enabled + title: Alarm + card: + type: vertical-stack + cards: + - type: custom:time-picker-card + entity: input_datetime.alarm_time + hour_mode: 12 + minute_step: 10 + hide: + name: true + - type: entities + show_header_toggle: false + entities: + - input_boolean.alarm_enabled + - input_datetime.alarm_time + - entity: automation.alarm_set_time + name: Automatically set time -sensor.average_temperature: - title: Temperatures - card: - type: vertical-stack - cards: - - type: horizontal-stack - cards: - - type: custom:button-card - template: [regular, progress] - entity: sensor.multisensor_6_temperature - name: Living room - state_display: "[[[ return Math.round(entity.state) + ' °C' ]]]" - - type: custom:button-card - template: [regular, progress] - entity: sensor.trisensor_temperature - name: Desk - state_display: "[[[ return Math.round(entity.state) + ' °C' ]]]" - - type: custom:button-card - template: [regular, progress] - entity: sensor.living_room_radiator_temperature - name: Radiator - state_display: "[[[ return Math.round(entity.state) + ' °C' ]]]" - - type: custom:button-card - template: [regular, progress] - entity: sensor.bedroom_weather_temperature - name: Bedroom - state_display: "[[[ return Math.round(entity.state) + ' °C' ]]]" - - type: horizontal-stack - cards: - - type: custom:button-card - template: [regular, progress] - entity: sensor.kitchen_weather_temperature - name: Kitchen - state_display: "[[[ return Math.round(entity.state) + ' °C' ]]]" - - type: custom:button-card - template: [regular, progress] - entity: sensor.bathroom_weather_temperature - name: Bathroom - state_display: "[[[ return Math.round(entity.state) + ' °C' ]]]" - - type: custom:button-card - template: [regular, progress] - entity: sensor.hallway_weather_temperature - name: Hallway - state_display: "[[[ return Math.round(entity.state) + ' °C' ]]]" - - type: custom:button-card - template: [regular, progress] - entity: sensor.guest_bedroom_weather_temperature - name: G. Bedroom - state_display: "[[[ return Math.round(entity.state) + ' °C' ]]]" - - type: entities - entities: - - type: custom:template-entity-row - entity: sensor.average_temperature - name: Open temperature dashboard - icon: mdi:thermometer - tap_action: - action: navigate - navigation_path: /lovelace-main/climate + - type: custom:popup-card + entity: script.brita_pour_water + title: Brita + card: + type: custom:decluttering-card + template: brita_card -sensor.average_humidity: - title: Humidities - card: - type: vertical-stack - cards: - - type: horizontal-stack - cards: - - type: custom:button-card - template: [regular, progress] - entity: sensor.multisensor_6_relative_humidity - state_display: "[[[ return Math.round(entity.state) + ' %' ]]]" - name: Living room - variables: - min_value: 25 - max_value: 90 - normal_value: 40 - high_value: 65 - low_color: "var(--color-red)" - - type: custom:button-card - template: [regular, progress] - entity: sensor.bedroom_weather_humidity - state_display: "[[[ return Math.round(entity.state) + ' %' ]]]" - name: Bedroom - variables: - min_value: 25 - max_value: 90 - normal_value: 40 - high_value: 65 - low_color: "var(--color-red)" - - type: custom:button-card - template: [regular, progress] - entity: sensor.kitchen_weather_humidity - state_display: "[[[ return Math.round(entity.state) + ' %' ]]]" - name: Kitchen - variables: - min_value: 25 - max_value: 90 - normal_value: 40 - high_value: 65 - low_color: "var(--color-red)" - - type: horizontal-stack - cards: - - type: custom:button-card - template: [regular, progress] - entity: sensor.bathroom_weather_humidity - state_display: "[[[ return Math.round(entity.state) + ' %' ]]]" - name: Bathroom - variables: - min_value: 25 - max_value: 90 - normal_value: 40 - high_value: 65 - low_color: "var(--color-red)" - - type: custom:button-card - template: [regular, progress] - entity: sensor.hallway_weather_humidity - state_display: "[[[ return Math.round(entity.state) + ' %' ]]]" - name: Hallway - variables: - min_value: 25 - max_value: 90 - normal_value: 40 - high_value: 65 - low_color: "var(--color-red)" - - type: custom:button-card - template: [regular, progress] - entity: sensor.guest_bedroom_weather_humidity - state_display: "[[[ return Math.round(entity.state) + ' %' ]]]" - name: G. Bedroom - variables: - min_value: 25 - max_value: 90 - normal_value: 40 - high_value: 65 - low_color: "var(--color-red)" - - type: entities - entities: - - type: custom:template-entity-row - entity: sensor.average_temperature - name: Open temperature dashboard - icon: mdi:thermometer - tap_action: - action: navigate - navigation_path: /lovelace-main/climate + - type: custom:popup-card + entity: sensor.kitchen_outlet_electric_consumption_w + title: Kitchen power + card: + type: entities + entities: + - entity: switch.kitchen_outlet + name: Turned on + - entity: light.kitchen_outlet + name: Light + - entity: sensor.kitchen_outlet_electric_consumption_v + name: Voltage + - entity: sensor.kitchen_outlet_electric_consumption_a + name: Amperes + - entity: sensor.kitchen_outlet_electric_consumption_w + name: Watts + - entity: sensor.kitchen_outlet_electric_consumption_kwh + name: kWh + - entity: binary_sensor.kitchen_outlet_power_management_over_current_detected + name: Over-current detected + - entity: binary_sensor.kitchen_outlet_power_management_over_load_detected + name: Over-load detected + + - type: custom:popup-card + entity: sensor.desk_outlet_power + title: Desk power + card: + type: entities + entities: + - entity: switch.desk_outlet + name: Turned on + - entity: sensor.desk_outlet_power + name: Power + - entity: sensor.desk_outlet_voltage + name: Voltage + - entity: sensor.desk_outlet_current + name: Current + - entity: sensor.desk_outlet_energy_today + name: Energy today + - entity: sensor.desk_outlet_energy_yesterday + name: Energy yesterday + - entity: sensor.desk_outlet_energy_total + name: Total energy + - entity: sensor.desk_outlet_energy_total_start_time + name: Total energy start + - entity: sensor.desk_outlet_wifi + name: Wifi strength + + - type: custom:popup-card + entity: sensor.printer_status + title: Brother Printer + card: + type: entities + entities: + - sensor.printer_black_toner_remaining + - sensor.printer_drum_remaining_life + - sensor.printer_duplex_unit_pages_counter + - sensor.printer_page_counter + - sensor.printer_uptime -vacuum.vacuum: - title: Vacuum - card: - type: custom:layout-card - layout_type: custom:horizontal-layout - layout: - max_cols: 2 - cards: - - type: custom:vacuum-card - entity: vacuum.vacuum - stats: - default: - - attribute: filter_left - unit: hours - subtitle: Filter - - attribute: side_brush_left - unit: hours - subtitle: Side brush - - attribute: main_brush_left - unit: hours - subtitle: Main brush - - attribute: sensor_dirty_left - unit: hours - subtitle: Sensors - cleaning: - - attribute: cleaned_area - unit: m2 - subtitle: Cleaning area - - attribute: cleaning_time - unit: minutes - subtitle: Cleaning time - - type: custom:xiaomi-vacuum-map-card - entity: vacuum.vacuum - map_source: - camera: camera.xiaomi_cloud_map_extractor - calibration_source: - camera: true - map_locked: true - map_modes: - - template: vacuum_clean_zone - - template: vacuum_goto - - template: vacuum_follow_path - - template: vacuum_clean_segment - name: Rooms - predefined_selections: - - zones: [[25457, 25178], [27053, 25119], [27053, 27779], [24334, 27839], [24334, 25533], [25398, 25474]] - id: 1 - label: - text: "Kitchen" - x: 25457 - y: 25178 - offset_y: 35 - icon: - name: "mdi:chef-hat" - x: 25457 - y: 25178 + - type: custom:popup-card + entity: sensor.average_temperature + title: Temperatures + card: + type: vertical-stack + cards: + - type: horizontal-stack + cards: + - type: custom:button-card + template: [regular, progress] + entity: sensor.multisensor_6_temperature + name: Living room + state_display: "[[[ return Math.round(entity.state) + ' °C' ]]]" + - type: custom:button-card + template: [regular, progress] + entity: sensor.trisensor_temperature + name: Desk + state_display: "[[[ return Math.round(entity.state) + ' °C' ]]]" + - type: custom:button-card + template: [regular, progress] + entity: sensor.living_room_radiator_temperature + name: Radiator + state_display: "[[[ return Math.round(entity.state) + ' °C' ]]]" + - type: custom:button-card + template: [regular, progress] + entity: sensor.bedroom_weather_temperature + name: Bedroom + state_display: "[[[ return Math.round(entity.state) + ' °C' ]]]" + - type: horizontal-stack + cards: + - type: custom:button-card + template: [regular, progress] + entity: sensor.kitchen_weather_temperature + name: Kitchen + state_display: "[[[ return Math.round(entity.state) + ' °C' ]]]" + - type: custom:button-card + template: [regular, progress] + entity: sensor.bathroom_weather_temperature + name: Bathroom + state_display: "[[[ return Math.round(entity.state) + ' °C' ]]]" + - type: custom:button-card + template: [regular, progress] + entity: sensor.hallway_weather_temperature + name: Hallway + state_display: "[[[ return Math.round(entity.state) + ' °C' ]]]" + - type: custom:button-card + template: [regular, progress] + entity: sensor.guest_bedroom_weather_temperature + name: G. Bedroom + state_display: "[[[ return Math.round(entity.state) + ' °C' ]]]" + - type: entities + entities: + - type: custom:template-entity-row + entity: sensor.average_temperature + name: Open temperature dashboard + icon: mdi:thermometer + tap_action: + action: navigate + navigation_path: /lovelace-main/climate -switch.tapo_bedroom: - title: "Bedroom Camera" - card: - type: picture-glance - camera_image: camera.bedroom_hd - entities: - - switch.tapo_bedroom + - type: custom:popup-card + entity: sensor.average_humidity + title: Humidities + card: + type: vertical-stack + cards: + - type: horizontal-stack + cards: + - type: custom:button-card + template: [regular, progress] + entity: sensor.multisensor_6_relative_humidity + state_display: "[[[ return Math.round(entity.state) + ' %' ]]]" + name: Living room + variables: + min_value: 25 + max_value: 90 + normal_value: 40 + high_value: 65 + low_color: "var(--color-red)" + - type: custom:button-card + template: [regular, progress] + entity: sensor.bedroom_weather_humidity + state_display: "[[[ return Math.round(entity.state) + ' %' ]]]" + name: Bedroom + variables: + min_value: 25 + max_value: 90 + normal_value: 40 + high_value: 65 + low_color: "var(--color-red)" + - type: custom:button-card + template: [regular, progress] + entity: sensor.kitchen_weather_humidity + state_display: "[[[ return Math.round(entity.state) + ' %' ]]]" + name: Kitchen + variables: + min_value: 25 + max_value: 90 + normal_value: 40 + high_value: 65 + low_color: "var(--color-red)" + - type: horizontal-stack + cards: + - type: custom:button-card + template: [regular, progress] + entity: sensor.bathroom_weather_humidity + state_display: "[[[ return Math.round(entity.state) + ' %' ]]]" + name: Bathroom + variables: + min_value: 25 + max_value: 90 + normal_value: 40 + high_value: 65 + low_color: "var(--color-red)" + - type: custom:button-card + template: [regular, progress] + entity: sensor.hallway_weather_humidity + state_display: "[[[ return Math.round(entity.state) + ' %' ]]]" + name: Hallway + variables: + min_value: 25 + max_value: 90 + normal_value: 40 + high_value: 65 + low_color: "var(--color-red)" + - type: custom:button-card + template: [regular, progress] + entity: sensor.guest_bedroom_weather_humidity + state_display: "[[[ return Math.round(entity.state) + ' %' ]]]" + name: G. Bedroom + variables: + min_value: 25 + max_value: 90 + normal_value: 40 + high_value: 65 + low_color: "var(--color-red)" + - type: entities + entities: + - type: custom:template-entity-row + entity: sensor.average_temperature + name: Open temperature dashboard + icon: mdi:thermometer + tap_action: + action: navigate + navigation_path: /lovelace-main/climate + + + - type: custom:popup-card + entity: vacuum.vacuum + title: Vacuum + card: + type: custom:layout-card + layout_type: custom:horizontal-layout + layout: + max_cols: 2 + cards: + - type: custom:vacuum-card + entity: vacuum.vacuum + stats: + default: + - attribute: filter_left + unit: hours + subtitle: Filter + - attribute: side_brush_left + unit: hours + subtitle: Side brush + - attribute: main_brush_left + unit: hours + subtitle: Main brush + - attribute: sensor_dirty_left + unit: hours + subtitle: Sensors + cleaning: + - attribute: cleaned_area + unit: m2 + subtitle: Cleaning area + - attribute: cleaning_time + unit: minutes + subtitle: Cleaning time + - type: custom:xiaomi-vacuum-map-card + entity: vacuum.vacuum + map_source: + camera: camera.xiaomi_cloud_map_extractor + calibration_source: + camera: true + map_locked: true + map_modes: + - template: vacuum_clean_zone + - template: vacuum_goto + - template: vacuum_follow_path + - template: vacuum_clean_segment + name: Rooms + predefined_selections: + - zones: [[25457, 25178], [27053, 25119], [27053, 27779], [24334, 27839], [24334, 25533], [25398, 25474]] + id: 1 + label: + text: "Kitchen" + x: 25457 + y: 25178 + offset_y: 35 + icon: + name: "mdi:chef-hat" + x: 25457 + y: 25178 + + - type: custom:popup-card + entity: switch.tapo_bedroom + title: "Bedroom Camera" + card: + type: picture-glance + camera_image: camera.bedroom_hd + entities: + - switch.tapo_bedroom diff --git a/config/ui-lovelace.yaml b/config/ui-lovelace.yaml index 086aef0..5bf7c85 100644 --- a/config/ui-lovelace.yaml +++ b/config/ui-lovelace.yaml @@ -1,6 +1,5 @@ decluttering_templates: !include_dir_merge_named lovelace/decluttering_templates button_card_templates: !include_dir_merge_named lovelace/button_card_templates -popup_cards: !include lovelace/popup_cards.yaml swipe_nav: swipe_amount: 50