Skip to content

Commit

Permalink
🤖 18-01-25 | ♻️ Updated 32 files ✨ Added 3 files
Browse files Browse the repository at this point in the history
--------
- update: views/main.yaml
- update: floorplan/mediaplayers.yaml
- update: system-grid/side-columns.yaml
- update: themes/tablet.yaml
- update: hassio/hass_light.yaml
- update: config/configuration.yaml
- update: popup/calendar.yaml
- update: hassio/hass_system.yaml
- update: popup/popup_weather.yaml
- update: button_card_templates/tpl_footer.yaml
- update: docs/README.md
- update: system-grid/system-graph.yaml
- update: popup/security_sensors.yaml
- update: sensors/template_sensors.yaml
- update: button_card_templates/tpl_header.yaml
- update: hassio/hass_group.yaml
- update: main-grid/header.yaml
- update: snippets/popup_footer_layout.yaml
- update: templates/decluttering-card.yaml
- update: views/system.yaml
- update: config/automations.yaml
- update: config/README.md
- update: templates/streamline-card.yaml
- update: button_card_templates/tpl_base.yaml
- update: button_card_templates/tpl_chips.yaml
- update: snippets/style_popup_footer.yaml
- update: hassio/hass_sensors.yaml
- update: dashboards/ui-lovelace-main.yaml
- update: button_card_templates/tpl_sectors.yaml
- update: config/go2rtc.yaml
- update: govee/manifest.json
- update: main-grid/a-chips.yaml
- add: sensors/template_image.yaml
- add: subviews/github-stats.yaml
- add: templates/decluttering-card-backup.yaml

--------
Automated commit via script
  • Loading branch information
ngocjohn committed Jan 18, 2025
1 parent 310ccfb commit 4f3f249
Show file tree
Hide file tree
Showing 35 changed files with 1,997 additions and 416 deletions.
12 changes: 6 additions & 6 deletions config/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,13 @@ https://github.com/ngocjohn/hass-config/assets/96962827/acc1a4db-b92e-4ab1-ac9d-
</thead>
<tbody>
<tr>
<td>34,023 </td>
<td>32</td>
<td>163</td>
<td>34,946 </td>
<td>34</td>
<td>164</td>
<td>63</td>
<td>53</td>
<td>54</td>
<td>32</td>
<td>1083</td>
<td>1063</td>
<td>215</td>
<td>38</td>
</tr>
Expand All @@ -62,6 +62,7 @@ https://github.com/ngocjohn/hass-config/assets/96962827/acc1a4db-b92e-4ab1-ac9d-
- Advanced SSH & Web Terminal
- ArgonOne Active Linear Cooling
- Cloudflared
- DbStats
- eufy-security-ws
- Glances
- go2rtc
Expand Down Expand Up @@ -138,7 +139,6 @@ https://github.com/ngocjohn/hass-config/assets/96962827/acc1a4db-b92e-4ab1-ac9d-
- [Mushroom](https://github.com/piitaya/lovelace-mushroom)
- [Polr Ytube Media Card](https://github.com/pathofleastresistor/polr-ytube-media-card)
- [Purifier Card](https://github.com/denysdovhan/purifier-card)
- [Restriction Card](https://github.com/iantrich/restriction-card)
- [Rpi Monitor Card](https://github.com/ironsheep/lovelace-rpi-monitor-card)
- [Simple Thermostat](https://github.com/nervetattoo/simple-thermostat)
- [Slider Button Card](https://github.com/custom-cards/slider-button-card)
Expand Down
175 changes: 156 additions & 19 deletions config/automations.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -625,8 +625,8 @@
actions:
- parallel:
- data:
message: Memory {{ states.sensor.system_monitor_memory_usage.state }}% - CPU
{{ states.sensor.system_monitor_processor_use.state }}%
message: Memory {{ states.sensor.ha_system_memory_usage.state }}% - CPU {{
states.sensor.ha_system_cpu_usage.state }}%
title: System
action: notify.notify
mode: single
Expand Down Expand Up @@ -656,26 +656,55 @@
- id: '1701556784590'
alias: Update YouTube Sensor
description: ''
trigger:
- platform: state
entity_id:
triggers:
- entity_id:
- media_player.living_room_tv
- media_player.bedroom_tv
attribute: media_title
condition:
- condition: or
conditions:
- condition: template
value_template: '{{ is_state_attr(''media_player.living_room_tv'', ''app_id'',
''com.google.ios.youtube'') and state_attr(''media_player.living_room_tv'',
''media_title'') != state_attr(''sensor.youtube_thumbnail'', ''title'') }}'
- condition: template
value_template: '{{ is_state_attr(''media_player.bedroom_tv'', ''source'', ''YouTube'')
and state_attr(''media_player.bedroom_tv'', ''media_title'') != state_attr(''sensor.youtube_thumbnail'',
''title'') }}'
action:
- event: youtube_update
event_data: {}
trigger: state
id: title_change
for:
hours: 0
minutes: 0
seconds: 2
- entity_id:
- media_player.living_room_tv
- media_player.bedroom_tv
trigger: state
id: reset_title
attribute: app_id
from: com.google.ios.youtube
conditions: []
actions:
- choose:
- conditions:
- condition: and
conditions:
- condition: trigger
id:
- title_change
- condition: or
conditions:
- condition: template
value_template: "{% if state_attr('media_player.living_room_tv', 'media_title')
!= None %} \n{{ is_state_attr('media_player.living_room_tv', 'app_id',
'com.google.ios.youtube') and state_attr('media_player.living_room_tv',
'media_title') != state_attr('sensor.youtube_thumbnail', 'title') }}\n{%
endif%}"
- condition: template
value_template: '{{ is_state_attr(''media_player.bedroom_tv'', ''source'',
''YouTube'') and state_attr(''media_player.bedroom_tv'', ''media_title'')
!= state_attr(''sensor.youtube_thumbnail'', ''title'') }}'
sequence:
- event: youtube_update
event_data: {}
- conditions:
- condition: trigger
id:
- reset_title
sequence:
- event: youtube_reset
event_data: {}
max_exceeded: silent
mode: single
- id: '1702444277863'
Expand Down Expand Up @@ -1153,3 +1182,111 @@
input:
vacuum: vacuum.roidmi_eve
camera: camera.roidmi_eve
- id: '1737054227949'
alias: Kids room camera snapshot
description: ''
triggers:
- at: 05:00:00
id: delete
trigger: time
- hours: /1
trigger: time_pattern
conditions:
- condition: time
after: 05:00:00
before: 00:00:00
actions:
- if:
- condition: trigger
id: delete
then:
- data:
folder: /config/www/tmp/snapshots/
time: 0
only_extensions:
- .png
- .jpg
action: delete.files_in_folder
- data:
folder: /config/www/tmp/kids/
time: 0
only_extensions:
- .png
- .jpg
action: delete.files_in_folder
- parallel:
- action: button.press
metadata: {}
data: {}
target:
entity_id: button.kids_room_start_rtsp_stream
- condition: state
entity_id: camera.kids_room
state: streaming
for:
hours: 0
minutes: 0
seconds: 3
- delay:
hours: 0
minutes: 0
seconds: 2
milliseconds: 0
- parallel:
- data:
filename: /config/www/tmp/snapshots/camera.kids_room{{ now().strftime("%Y%m%d-%H%M%S")
}}.jpg
target:
entity_id: camera.kids_room
action: camera.snapshot
- action: input_text.set_value
metadata: {}
data:
value: camera.kids_room{{now().strftime("%Y%m%d-%H%M%S")}}.jpg
target:
entity_id: input_text.kids_camera_snapshot
- data:
filename: /config/tmp/camera.kids_room{{ now().strftime("%Y%m%d-%H%M%S") }}.jpg
target:
entity_id: camera.kids_room
action: camera.snapshot
- delay:
hours: 0
minutes: 0
seconds: 5
milliseconds: 0
- action: button.press
metadata: {}
data: {}
target:
entity_id: button.kids_room_stop_rtsp_stream
mode: single
- id: '1737074902973'
alias: test video notify
description: ''
triggers: []
conditions: []
actions:
- action: notify.mobile_app_viet_ngoc
data:
message: Test video
data:
video: /media/local/test_video.mp4
enabled: false
- action: notify.mobile_app_viet_ngoc
data:
message: browse
data:
actions:
- action: URI
title: Browse media
uri: /media-browser/browser
enabled: false
- action: notify.mobile_app_viet_ngoc
data:
message: Motion Detected in the Living Room
data:
entity_id: camera.kids_room_cam
push:
category: camera
mode: single
3 changes: 2 additions & 1 deletion config/configuration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ homeassistant:
- /config
media_dirs:
movies: /media/movies
media: /media
local: /media

# FRONT - END
frontend:
extra_module_url:
Expand Down
2 changes: 1 addition & 1 deletion config/custom_components/govee/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@
"issue_tracker": "https://github.com/LaggAt/hacs-govee/issues",
"requirements": ["govee-api-laggat==0.2.2", "dacite==1.8.0"],
"ssdp": [],
"version": "2025.1.1",
"version": "2023.11.1",
"zeroconf": []
}
25 changes: 13 additions & 12 deletions config/dashboards/floorplan/mediaplayers.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,26 +54,27 @@
- atv-entity-picture
entities:
- media_player.living_room_tv
- sensor.youtube_thumbnail
# - sensor.youtube_thumbnail
# - media_player.kodi_atv
state_action:
- service: floorplan.image_set
service_data:
image: |
>
if (states['media_player.living_room_tv'].state === "off") {
const mediaState = states['media_player.living_room_tv'].state;
const appState = states['media_player.living_room_tv'].attributes.app_name;
if (mediaState !== "off") {
if (appState === "YouTube") {
return states['sensor.youtube_thumbnail'].state;
} else if (appState === "Kodi") {
return states['sensor.kodi_picture'].attributes.fanart;
}
} else {
return "/local/hafloor/transparent_idle.png";
} else if (states['media_player.living_room_tv'].state !== "off") {
let picture = states['sensor.youtube_thumbnail'].state;
if (states['media_player.kodi_atv'].state !== "off") {
picture = states['sensor.kodi_picture'].attributes.fanart;
}
return picture;
}
- entities:
- light.sony_tv_backlight
# - media_player.kodi_atv
state_action:
- service: floorplan.style_set
service_data:
Expand Down Expand Up @@ -103,9 +104,9 @@
stroke-dashoffset: 400;
animation: 5s ease-in-out 0s infinite strokeAnimation; */
`;
} else {
return "display: none;";
}
} else {
return "display: none;";
}
- service: floorplan.style_set
service_data:
Expand Down
16 changes: 8 additions & 8 deletions config/dashboards/shared/popup/calendar.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,19 @@ browser_mod:
type: custom:layout-card
layout_type: custom:grid-layout
layout:
grid-template-columns: 560px 560px
grid-template-columns: 550px 550px
grid-gap: 2px 1px
margin: 0
padding: 0
mediaquery:
'(max-width: 800px)':
grid-template-columns: 100%
grid-gap: 2px 1px
margin: 0
padding: 0
cards:
- type: entities
title: "[[[ return states['sensor.date_en'].state;]]]"
card_mod:
class: header nopadding
entities:
- type: custom:atomic-calendar-revive
enableModeChange: true
Expand All @@ -43,11 +48,6 @@ browser_mod:
compactMode: false
showMultiDayEventParts: true
showCurrentEventLine: true
card_mod:
style: |
.cal-card {
padding: 0px !important;
}
- type: entities
title: Lunar Phase
card_mod:
Expand Down
9 changes: 2 additions & 7 deletions config/dashboards/shared/popup/popup_weather.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ browser_mod:
service: browser_mod.popup
data:
title: Weather
style: >
--max-popup-column: 2;
content:
type: custom:mod-card
card_mod: !include ../snippets/style_popup_footer.yaml
Expand All @@ -11,15 +13,8 @@ browser_mod:
layout_type: custom:grid-layout
layout: !include ../snippets/popup_footer_layout.yaml
cards:
#################################################
# #
# WEATHER POPUP #
# #
#################################################
- type: entities
title: Prague
card_mod:
class: header nopadding
entities:
- type: custom:layout-card
layout_type: custom:vertical-layout
Expand Down
4 changes: 2 additions & 2 deletions config/dashboards/shared/popup/security_sensors.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ browser_mod:
filter:
template: |
{% for sensor in expand('group.motion_sensors') -%}
{%- set name = state_attr(sensor.entity_id, "friendly_name") | regex_replace(find='Motion Sensor ', replace='') -%}
{%- set name = state_attr(sensor.entity_id, "friendly_name") | regex_replace('Motion Sensor| ?Occupancy','') | trim -%}
{{
{ 'entity': sensor.entity_id,
'name': name,
Expand All @@ -51,7 +51,7 @@ browser_mod:
filter:
template: |
{% for sensor in expand('group.contact_sensors') -%}
{%- set name = state_attr(sensor.entity_id, "friendly_name") | regex_replace(find='Contact Sensor ', replace='') -%}
{%- set name = state_attr(sensor.entity_id, "friendly_name") | regex_replace('Contact Sensor| ?Occupancy','') | trim -%}
{{
{ 'entity': sensor.entity_id,
'name': name,
Expand Down
10 changes: 9 additions & 1 deletion config/dashboards/shared/snippets/popup_footer_layout.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
margin: -1
grid-template-columns: repeat(var(--max-popup-column, auto-fit), minmax(560px, 1fr))
grid-template-rows: auto
grid-gap: 2px 1px
margin: 0
padding: 0
mediaquery:
'(max-width: 800px)':
grid-template-columns: 1fr
grid-template-rows: auto
grid-gap: 2px 1px
margin: 0
padding: 0
Loading

0 comments on commit 4f3f249

Please sign in to comment.