Skip to content

Commit

Permalink
Auto update files on 12-12-2023/00:55
Browse files Browse the repository at this point in the history
  • Loading branch information
ngocjohn committed Dec 11, 2023
1 parent 8588eea commit f0f25c7
Show file tree
Hide file tree
Showing 8 changed files with 38 additions and 1,077 deletions.
2 changes: 1 addition & 1 deletion config/dashboards/shared/popup/security_sensors.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ browser_mod:
exclude: []
sort:
method: last_changed
reverse: true
reverse: false
card:
type: custom:layout-card
cards: []
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ base:
[[[ return !entity || entity.attributes.entity_picture; ]]]
timeout: >
[[[ return !entity || Date.now() - Date.parse(entity.last_changed); ]]]
triggers_update: all
aspect_ratio: 1/1
show_state: true
show_icon: false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -587,8 +587,7 @@ cover:
ha-card {
margin: 1vw !important;
}
ha-card>div>more-info-content>more-info-cover$ha-more-info-state-header$:
|
ha-card>div>more-info-content>more-info-cover$ha-more-info-state-header$: |
p.name {
display: none !important;
}
Expand Down Expand Up @@ -1055,7 +1054,7 @@ wide_header:
gpt: >
[[[
let gpt = states[variables.gpt_weather].state;
return `<span class="gpttext">${gpt}&nbsp;&nbsp;&nbsp;</span>`;
return `<span class="gpttext">${gpt}</span>`;
]]]
overlay:
card:
Expand Down Expand Up @@ -1196,7 +1195,7 @@ wide_header:
bottom: 0.9vw;
}
#label.ellipsis {
font-size: 0.8em;
font-size: 0.6vw;
text-align: left;
place-self: center;
line-height: 150%;
Expand Down Expand Up @@ -1226,12 +1225,12 @@ wide_header:
color: #97989c;
}
#gpt {
padding: 1% 0 !important;
padding: 10px 0 0 0 !important;
overflow: visible !important;
border-top: 0.04vw rgba(158, 158, 158, 0.1) solid;
}
.gpttext {
font-size: 0.6vw;
font-size: 1vh;
white-space: pre-wrap;
}
#overlay {
Expand Down
21 changes: 21 additions & 0 deletions config/dashboards/templates/button_card_templates/tpl_sectors.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -933,6 +933,7 @@ alarm:
front_door:
template:
- base
- battery_alert
styles:
state:
- color: >
Expand All @@ -955,6 +956,26 @@ front_door:
return variables.entity_id;
]]]
# BATTER ALERT CIRCLE
battery_alert:
custom_fields:
battery_alert: >
[[[
return (states[variables.battery_alert].state == 'on')
? '<ha-icon icon="mdi:battery-alert" style="width:100%;display:flex;color:red;"></ha-icon>'
: null;
]]]
styles:
custom_fields:
battery_alert:
- position: absolute
- height: auto
- border-radius: 50%
- right: 1%
- padding: 5%
- margin: -10%
- width: 15%

# SENSORS
sensors:
template:
Expand Down
5 changes: 4 additions & 1 deletion config/dashboards/templates/decluttering-card.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -237,8 +237,10 @@ grid_front_door:
action: block
template:
- front_door
- loader
- icon_lock
- loader
variables:
battery_alert: binary_sensor.nuki_vchod_battery_critical

# MOTION SENSORS
grid_motion_sensors:
Expand All @@ -251,6 +253,7 @@ grid_motion_sensors:
- icon_motion

# CONTACT SENSORS

grid_contact_sensors:
card:
type: custom:button-card
Expand Down
3 changes: 3 additions & 0 deletions config/dashboards/views/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ layout:
". . . . . . . ."
mediaquery:
#laptop
'(max-width: 1712px)':
grid-gap: 1.3%
#portrait
'(min-width: 801px) and (max-width: 1440px)':
grid-gap: 1vw
Expand Down
Loading

0 comments on commit f0f25c7

Please sign in to comment.