Skip to content

Commit

Permalink
🤖 20-01-25 | ♻️ Updated 16 files
Browse files Browse the repository at this point in the history
--------
- update: snippets/style-section-heading.yaml
- update: snippets/style_popup_footer.yaml
- update: views/main.yaml
- update: system-grid/system-graph.yaml
- update: config/README.md
- update: dashboard-resources/sidebar-divider.js
- update: docs/README.md
- update: honeycomb/office_mode.yaml
- update: templates/streamline-card.yaml
- update: hassio/hass_system.yaml
- update: button_card_templates/tpl_addons.yaml
- update: subviews/github-stats.yaml
- update: button_card_templates/tpl_header.yaml
- update: snippets/popup_footer_layout.yaml
- update: themes/tablet.yaml
- update: button_card_templates/tpl_base.yaml

--------
Automated commit via script
  • Loading branch information
ngocjohn committed Jan 20, 2025
1 parent e1f3839 commit 5c0f613
Show file tree
Hide file tree
Showing 16 changed files with 158 additions and 57 deletions.
6 changes: 3 additions & 3 deletions config/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,13 @@ https://github.com/ngocjohn/hass-config/assets/96962827/acc1a4db-b92e-4ab1-ac9d-
</thead>
<tbody>
<tr>
<td>35,226 </td>
<td>35,268 </td>
<td>34</td>
<td>179</td>
<td>164</td>
<td>63</td>
<td>54</td>
<td>32</td>
<td>1148</td>
<td>1071</td>
<td>215</td>
<td>38</td>
</tr>
Expand Down
52 changes: 38 additions & 14 deletions config/dashboards/shared/honeycomb/office_mode.yaml
Original file line number Diff line number Diff line change
@@ -1,36 +1,60 @@
action: fire-dom-event
honeycomb_menu:
entity: input_boolean.office_mode
active: true
autoclose: true
autoclose: false
size: 250
buttons:
- icon: mdi:keyboard
entity: input_boolean.office_mode
active: '[[[ return entity.state != "off" ]]]'
position: 0
show: true
tap_action:
action: toggle
action: call-service
service: homeassistant.toggle
service_data:
entity_id: entity
- icon: mdi:desk-lamp
show: true
position: 1
entity: light.office_led_light_strip
autoclose: false
hold_action: more-info
tap_action:
action: toggle
action: call-service
service: light.toggle
service_data:
- icon: mdi:floor-lamp
show: true
position: 2
entity: light.office_lamp_bulb
autoclose: false
hold_action: more-info
tap_action:
action: toggle
action: call-service
service: light.toggle
service_data:
entity_id: entity
hold_action: more-info
- icon: mdi:led-strip
show: true
position: 3
entity: light.office_shelf_led
hold_action: false
tap_action:
action: toggle
action: call-service
service: light.toggle
service_data:
entity_id: entity
hold_action: more-info
- icon: mdi:alarm-light
show: true
position: 4
entity: input_boolean.brma
hold_action: false
tap_action:
action: toggle
- icon: cil:laptop-mac
service_data:
entity_id: entity
- icon: custom:ios-desktop-computer
show: true
position: 5
entity: switch.macbook
hold_action: false
tap_action:
action: toggle
service_data:
entity_id: entity
4 changes: 2 additions & 2 deletions config/dashboards/shared/snippets/popup_footer_layout.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ grid-gap: 2px 1px
margin: 0
padding: 0
mediaquery:
'(max-width: 800px)':
grid-template-columns: 1fr
'(max-width: 1441px)':
grid-template-columns: 560px
grid-template-rows: auto
grid-gap: 2px 1px
margin: 0
Expand Down
5 changes: 4 additions & 1 deletion config/dashboards/shared/snippets/style-section-heading.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ style:
}
@media screen and (max-width: 800px) {
.container {
padding: 1rem 4px 0.6rem !important;
padding: 1rem 4px 1.7vw 0 !important;
}
.container .content {
--mdc-icon-size: 14px !important;
}
}
6 changes: 1 addition & 5 deletions config/dashboards/shared/snippets/style_popup_footer.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,7 @@ style:
#root > * {
margin: 0px !important;
}
@media (max-width: 450px), (max-height: 500px) {
#root {
display: block !important;
}
}
hui-entities-card:
$: |
ha-card {
Expand Down
5 changes: 5 additions & 0 deletions config/dashboards/subviews/github-stats.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -192,11 +192,16 @@ sections:
state_color: false
entities:
- entity: sensor.hass_config_stars
secondary_info: last-changed
name: Stars
- entity: sensor.hass_config_forks
name: Forks
- entity: sensor.hass_config_watchers
name: Watchers
- entity: sensor.hass_config_latest_commit_formatted
secondary_info: last-changed
icon: mdi:source-commit
name: Latest Commit
- type: divider
- type: custom:multiple-logbook-card
card_mod:
Expand Down
26 changes: 13 additions & 13 deletions config/dashboards/templates/button_card_templates/tpl_addons.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,19 +26,19 @@ addons_base:
]]]
tap_action:
action: block
double_tap_action:
action: call-service
service: script.backup_addon
service_data:
addon_slug: >
[[[
return variables.slug_name;
]]]
version: >
[[[
return states[variables.ver_ent].state;
]]]
haptic: success
# double_tap_action:
# action: call-service
# service: script.backup_addon
# service_data:
# addon_slug: >
# [[[
# return variables.slug_name;
# ]]]
# version: >
# [[[
# return states[variables.ver_ent].state;
# ]]]
# haptic: success
hold_action:
action: fire-dom-event
browser_mod:
Expand Down
21 changes: 16 additions & 5 deletions config/dashboards/templates/button_card_templates/tpl_base.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -961,9 +961,9 @@ extra_styles:
#img-cell {
display: grid;
place-self: center;
max-height: 100px !important;
animation: marquee 20s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
animation: marquee 20s ease-in-out infinite;
animation-direction: alternate-reverse;
max-height: 170px;
}
#state {
Expand Down Expand Up @@ -1010,6 +1010,15 @@ extra_styles:
place-items: center center;
grid-row-gap: 1rem !important;
}
#label {
justify-content: center !important;
}
li {
letter-spacing: 2px !important;
font-size: 1.1rem !important;
line-height: normal !important;
padding-left: 2rem !important;
}
}
@media screen and (max-width: 800px) {
#container {
Expand All @@ -1019,9 +1028,6 @@ extra_styles:
#label {
display: none;
}
#icon {
max-width: 150px !important;
}
.realtemp {
font-size: 2.3rem;
}
Expand All @@ -1031,6 +1037,11 @@ extra_styles:
.degree-symbol {
right: auto;
}
#img-cell {
animation: none;
max-height: 100px !important;
top: -15%;
}
#icon {
width: 100%;
position: relative;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@ header_clock:
- padding: inherit
- width: 100%
- overflow: visible
- background: none
- --mdc-ripple-color: none
- box-shadow: none

header_weather:
template:
- extra_styles
Expand Down Expand Up @@ -124,6 +128,10 @@ header_weather:
- padding: 0
- color: rgba(255, 255, 255, 0.6)
- overflow: visible;
img-cell:
- max-height: 170px
- top: -10%
icon:
- max-width: 200px
- max-width: 150px
- width: 100%
- height: auto
6 changes: 5 additions & 1 deletion config/dashboards/templates/streamline-card.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,8 @@ grid_samsung:
hold_action: !include ../shared/honeycomb/shield.yaml
template:
- mediaplayer
# PLAYSTATION

# PLAYSTATION
grid_playstation:
card:
type: custom:button-card
Expand Down Expand Up @@ -1246,7 +1247,10 @@ github_graph_card:
header: hide
showCurrentValues: false
legendVisible: false
labelsVisible: false
defaultTimeRange: 3d
axisAddMarginMin: false
axisAddMarginMax: false
tooltip:
size: full
uiLayout:
Expand Down
2 changes: 1 addition & 1 deletion config/dashboards/views/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ layout:
grid-gap: 8px
margin: 0
grid-template-columns: 0px 1fr 1fr 0px
grid-template-rows: 0 min-content fit-content(100%) fit-content(100%) fit-content(100%) fit-content(100%) fit-content(100%) fit-content(100%) min-content 0
grid-template-rows: 0 min-content fit-content(100%) fit-content(100%) fit-content(100%) fit-content(100%) fit-content(100%) fit-content(100%) min-content 1rem
grid-template-areas: |
". . . ."
". header header ."
Expand Down
7 changes: 5 additions & 2 deletions config/dashboards/views/system-grid/system-graph.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
defaultTimeRange: 5h
defaultTimeOffset: 0
decimation: fast
labelsVisible: true
labelsVisible: false
legendVisible: false
lineMode: lines
lineGraphHeight: 320
Expand All @@ -30,6 +30,8 @@
uiLayout:
toolbar: top
selector: hide
# sticky: top
invertZoom: true
tooltip:
size: full
graphs:
Expand All @@ -40,12 +42,13 @@
- entity: sensor.home_assistant_*
lineMode: lines
- type: line
options:
showTimeLabels: false
entities:
- entity: sensor.*_memory_percent
exclude:
- entity: sensor.home_assistant_*
lineMode: lines

- type: line
entities:
- entity: sensor.ha_system_cpu_usage
Expand Down
40 changes: 39 additions & 1 deletion config/packages/hassio/hass_system.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,55 @@
# RECORDER
recorder:
db_url: !secret mariadb_url
purge_keep_days: 30
auto_purge: true
auto_repack: true
exclude:
domains:
- alarm_control_panel
- button
- camera
- media_player
- switch
- light
- sun
- weather
- timer
- update
- device_tracker
- image
entities:
- sensor.time
- sensor.date
- sensor.hassio_addons_use
- sensor.zhimi_mb4_b008_moto_speed_rpm
entity_globs:
- sensor.*_motor_speed
- sensor.browser_*
- light.browser_*
- sensor.prague_moon_*
- sensor.*_color
- sensor.*_energy
- sensor.*_power
- sensor.*_linkquality
- sensor.*_last_seen
- sensor.home_*
- sensor.kodi_*
- sensor.amg_43_*
- sensor.*_write
- sensor.prague_*
- sensor.*_utilization
- sensor.*_clients
- sensor.*_voltage
- sensor.*_current
- sensor.*_rx
- sensor.*_tx
- sensor.sun_*
- sensor.*_active
- sensor.hacs_*
- sensor.motion_sensor_*
- sensor.*_outage_count
- sensor.*_speed_rpm

logger:
default: error

Expand Down
4 changes: 2 additions & 2 deletions config/themes/tablet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -257,8 +257,8 @@ tablet:
}
@media only screen and (max-width: 800px) {
#root {
justify-content: center;
gap: 1.5rem !important
justify-content: space-evenly;
//gap: 1.5rem !important
}
}
#################################################
Expand Down
Loading

0 comments on commit 5c0f613

Please sign in to comment.