Skip to content

Commit

Permalink
🤖 01-10-24 | ♻️ Updated 15 files
Browse files Browse the repository at this point in the history
--------
- update: config/README.md
- update: button_card_templates/tpl_sectors.yaml
- update: hassio/hass_system.yaml
- update: templates/decluttering-card.yaml
- update: nodered/manifest.json
- update: eufy_security/manifest.json
- update: mass/manifest.json
- update: mbapi2020/manifest.json
- update: hassio/hass_group.yaml
- update: spotcast/manifest.json
- update: config/automations.yaml
- update: spotifyplus/manifest.json
- update: config/scripts.yaml
- update: docs/README.md
- update: dyson_local/manifest.json

--------
Automated commit via script
  • Loading branch information
ngocjohn committed Sep 30, 2024
1 parent 4fc600f commit bd2794e
Show file tree
Hide file tree
Showing 15 changed files with 144 additions and 72 deletions.
16 changes: 7 additions & 9 deletions config/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Hey there! Welcome to my little corner of the tech world! 👨‍💻

This is where I store all the cool configurations for my Home Assistant system. Well, it's a mix of awesome codes and setups I discovered from the Home Assistant community. Seriously, those folks are wizards! 🧙‍♂️ As a bit of an internet newbie turned tech enthusiast, I stumbled upon the magic of IT, and this repository is my way of sharing the joy and knowledge I've gained along the way. Dive in, explore, and let the tech magic begin! ✨

I frequently refresh my configuration files. My current Home Assistant version is <b>2024.9.0</b>. If you find something you like, don't forget to give my repository a ⭐️!
I frequently refresh my configuration files. My current Home Assistant version is <b>2024.9.3</b>. If you find something you like, don't forget to give my repository a ⭐️!

<video width="100%" controls loop muted>
<source src="https://github-production-user-asset-6210df.s3.amazonaws.com/96962827/297112091-acc1a4db-b92e-4ab1-ac9d-df067d4ba4d1.mp4" type="video/mp4">
Expand All @@ -37,13 +37,13 @@ https://github.com/ngocjohn/hass-config/assets/96962827/acc1a4db-b92e-4ab1-ac9d-
</thead>
<tbody>
<tr>
<td>34,088 </td>
<td>34,098 </td>
<td>31</td>
<td>188</td>
<td>37</td>
<td>187</td>
<td>38</td>
<td>52</td>
<td>36</td>
<td>1110</td>
<td>30</td>
<td>1099</td>
<td>172</td>
<td>38</td>
</tr>
Expand Down Expand Up @@ -144,7 +144,6 @@ https://github.com/ngocjohn/hass-config/assets/96962827/acc1a4db-b92e-4ab1-ac9d-
- [Local Conditional Card](https://github.com/PiotrMachowski/Home-Assistant-Lovelace-Local-Conditional-card)
- [Logbook Card](https://github.com/royto/logbook-card)
- [Lovelace Custom Movie Panel](https://github.com/ngocjohn/lovelace-movie-panel)
- [Lunar Phase Card](https://github.com/ngocjohn/lunar-phase-card)
- [Mini Graph Card](https://github.com/kalkih/mini-graph-card)
- [Mini Media Player](https://github.com/kalkih/mini-media-player)
- [Multiple Entity Row](https://github.com/benct/lovelace-multiple-entity-row)
Expand All @@ -163,16 +162,15 @@ https://github.com/ngocjohn/hass-config/assets/96962827/acc1a4db-b92e-4ab1-ac9d-
- [Spotify Lovelace Card](https://github.com/custom-cards/spotify-card)
- [Stack In Card](https://github.com/custom-cards/stack-in-card)
- [State Switch](https://github.com/thomasloven/lovelace-state-switch)
- [Streamline Card](https://github.com/brunosabot/streamline-card)
- [Sun Card](https://github.com/edwardtfn/home-assistant-sun-card)
- [Tabbed Card](https://github.com/kinghat/tabbed-card)
- [Tailwindcss Template Card](https://github.com/usernein/tailwindcss-template-card)
- [Timer Bar Card](https://github.com/rianadon/timer-bar-card)
- [Tv Remote Card (With Touchpad And Haptic Feedback)](https://github.com/usernein/tv-card)
- [Universal Remote Card](https://github.com/Nerwyn/android-tv-card)
- [Upcoming Media Card](https://github.com/xZetsubou/upcoming-media-card)
- [Uptime Card](https://github.com/dylandoamaral/uptime-card)
- [Vehicle Info Card](https://github.com/ngocjohn/vehicle-info-card)
- [Vehicle Status Card](https://github.com/ngocjohn/vehicle-status-card)
- [Vertical Stack In Card](https://github.com/ofekashery/vertical-stack-in-card)
- [Weather Card](https://github.com/bramkragten/weather-card)
- [Weather Chart Card](https://github.com/mlamberts78/weather-chart-card)
Expand Down
10 changes: 5 additions & 5 deletions config/automations.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,6 @@
seconds: 3
milliseconds: 0
- alias: Ask to close or open the blinds
service: notify.mobile_app_viet_ngoc
data:
message: Do you want to stop this?
data:
Expand All @@ -382,6 +381,7 @@
- action: '{{ action_stop }}'
title: Stop alarm
title: Alarm Clock
action: notify.mobile_app_viet_ngoc
- alias: Wait for a response
wait_for_trigger:
- platform: event
Expand All @@ -394,12 +394,12 @@
- condition: template
value_template: '{{ wait.trigger.event.data.action == action_stop }}'
sequence:
- service: media_player.media_pause
data: {}
- data: {}
target:
entity_id:
- media_player.mass_office
- media_player.mass_bedroom
- media_player.office_homepod
- media_player.bedroom
action: media_player.media_pause
mode: single
- id: '1693488019712'
alias: Nuki Vchod Open
Expand Down
3 changes: 1 addition & 2 deletions config/custom_components/dyson_local/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,5 @@
"import_executor": true,
"iot_class": "local_push",
"issue_tracker": "https://github.com/libdyson-wg/ha-dyson/issues",
"version": "1.4.1",
"import_executor": true
"version": "1.4.2"
}
2 changes: 1 addition & 1 deletion config/custom_components/eufy_security/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@
"iot_class": "cloud_push",
"issue_tracker": "https://github.com/fuatakgun/eufy_security/issues",
"requirements": ["websocket-client==1.4.2", "aiortsp==1.3.7"],
"version": "8.0.2"
"version": "8.0.4"
}
23 changes: 6 additions & 17 deletions config/custom_components/mass/manifest.json
Original file line number Diff line number Diff line change
@@ -1,25 +1,14 @@
{
"domain": "mass",
"name": "Music Assistant",
"after_dependencies": [
"media_source",
"media_player"
],
"codeowners": [
"@music-assistant"
],
"after_dependencies": ["media_source", "media_player"],
"codeowners": ["@music-assistant"],
"config_flow": true,
"documentation": "https://music-assistant.io",
"iot_class": "local_push",
"issue_tracker": "https://github.com/music-assistant/hass-music-assistant/issues",
"loggers": [
"music_assistant"
],
"requirements": [
"music-assistant==2.1.3"
],
"version": "2024.8.1",
"zeroconf": [
"_mass._tcp.local."
]
"loggers": ["music_assistant"],
"requirements": ["music-assistant==2.2.4"],
"version": "2024.9.1",
"zeroconf": ["_mass._tcp.local."]
}
2 changes: 1 addition & 1 deletion config/custom_components/mbapi2020/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@
"requirements": [
"protobuf>=3.19.1"
],
"version": "v0.17.0"
"version": "v0.18.1"
}
2 changes: 1 addition & 1 deletion config/custom_components/nodered/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@
"documentation": "https://zachowj.github.io/node-red-contrib-home-assistant-websocket/guide/custom_integration/",
"iot_class": "local_push",
"issue_tracker": "https://github.com/zachowj/hass-node-red/issues",
"version": "4.0.2"
"version": "4.1.1"
}
2 changes: 1 addition & 1 deletion config/custom_components/spotcast/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@
"documentation": "https://github.com/fondberg/spotcast",
"iot_class": "cloud_polling",
"issue_tracker": "https://github.com/fondberg/spotcast/issues",
"version": "v3.8.0"
"version": "v3.8.2"
}
4 changes: 2 additions & 2 deletions config/custom_components/spotifyplus/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@
"requests>=2.31.0",
"requests_oauthlib>=1.3.1",
"smartinspectPython>=3.0.33",
"spotifywebapiPython>=1.0.83",
"spotifywebapiPython>=1.0.95",
"urllib3>=1.21.1,<1.27",
"zeroconf>=0.132.2"
],
"version": "v1.0.49",
"version": "v1.0.55",
"zeroconf": [
"_spotify-connect._tcp.local."
]
Expand Down
73 changes: 73 additions & 0 deletions config/dashboards/templates/button_card_templates/tpl_sectors.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1145,6 +1145,79 @@ circle_state:
}
]]]
battery_circle:
template:
- base
- circle
variables:
battery: ' '
circle_unit: ' '
state_display: >
[[[
if (entity) {
return variables.state === 'home'
? variables.translate_home
: variables.state === 'not_home'
? variables.translate_not_home
: variables.state;
}
return variables.translate_unknown;
]]]
triggers_update: sensor.time
custom_fields:
icon: >
[[[
return entity && variables.entity_picture
? `<img src="${variables.entity_picture}" width="100%">`
: null;
]]]
circle: >
[[[
let input = states[variables.battery].state,
radius = 20.5,
circumference = radius * 2 * Math.PI;
let unit = variables.circle_unit;
var color = "rgba(48, 128, 181, 0.8)";
if (input <= 20) {
color = "#FDD60F";
} else if (input <= 40) {
color = "rgba(48, 128, 181, 0.8)";
}
else {
color = "#27C950";
}
return `
<svg viewBox="0 0 50 50">
<style>
circle {
transform: rotate(-90deg);
transform-origin: 50% 50%;
stroke-dasharray: ${circumference};
stroke-dashoffset: ${circumference - input / 100 * circumference};
}
tspan {
font-size: 10px;
}
</style>
<circle cx="25" cy="25" r="${radius}" stroke="${color}" stroke-width="3" fill="none" stroke-linecap="round"/>
<text x="50%" y="54%" fill="#8d8e90" font-size="14" text-anchor="middle" alignment-baseline="middle" dominant-baseline="middle">${input}<tspan font-size="10">${unit}</tspan></text>
</svg>
`;
]]]
styles:
custom_fields:
icon:
- clip-path: circle()
- width: 82%
- pointer-events: none
- display: grid
- filter: >
[[[
return variables.state === 'not_home'
? `grayscale(1)`
: null;
]]]
change_grid_title:
state_display: >
[[[
Expand Down
14 changes: 13 additions & 1 deletion config/dashboards/templates/decluttering-card.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,19 @@ grid_living_room:
display:none !important;
{% endif %}
}
# KITCHEN NORMAL
# grid_living_room:
# card:
# type: custom:button-card
# entity: person.viet_ngoc
# name: Viet Ngoc
# template:
# - battery_circle
# variables:
# battery: sensor.viet_ngoc_battery_level
# circle_unit: ' %'

# KITCHEN NORMAL
grid_kitchen_normal:
card:
type: custom:button-card
Expand Down
8 changes: 4 additions & 4 deletions config/packages/hassio/hass_group.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -157,10 +157,10 @@ group:
name: 'Homepod MASS Airplay'
icon: mdi:speaker
entities:
- media_player.mass_office
- media_player.mass_bathroom
- media_player.mass_bedroom
- media_player.mass_living_room_hp
- media_player.office_homepod
- media_player.bathroom
- media_player.bedroom
- media_player.living_room_2

television:
name: Television
Expand Down
2 changes: 1 addition & 1 deletion config/packages/hassio/hass_system.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ recorder:
logger:
default: error
logs:
aiohttp: critical
aiohttp: debug
custom_components.spotcast: error
custom_components.lunar_phase: debug

Expand Down
39 changes: 21 additions & 18 deletions config/scripts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -614,59 +614,62 @@ vacuum_reset_filter_life_level:
homepod_alarm:
alias: Homepod alarm
sequence:
- service: media_player.turn_on
data: {}
- data: {}
target:
entity_id: media_player.mass_bedroom
entity_id: media_player.bedroom
action: media_player.turn_on
- delay:
hours: 0
minutes: 0
seconds: 3
milliseconds: 0
- service: media_player.volume_set
data:
- data:
volume_level: 0.2
target:
entity_id: media_player.mass_bedroom
entity_id: media_player.bedroom
action: media_player.volume_set
- delay:
hours: 0
minutes: 0
seconds: 3
milliseconds: 0
- service: media_player.play_media
data:
media_content_id: library://playlist/29
- data:
media_content_id: ytmusic://track/uFeUKcAAn4c
media_content_type: music
metadata:
title: Deep remix
thumbnail: https://i.ytimg.com/vi/_u66_SqrqqA/hq720.jpg?sqp=-oaymwEXCKAGEMIDIAQqCwjVARCqCBh4INgESFo&rs=AMzJL3n3YKk4fP_Wn--WLgVQLKgX09YHtg
media_class: playlist
title: "Orinn DEEP - NHẠC NGHE TRÊN XE\U0001F3A7NHẠC TRẺ REMIX 2024\U0001F3A7MIXSET
HOUSE LAK & DEEP HOUSE 2024 #11"
thumbnail:
media_class: track
children_media_class:
navigateIds:
- {}
- media_content_type: mass
media_content_id: playlists
- media_content_type: music
media_content_id: library://playlist/7
target:
entity_id: media_player.mass_bedroom
entity_id: media_player.bedroom
action: media_player.play_media
- delay:
hours: 0
minutes: 0
seconds: 3
milliseconds: 0
- parallel:
- service: script.fade_music
data:
- data:
target_volume: 0.7
duration: 30
curve: logarithmic
target_player: media_player.mass_bedroom
- service: script.fade_music
data:
target_player: media_player.bedroom
action: script.fade_music
- data:
target_volume: 0.7
duration: 30
curve: logarithmic
target_player: media_player.mass_office
enabled: false
action: script.fade_music
mode: single
icon: phu:homepod-mini
run_plugin:
Expand Down
Loading

0 comments on commit bd2794e

Please sign in to comment.