Refactor code structure for improved readability and maintainability

This commit is contained in:
CeeWeasel
2026-01-19 14:47:59 -05:00
parent 6550521520
commit 97a0e678c0
84 changed files with 1614 additions and 1177 deletions
+82 -72
View File
@@ -2,81 +2,91 @@ title: Dishwasher
path: dishwasher
icon: mdi:dishwasher
subview: true
type: sidebar
badges: []
cards:
- type: vertical-stack
type: sections
max_columns: 4
sections:
- type: grid
cards:
- type: history-graph
entities:
- entity: sensor.pm_dishwasher_w
hours_to_show: 2
- type: vertical-stack
view_layout:
position: sidebar
name: Dishwasher Watts
grid_options:
columns: full
hours_to_show: 3
column_span: 4
- type: grid
cards:
- type: grid
cards:
- type: tile
entity: sensor.dishwasher
name: Dishwasher
icon_tap_action:
action: navigate
navigation_path: /phone-yaml/dishwasher
tap_action:
action: navigate
navigation_path: /phone-yaml/dishwasher
show_entity_picture: true
vertical: true
- type: tile
entity: input_select.washing_machine_fun_status
name: Washing Machine
icon_tap_action:
action: navigate
navigation_path: /phone-yaml/washing-machine
tap_action:
action: navigate
navigation_path: /phone-yaml/washing-machine
show_entity_picture: true
vertical: true
- type: tile
entity: input_select.dryer_fun_status
name: Dryer
icon_tap_action:
action: navigate
navigation_path: /phone-yaml/tumble-dryer
tap_action:
action: navigate
navigation_path: /phone-yaml/tumble-dryer
show_entity_picture: true
vertical: true
- type: tile
entity: binary_sensor.keurig
icon_tap_action:
action: navigate
navigation_path: /phone-yaml/keurig
tap_action:
action: navigate
navigation_path: /phone-yaml/keurig
show_entity_picture: true
vertical: true
- type: tile
entity: binary_sensor.stove
icon_tap_action:
action: navigate
navigation_path: /phone-yaml/stove
tap_action:
action: navigate
navigation_path: /phone-yaml/stove
show_entity_picture: true
vertical: true
- type: glance
entities:
- entity: sensor.pm_dishwasher_w
name: Watts
- entity: binary_sensor.dishwasher_door_contact
- entity: input_text.dishwasher_runtime
name: Runtime
- entity: counter.dishwasher
name: Cycles
- type: tile
grid_options:
columns: 3
rows: 2
entity: sensor.dishwasher
hide_state: false
vertical: true
features_position: bottom
- type: tile
grid_options:
columns: 3
rows: 2
entity: sensor.washing_machine
vertical: true
features_position: bottom
- type: tile
entity: sensor.tumble_dryer
vertical: true
features_position: bottom
grid_options:
columns: 3
rows: 2
- type: tile
entity: sensor.pm_dishwasher_w
name: Watts
vertical: true
features_position: bottom
grid_options:
columns: 3
rows: 2
- type: tile
entity: sensor.dishwasher_door_device_temperature
name: Door Temp
vertical: true
features_position: bottom
grid_options:
columns: 3
rows: 2
- type: tile
grid_options:
columns: 3
rows: 2
entity: number.dishwasher_run_counter
name: Counter
vertical: true
features_position: bottom
- type: tile
grid_options:
columns: 3
rows: 2
entity: number.dishwasher_delay_on
name: Start
vertical: true
features_position: bottom
- type: tile
entity: timer.dishwasher_off
name: End
vertical: true
features_position: bottom
grid_options:
columns: 3
rows: 2
- type: tile
entity: timer.dishwasher_watchdog
name: Too Long
state_content: remaining_time
vertical: true
features_position: bottom
grid_options:
columns: 3
rows: 2
column_span: 4
+7
View File
@@ -76,6 +76,13 @@ card:
style:
left: 8%
top: 95%
- type: state-icon
entity: switch.tapo_c560ws_1f31_auto_track
tap_action:
action: toggle
style:
left: 30%
top: 95%
- type: state-icon
entity: input_boolean.front_room_occupied
tap_action:
+7
View File
@@ -75,6 +75,13 @@ card:
style:
left: 8%
top: 95%
- type: state-icon
entity: switch.tapo_c560ws_1f8d_auto_track
tap_action:
action: toggle
style:
left: 30%
top: 95%
- type: state-icon
entity: sensor.great_room_person_count
style:
+3 -3
View File
@@ -20,11 +20,11 @@ cards:
- type: custom:mushroom-title-card
title: Current Live Totals
- type: custom:mushroom-title-card
title: "{{states('sensor.pm_grid_total_a')}} A"
title: "{{states('sensor.pm_grid_a')|float(default=0)|round(2) }} A"
- type: custom:mushroom-title-card
title: "{{states('sensor.pm_grid_total_w')}} W"
title: "{{states('sensor.pm_grid_w')|float(default=0)|round(2) }} W"
- type: custom:mushroom-title-card
title: "{{states('sensor.pm_grid_kwh')}} kWh"
title: "{{states('sensor.pm_grid_kwh')|float(default=0)|round(2) }} kWh"
- type: horizontal-stack
cards:
- type: vertical-stack
+1 -1
View File
@@ -1,6 +1,6 @@
title: AI Cam15
path: ai-cam15
icon: mdi:desktop-classic
icon: mdi:microsoft-xbox-controller
type: sidebar
visible:
- user: 24a4bd075e7f41a497dd0390a1dd4a9f
+1 -1
View File
@@ -308,7 +308,7 @@ cards:
- type: horizontal-stack
cards:
- type: custom:mini-media-player
entity: media_player.girls_room_hub
entity: media_player.girls_room_clock
artwork: cover-fit
- type: vertical-stack
cards:
+1 -1
View File
@@ -90,7 +90,7 @@ cards:
- type: horizontal-stack
cards:
- type: custom:mini-media-player
entity: media_player.master_bedroom_clock
entity: media_player.bedroom_hub
artwork: cover-fit
- type: vertical-stack
cards:
+1 -1
View File
@@ -164,7 +164,7 @@ elements:
#button #5
- type: "custom:button-card"
color: auto
entity: media_player.girls_room_hub
entity: media_player.girls_room_clock
show_name: false
show_entity_picture: true
style:
+1 -1
View File
@@ -163,7 +163,7 @@ elements:
#button #5
- type: "custom:button-card"
color: auto
entity: media_player.master_bedroom_clock
entity: media_player.bedroom_hub
show_name: false
show_entity_picture: true
style:
@@ -33,7 +33,7 @@ shortcuts:
icon: mdi:home-floor-b
- name: Nursery
type: source
id: girls_room_hub
id: girls_room_clock
icon: mdi:teddy-bear
- name: Timeless
type: playlist
+1 -1
View File
@@ -13,7 +13,7 @@ cards:
- !include /config/lovelace/cameras/view-camera-12.yaml
- !include /config/lovelace/cameras/view-camera-14.yaml
- !include /config/lovelace/cameras/view-camera-03.yaml
- !include /config/lovelace/cameras/view-camera-04.yaml
- !include /config/lovelace/cameras/view-camera-15.yaml
- !include /config/lovelace/cameras/view-camera-08.yaml
- !include /config/lovelace/cameras/view-camera-01.yaml
- !include /config/lovelace/cameras/view-camera-06.yaml
+6 -2
View File
@@ -64,6 +64,7 @@ cards:
- input_boolean.deck_occupied
- input_boolean.front_porch_occupied
- input_boolean.furnace_room_occupied
- input_boolean.deck_occupied
states:
- state: "on"
@@ -133,6 +134,8 @@ cards:
- binary_sensor.great_room_person_occupancy
- binary_sensor.kitchen_person_occupancy
- binary_sensor.master_bedroom_person_occupancy
- binary_sensor.downstairs_person_occupancy
- binary_sensor.upstairs_person_occupancy
- binary_sensor.girls_room_person_occupancy
- binary_sensor.utility_room_person_occupancy
- binary_sensor.utility_room_person_occupancy
@@ -287,9 +290,9 @@ cards:
- media_player.garage
- media_player.great_room
- media_player.kitchen
- media_player.master_bedroom_clock
- media_player.girls_room_clock
- media_player.front_room_hub
- media_player.girls_room_hub
- media_player.bedroom_hub
- media_player.boys_room_clock
- media_player.ma_home_assistant_voice_097b44_media_player
states:
@@ -816,6 +819,7 @@ cards:
- camera.frigate_cam08
- camera.frigate_cam12
- camera.frigate_cam14
- camera.frigate_cam15
- camera.frigate_cam18
- camera.frigate_cam19
states:
+12 -12
View File
@@ -55,16 +55,8 @@ cards:
artwork: cover
show_source: true
- entity: media_player.girls_room_hub
name: Nursery
#type: media-control
type: custom:mini-media-player
group: true
artwork: cover
show_source: true
- entity: media_player.master_bedroom_clock
name: Master Bedroom
- entity: media_player.girls_room_clock
name: Girls Room
#type: media-control
type: custom:mini-media-player
group: true
@@ -79,6 +71,14 @@ cards:
artwork: cover
show_source: true
- entity: media_player.bedroom_hub
name: Bedroom
#type: media-control
type: custom:mini-media-player
group: true
artwork: cover
show_source: true
- entity: media_player.computer_area_hub
name: Computer Area
#type: media-control
@@ -291,10 +291,10 @@ cards:
# id: great_room
# - name: Nursery
# type: source
# id: girls_room_hub
# id: girls_room_clock
# - name: Master Bedroom
# type: source
# id: master_bedroom_clock
# id: bedroom_hub
# - name: Front Room
# type: source
# id: front_room_hub
+2 -2
View File
@@ -1255,8 +1255,8 @@ cards:
- entity: media_player.garage
- entity: media_player.great_room
- entity: media_player.kitchen
- entity: media_player.master_bedroom_clock
- entity: media_player.girls_room_hub
- entity: media_player.bedroom_hub
- entity: media_player.girls_room_clock
- entity: device_tracker.amcrest_technologies_24_1f_27
name: MBR Left
icon: mdi:cctv
+3 -3
View File
@@ -15,7 +15,7 @@ cards:
image: /local/background100.png
elements:
- type: state-label
entity: sensor.pm_grid_total_w
entity: sensor.pm_grid_w
style:
font-size: 300%
left: 50%
@@ -40,7 +40,7 @@ cards:
update_interval: 30
group: true
entities:
- entity: sensor.pm_grid_total_w
- entity: sensor.pm_grid_w
show:
icon: false
name: false
@@ -88,7 +88,7 @@ cards:
update_interval: 30
group: true
entities:
- entity: sensor.pm_grid_total_w
- entity: sensor.pm_grid_w
show:
icon: false
name: false
+1 -1
View File
@@ -12,7 +12,7 @@ cards:
cards:
- type: entities
entities:
- entity: sensor.pm_grid_total_w
- entity: sensor.pm_grid_w
name: Grid [W]
- entity: sensor.pm_grid_kwh
name: Grid [kWh]