Skip to content

Commit

Permalink
Merge pull request #802 from UI-Lovelace-Minimalist/release
Browse files Browse the repository at this point in the history
Release v1.0.2
  • Loading branch information
basbruss authored Jun 28, 2022
2 parents 7630e20 + 8a3bb9b commit fe66ea3
Show file tree
Hide file tree
Showing 61 changed files with 617 additions and 205 deletions.
4 changes: 4 additions & 0 deletions custom_cards/custom_card_apexcharts/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ hide:
<summary>1.0.0</summary>
Initial release
</details>
<details>
<summary>1.0.1</summary>
Fix for UI Minimalist v1.0.1.
</details>

## Usage

Expand Down
66 changes: 48 additions & 18 deletions custom_cards/custom_card_apexcharts/apexcharts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,15 +57,25 @@ custom_card_apexcharts:
card:
type: "custom:button-card"
entity: "[[[ return variables.entity_1.entity_id ]]]"
icon: "[[[ return variables.entity_1.icon ]]]"
name: "[[[ return variables.entity_1.name ]]]"
template:
- "card_generic_swap"
variables:
ulm_card_generic_swap_name: "[[[ return variables.entity_1.name ]]]"
ulm_card_generic_swap_icon: "[[[ return variables.entity_1.icon ]]]"
custom_fields:
item1:
card:
type: "custom:button-card"
custom_fields:
item1:
card:
type: "custom:button-card"
styles:
icon:
- color: "[[[ return `rgba(var(--color-${variables.entity_1.color}), 1)`;]]]"
img_cell:
- background-color: "[[[ return `rgba(var(--color-${variables.entity_1.color}), 0.20)`;]]]"
styles:
icon:
- color: "[[[ return `rgba(var(--color-${variables.entity_1.color}), 1)`;]]]"
img_cell:
- background-color: "[[[ return `rgba(var(--color-${variables.entity_1.color}), 0.20)`;]]]"
card:
- box-shadow: "none"
- border-radius: "none"
Expand All @@ -75,15 +85,25 @@ custom_card_apexcharts:
card:
type: "custom:button-card"
entity: "[[[ return variables.entity_2.entity_id ]]]"
icon: "[[[ return variables.entity_2.icon ]]]"
name: "[[[ return variables.entity_2.name ]]]"
template:
- "card_generic_swap"
variables:
ulm_card_generic_swap_name: "[[[ return variables.entity_2.name ]]]"
ulm_card_generic_swap_icon: "[[[ return variables.entity_2.icon ]]]"
custom_fields:
item1:
card:
type: "custom:button-card"
custom_fields:
item1:
card:
type: "custom:button-card"
styles:
icon:
- color: "[[[ return `rgba(var(--color-${variables.entity_2.color}), 1)`;]]]"
img_cell:
- background-color: "[[[ return `rgba(var(--color-${variables.entity_2.color}), 0.20)`;]]]"
styles:
icon:
- color: "[[[ return `rgba(var(--color-${variables.entity_2.color}), 1)`;]]]"
img_cell:
- background-color: "[[[ return `rgba(var(--color-${variables.entity_2.color}), 0.20)`;]]]"
card:
- box-shadow: "none"
- border-radius: "none"
Expand All @@ -93,15 +113,25 @@ custom_card_apexcharts:
card:
type: "custom:button-card"
entity: "[[[ return variables.entity_3.entity_id ]]]"
icon: "[[[ return variables.entity_3.icon ]]]"
name: "[[[ return variables.entity_3.name ]]]"
template:
- "card_generic_swap"
variables:
ulm_card_generic_swap_name: "[[[ return variables.entity_3.name ]]]"
ulm_card_generic_swap_icon: "[[[ return variables.entity_3.icon ]]]"
custom_fields:
item1:
card:
type: "custom:button-card"
custom_fields:
item1:
card:
type: "custom:button-card"
styles:
icon:
- color: "[[[ return `rgba(var(--color-${variables.entity_3.color}), 1)`;]]]"
img_cell:
- background-color: "[[[ return `rgba(var(--color-${variables.entity_3.color}), 0.20)`;]]]"
styles:
icon:
- color: "[[[ return `rgba(var(--color-${variables.entity_3.color}), 1)`;]]]"
img_cell:
- background-color: "[[[ return `rgba(var(--color-${variables.entity_3.color}), 0.20)`;]]]"
card:
- box-shadow: "none"
- border-radius: "none"
Expand Down
4 changes: 4 additions & 0 deletions custom_cards/custom_card_bar_card/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ Version: 1.0.0
<summary>1.0.0</summary>
Initial release.
</details>
<details>
<summary>0.1.1</summary>
Fix for UI Minimalist v1.0.1.
</details>

## Requirements

Expand Down
3 changes: 2 additions & 1 deletion custom_cards/custom_card_bar_card/custom_card_bar_card.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,14 @@ custom_card_bar_card:
template:
- "icon_info"
- "card_generic"
variables:
ulm_card_generic_name: "[[[ return variables.ulm_custom_card_bar_card_name != '' ? variables.ulm_custom_card_bar_card_name : '' ]]]"
styles:
card:
- box-shadow: "none"
- border-radius: "var(--border-radius) var(--border-radius) 0px 0px"
- padding: "12px"
entity: "[[[ return variables.ulm_custom_card_bar_card_entity ]]]"
name: "[[[ return variables.ulm_custom_card_bar_card_name != '' ? variables.ulm_custom_card_bar_card_name : '' ]]]"
item2:
card:
type: "custom:bar-card"
Expand Down
6 changes: 5 additions & 1 deletion custom_cards/custom_card_damix48_power_details/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,18 @@ The `custom_card_damix48_power_details` is an extension of the standard graph ca
## Credits

Author: Damix48
Version: 0.1.0
Version: 0.1.1

## Changelog

<details>
<summary>0.1.0</summary>
Initial release.
</details>
<details>
<summary>0.1.1</summary>
Fix for UI Minimalist v1.0.1.
</details>

## Usage

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ custom_card_damix48_power_details:
template:
- "icon_info"
- "card_generic"
variables:
ulm_card_generic_name: "[[[ return variables.ulm_card_power_details_name ]]]"
styles:
card:
- box-shadow: "none"
Expand All @@ -38,7 +40,6 @@ custom_card_damix48_power_details:
return variables.ulm_custom_card_damix48_power_details_in_the_lasts + " " + variables.ulm_card_power_details_hours + " " + variables.ulm_custom_card_damix48_power_details_hours;
}
]]]
label: "[[[ return variables.ulm_card_power_details_name ]]]"
item2:
card:
type: "custom:mini-graph-card"
Expand Down
18 changes: 9 additions & 9 deletions custom_cards/custom_card_eraycetinay_lock/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@ Version: 0.0.3
template: "custom_card_eraycetinay_lock"
name: "Door Lock"
variables:
custom_card_eraycetinay_lock_tap_control: true
custom_card_eraycetinay_lock_battery_level: sensor.door_battery
custom_card_eraycetinay_lock_door_open: binary_sensor.door_open
ulm_custom_card_eraycetinay_lock_tap_control: true
ulm_custom_card_eraycetinay_lock_battery_level: sensor.door_battery
ulm_custom_card_eraycetinay_lock_door_open: binary_sensor.door_open
triggers_update:
- "sensor.door_battery"
- "binary_sensor.door_open"
Expand All @@ -66,42 +66,42 @@ Version: 0.0.3
<th>Explanation</th>
</tr>
<tr>
<td>custom_card_eraycetinay_lock_tap_control</td>
<td>ulm_custom_card_eraycetinay_lock_tap_control</td>
<td>true</td>
<td>false</td>
<td>no</td>
<td>Lock/Unlock on tap action</td>
</tr>
<tr>
<td>custom_card_eraycetinay_lock_only_open</td>
<td>ulm_custom_card_eraycetinay_lock_only_open</td>
<td>true</td>
<td>false</td>
<td>no</td>
<td>Only use the card to open the door (always sends lock.open on tap)</td>
</tr>
<tr>
<td>custom_card_eraycetinay_lock_battery_level</td>
<td>ulm_custom_card_eraycetinay_lock_battery_level</td>
<td>sensor.door_battery</td>
<td></td>
<td>no</td>
<td>Displays a warning when the battery is low.</td>
</tr>
<tr>
<td>custom_card_eraycetinay_lock_battery_warning</td>
<td>ulm_custom_card_eraycetinay_lock_battery_warning</td>
<td>25</td>
<td>20</td>
<td>no</td>
<td>At what battery percentage should the low battery warning appear.</td>
</tr>
<tr>
<td>custom_card_eraycetinay_lock_battery_warning_low</td>
<td>ulm_custom_card_eraycetinay_lock_battery_warning_low</td>
<td>10</td>
<td>5</td>
<td>no</td>
<td>At what battery percentage should the very low battery warning appear.</td>
</tr>
<tr>
<td>custom_card_eraycetinay_lock_door_open</td>
<td>ulm_custom_card_eraycetinay_lock_door_open</td>
<td>binary_sensor.door_open</td>
<td></td>
<td>no</td>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
---
custom_card_eraycetinay_lock:
template:

- "icon_info_bg"
- "ulm_translation_engine"
- "custom_card_eraycetinay_lock_language_variables"
variables:
custom_card_eraycetinay_lock_battery_warning: 20
custom_card_eraycetinay_lock_battery_warning_low: 5
ulm_custom_card_eraycetinay_lock_battery_warning: 20
ulm_custom_card_eraycetinay_lock_battery_warning_low: 5
tap_action:
action: |
[[[
Expand Down Expand Up @@ -89,26 +88,26 @@ custom_card_eraycetinay_lock:
- line-height: "14px"
- background-color: |
[[[
if (variables.custom_card_eraycetinay_lock_battery_level !== undefined) {
if (states[variables.custom_card_eraycetinay_lock_battery_level].state <= variables.custom_card_eraycetinay_lock_battery_warning_low) {
if (variables.ulm_custom_card_eraycetinay_lock_battery_level !== undefined) {
if (states[variables.ulm_custom_card_eraycetinay_lock_battery_level].state <= variables.ulm_custom_card_eraycetinay_lock_battery_warning_low) {
return "rgba(var(--color-red),1)";
} else if (states[variables.custom_card_eraycetinay_lock_battery_level].state <= variables.custom_card_eraycetinay_lock_battery_warning) {
} else if (states[variables.ulm_custom_card_eraycetinay_lock_battery_level].state <= variables.ulm_custom_card_eraycetinay_lock_battery_warning) {
return "rgba(var(--color-yellow),1)";
}
}
]]]
custom_fields:
notification_locked_and_opened: >
[[[
if (variables.custom_card_eraycetinay_lock_door_open !== undefined && (entity.state === "locked" && states[variables.custom_card_eraycetinay_lock_door_open].state === "on")) {
return `<span title="${variables.custom_card_eraycetinay_lock_locked_and_opened}"><ha-icon icon="mdi:door-open" style="width: 12px; height: 12px; color: var(--primary-background-color);"></ha-icon></span>`;
if (variables.ulm_custom_card_eraycetinay_lock_door_open !== undefined && (entity.state === "locked" && states[variables.ulm_custom_card_eraycetinay_lock_door_open].state === "on")) {
return `<span title="${variables.ulm_custom_card_eraycetinay_lock_locked_and_opened}"><ha-icon icon="mdi:door-open" style="width: 12px; height: 12px; color: var(--primary-background-color);"></ha-icon></span>`;
}
]]]
notification_battery: >
[[[
if (variables.custom_card_eraycetinay_lock_battery_level !== undefined) {
if (variables.custom_card_eraycetinay_lock_battery_warning >= states[variables.custom_card_eraycetinay_lock_battery_level].state) {
return `<span title="${variables.custom_card_eraycetinay_lock_battery_is_at} ${states[variables.custom_card_eraycetinay_lock_battery_level].state}%">
if (variables.ulm_custom_card_eraycetinay_lock_battery_level !== undefined) {
if (variables.ulm_custom_card_eraycetinay_lock_battery_warning >= states[variables.ulm_custom_card_eraycetinay_lock_battery_level].state) {
return `<span title="${variables.ulm_custom_card_eraycetinay_lock_battery_is_at} ${states[variables.ulm_custom_card_eraycetinay_lock_battery_level].state}%">
<ha-icon icon="mdi:battery-low" style="width: 12px; height: 12px; color: var(--primary-background-color);"></ha-icon>
</span>`;
}
Expand Down
3 changes: 3 additions & 0 deletions custom_cards/custom_card_nik_nas/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ Version: 1.0.0
<summary>1.0.0</summary>
Initial release
</details>
<summary>0.1.1</summary>
Fix for UI Minimalist v1.0.1.
</details>

## Requirements

Expand Down
Loading

0 comments on commit fe66ea3

Please sign in to comment.