Skip to content

Commit

Permalink
update custom components, themes
Browse files Browse the repository at this point in the history
- Update Custom components
- Update themes
  • Loading branch information
zanix committed Jan 2, 2025
1 parent 7100f27 commit 16ce542
Show file tree
Hide file tree
Showing 4 changed files with 4,530 additions and 4,232 deletions.
24 changes: 12 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@ version of [Home Assistant][home-assistant] running on an Intel NUC5i5MYHE.

| Description | Value |
| -------------- | -- |
| All Entities | 4134 |
| Sensors | 1278 |
| All Entities | 4150 |
| Sensors | 1279 |
| Binary Sensors | 322 |
| Lights | 72 |
| Lights | 73 |
| Switches | 226 |

<details><summary>Stock Integrations</summary>
Expand Down Expand Up @@ -282,13 +282,13 @@ The Z-Wave integration allows you to control a Z-Wave network via the [Z-Wave JS

<details><summary>26 Custom Integrations</summary>

### [Adaptive Lighting](https://github.com/basnijholt/adaptive-lighting) [v1.23.0]
### [Adaptive Lighting](https://github.com/basnijholt/adaptive-lighting) [v1.25.0]

Adaptive Lighting custom component for Home Assistant

Authors: [@basnijholt](https://github.com/basnijholt), [@RubenKelevra](https://github.com/RubenKelevra), [@th3w1zard1](https://github.com/th3w1zard1), [@protyposis](https://github.com/protyposis).

### [Bambu Lab](https://github.com/greghesp/ha-bambulab) [v2.0.38]
### [Bambu Lab](https://github.com/greghesp/ha-bambulab) [v2.0.39]

A Home Assistant Integration for Bambu Lab Printers

Expand Down Expand Up @@ -370,7 +370,7 @@ Home Assistant integration for managing Z-Wave enabled locks

Authors: [@FutureTense](https://github.com/FutureTense), [@firstof9](https://github.com/firstof9), [@raman325](https://github.com/raman325).

### [Kia Uvo / Hyundai Bluelink](https://github.com/Hyundai-Kia-Connect/kia_uvo) [v2.31.0]
### [Kia Uvo / Hyundai Bluelink](https://github.com/Hyundai-Kia-Connect/kia_uvo) [v2.31.2]

A Home Assistant HACS integration that supports Kia Connect(Uvo) and Hyundai Bluelink. The integration supports the EU, Canada and the USA.

Expand All @@ -382,7 +382,7 @@ Home Assistant integration providing day of package counts and USPS informed del

Authors: [@moralmunky](https://github.com/moralmunky), [@firstof9](https://github.com/firstof9).

### [Neakasa](https://github.com/timniklas/hass-neakasa) [v1.0.6]
### [Neakasa](https://github.com/timniklas/hass-neakasa) [v1.0.7]

Home Assistant Neakasa Integration

Expand Down Expand Up @@ -412,7 +412,7 @@ A scary 👻 powerful toolbox 🧰 for Home Assistant 🏡

Authors: [@frenck](https://github.com/frenck).

### [Subaru (Hacs)](https://github.com/G-Two/homeassistant-subaru) [v0.7.15]
### [Subaru (Hacs)](https://github.com/G-Two/homeassistant-subaru) [v0.7.16]

Subaru STARLINK custom component for Home Assistant.

Expand Down Expand Up @@ -482,7 +482,7 @@ Expander card for HomeAssistant

🔹 A foldable row for entities card, containing other rows

### [Frigate Card](https://github.com/dermotduffy/frigate-hass-card) [v6.1.0]
### [Frigate Card](https://github.com/dermotduffy/frigate-hass-card) [v6.1.2]

A Lovelace card for Frigate in Home Assistant

Expand All @@ -498,7 +498,7 @@ A card for Home Assistant Lovelace for exploring the history of your entities in

Sun Card successor: Visualize the position of the Sun over the horizon.

### [Hourly Weather Card](https://github.com/decompil3d/lovelace-hourly-weather) [v6.4.0]
### [Hourly Weather Card](https://github.com/decompil3d/lovelace-hourly-weather) [v6.5.0]

Hourly weather card for Home Assistant. Visualize upcoming weather conditions as a colored horizontal bar.

Expand Down Expand Up @@ -578,7 +578,7 @@ Minimalistic uptime card for Home Assistant Lovelace UI

📐 Home Assistant Card: Group multiple cards into a single sleek card.

### [Wind Rose Card](https://github.com/aukedejong/lovelace-windrose-card) [v1.12.3]
### [Wind Rose Card](https://github.com/aukedejong/lovelace-windrose-card) [v1.12.6]

Home Assistant Lovelace Windrose Card

Expand All @@ -594,7 +594,7 @@ This card provides a user-friendly way to fully control map-based vacuums in Hom

LCARS theme for Home Assistant

### [Material Rounded Theme Based On Material You By Google On Android](https://github.com/Nerwyn/material-rounded-theme) [v3.0.0]
### [Material Rounded And Material You Material Design 3 Themes](https://github.com/Nerwyn/material-rounded-theme) [v3.0.2]

Material Design 3 Colors and Components in Home Assistant

Expand Down
138 changes: 129 additions & 9 deletions custom_templates/easy_time.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,24 @@
'oktober',
'november',
'december',
]
],
'time_of_hour':{
0: '{hour} uur',
1: '1 over {hour}',
15: 'kwart over {hour}',
30: 'half {hour}',
45: 'kwart voor {hour}',
59: '1 voor {hour}',
'past_hour': '{minute} over {hour}',
'to_hour': '{minute} voor {hour}',
'to_half_hour': '{minute} voor half {hour}',
'past_half_hour': '{minute} over half {hour}',
'half_hour': 'half {hour}',
},
'time_of_day':{
'midnight': 'middernacht',
'noon': 'middag',
},
},
'sv':{
'_language': 'Svenska',
Expand Down Expand Up @@ -1105,6 +1122,82 @@
'midnight': 'полночь',
'noon': 'полдень',
},
},
'zh-Hans':{
'_language': '简体中文',
'and': '',
'in': '',
'ago': '之前',
'now': '现在',
'lose': '失去',
'gain': '获得',
'time':{
'format': '24-hr',
'year': [
'年',
'年',
'年',
],
'week': [
'周',
'星期',
'星期',
],
'day': [
'天',
'天',
'天',
],
'hour': [
'时',
'小时',
'小时',
],
'minute': [
'分',
'分钟',
'分钟',
],
'second': [
'秒',
'秒',
'秒',
],
},
'delta':{
'today': '今天',
'tomorrow': '明天',
'yesterday': '昨天',
'next': '下一个',
'last': '上一个',
},
'days':[
"星期一",
"星期二",
"星期三",
"星期四",
"星期五",
"星期六",
"星期日",
],
'months':[
'一月',
'二月',
'三月',
'四月',
'五月',
'六月',
'七月',
'八月',
'九月',
'十月',
'十一月',
'十二月',
],
'time_of_day':{
'midnight': '午夜',
'noon': '正午',
},
}
} %}
Expand Down Expand Up @@ -1354,8 +1447,8 @@
{%- endmacro %}
{%- macro _time_between(func, input1, attr1, utc1, input2, attr2, utc2) -%}
{%- set t1 = _to_datetime(input1, attr1, utc1) | as_datetime -%}
{%- set t2 = _to_datetime(input2, attr2, utc2) | as_datetime -%}
{%- set t1 = _to_datetime(input1, attr1, utc1) | as_datetime | as_local -%}
{%- set t2 = _to_datetime(input2, attr2, utc2) | as_datetime | as_local -%}
{%- if t1 is not none and t2 is not none -%}
{{- func(t1, t2) -}}
{%- else -%}
Expand Down Expand Up @@ -1516,6 +1609,16 @@
{{- _next_weekday(weekday, -7) }}
{%- endmacro %}
{%- macro nearest_day(weekday) %}
{%- set today_timestamp = as_timestamp(today_at())|int %}
{%- set this_weekday_timestamp = as_timestamp(this_weekday(weekday))|int %}
{%- if today_timestamp < this_weekday_timestamp %}
{{- _next_weekday(weekday, 0) }}
{%- else %}
{{- _next_weekday(weekday, 7) }}
{%- endif %}
{%- endmacro %}
{%- macro days_in_month(month=None) %}
{%- set today = today_at() %}
{%- set input = month if month is not none else today.month %}
Expand Down Expand Up @@ -1632,7 +1735,7 @@
{%- endif -%}
{%- endmacro -%}
{%- macro month(month=None, language=None) %}
{%- macro month(month=None, language=None, short=False) %}
{%- if month is datetime %}
{%- set idx = month.month - 1 %}
{%- elif month is integer and month > 0 %}
Expand All @@ -1642,10 +1745,11 @@
{%- else %}
{%- set idx = now().month - 1 %}
{%- endif %}
{{- translate('months', index=idx, language=language) }}
{%- set ret = translate('months', index=idx, language=language) %}
{{- ret[:3] if short else ret }}
{%- endmacro %}
{%- macro weekday(weekday=None, language=None) %}
{%- macro weekday(weekday=None, language=None, short=False) %}
{%- if weekday is datetime %}
{%- set idx = weekday.weekday() %}
{%- elif weekday is integer and weekday > 0 %}
Expand All @@ -1655,11 +1759,12 @@
{%- else %}
{%- set idx = now().weekday() %}
{%- endif %}
{{- translate('days', index=idx, language=language) }}
{%- set ret = translate('days', index=idx, language=language) %}
{{- ret[:3] if short else ret }}
{%- endmacro %}
{%- macro count_the_days(input, attr, utc=False) %}
{%- set input = _to_datetime(input, attr, utc) | as_datetime %}
{%- set input = _to_datetime(input, attr, utc) | as_datetime | as_local %}
{%- set midnight = today_at() %}
{{- (input - midnight).days }}
{%- endmacro %}
Expand Down Expand Up @@ -1728,7 +1833,22 @@
{%- set hour_phrase = hour(this_hour, language=language) %}
{%- set minute_phrase = _phrase('minute', 60 * this_minute, language, True, True) if this_minute % 5 else this_minute | string %}
{%- endif %}
{%- if this_minute in [0, 1, 15, 30, 45, 59] %}
{%- set this_config = translate('time_of_hour') %}
{%- if (16 <= this_minute <= 29 and 'to_half_hour' in this_config) or (31 <= this_minute <= 44 and 'past_half_hour' in this_config) or (this_minute == 30 and 'half_hour' in this_config) %}
{%- set hour_phrase = hour(this_hour + 1, language=language) %}
{%- if 16 <= this_minute <= 29 %}
{%- set minute_calc = 30 - this_minute %}
{%- set fmat = translate('time_of_hour', 'to_half_hour', language=language) %}
{%- set minute_phrase = _phrase('minute', 60 * minute_calc, language, True, True) if this_minute % 5 else minute_calc | string %}
{%- elif 31 <= this_minute <= 44 %}
{%- set minute_calc = this_minute - 30 %}
{%- set fmat = translate('time_of_hour', 'past_half_hour', language=language) %}
{%- set minute_phrase = _phrase('minute', 60 * minute_calc, language, True, True) if this_minute % 5 else minute_calc | string %}
{%- else %}
{%- set minute_calc = None %}
{%- set fmat = translate('time_of_hour', 'half_hour', language=language) %}
{%- endif %}
{%- elif this_minute in [0, 1, 15, 30, 45, 59] %}
{%- if hour_phrase in ['noon', 'midnight'] and this_minute == 0 %}
{%- set fmat = '{hour}' %}
{%- else %}
Expand Down
Loading

0 comments on commit 16ce542

Please sign in to comment.