Skip to content

Commit 90fdcbe

Browse files
authored
Merge pull request #968 from UI-Lovelace-Minimalist/automated_custom_card_docs
[Action] Update custom_cards docs
2 parents d22ea75 + dc65eb8 commit 90fdcbe

File tree

3 files changed

+70
-13
lines changed

3 files changed

+70
-13
lines changed

docs/usage/custom_cards/custom_card_esh_room.md

+9-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,10 @@ hide:
1313

1414
## Credits
1515

16-
- Authors: Everything Smart Home - 2022 and mpeterson
16+
- Authors:
17+
- Everything Smart Home - 2022
18+
- mpeterson
19+
- rensknoors
1720
- Full credit to user [bms on the forum](https://community.home-assistant.io/t/lovelace-ui-minimalist/322687/192), they created the design and base of it in full, EverythingSmartHome put it into a PR as the basis
1821
- beasthouse and basbruss on the EverythingSmartHome discord channel for emoji/humidity customization
1922
- mpeterson added support for a switch to control climate and also to remove the need to have an entity associated
@@ -44,6 +47,10 @@ Fixes text overflow issue over the climate button.
4447
<summary>2.1.1</summary>
4548
Add support for the new popup framework while maintaining backwards compatibility with the old one.
4649
</details>
50+
<details>
51+
<summary>2.2.0</summary>
52+
Introduces a new variable that lets you set the card background to the color of a light entity.
53+
</details>
4754

4855
## Description
4956

@@ -62,6 +69,7 @@ This is an alternative room card to the standard one that is more rectangular th
6269
| ulm_custom_card_esh_room_climate_entity | | No | The entity to use for the climate button |
6370
| ulm_card_light_enable_popup | `false` | No | Enable `popup_light` |
6471
| ulm_card_thermostat_enable_popup | `false` | No | Enable `popup_thermostat` |
72+
| ulm_card_ulm_card_dynamic_color | `false` | No | Enables dynamic background color (requires `ulm_custom_card_esh_room_light_entity`) |
6573

6674
## Usage
6775

docs/usage/custom_cards/custom_card_esh_welcome.md

-12
Original file line numberDiff line numberDiff line change
@@ -96,18 +96,6 @@ Do not use `triggers_update: "all"`! This will lead to unwanted behavior with th
9696
color: "red"
9797
```
9898
99-
## Customizations
100-
101-
Single Line Text:
102-
103-
![Lewis](https://user-images.githubusercontent.com/51805396/184032046-383c63cc-a1a4-4d01-bcee-ae3f1d72c571.png)
104-
105-
To change the header text from 2 lines to a single, continuous line (as seen above), you must replace line 119 in custom_card_esh_welcome.yaml with the following:
106-
107-
```yaml
108-
return welcome + ', '+ user.name + '!';
109-
```
110-
11199
## Template code
112100
113101
??? note "Template Code"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
---
2+
title: Custom Template Battery Info
3+
hide:
4+
- toc
5+
---
6+
7+
<!-- markdownlint-disable MD046 -->
8+
9+
# Custom Template "Battery Info"
10+
11+
<img width="249" alt="ui_minimalist_battery_info_example" src="https://user-images.githubusercontent.com/63370033/184395981-7fce5840-aa76-453d-8756-39b15e36d26c.png">
12+
13+
## Credits
14+
15+
- Full credit to user [basbruss](https://github.com/basbruss), who created the design and base of it in his person card
16+
17+
## Changelog
18+
19+
<details>
20+
<summary>1.0.0</summary>
21+
Initial release
22+
</details>
23+
24+
## Description
25+
26+
This is an template to add the battery level to every ui minimalist card
27+
28+
## Variables
29+
30+
| Variable | Default | Required | Notes |
31+
| -------------------------------------------- | ------- | -------- | ------------------------------------------------------------------------ |
32+
| ulm_battery_entity | | No | The entity to represent the battery_level
33+
34+
## Usage with battery or battery_level attribute from entity
35+
36+
```yaml
37+
38+
- type: 'custom:button-card'
39+
template:
40+
- card_binary_sensor
41+
- battery_info
42+
entity: binary_sensor.badezimmer_tuer_contact
43+
variables:
44+
ulm_show_last_changed: false
45+
46+
```
47+
48+
## Usage with variable ulm_battery_entity
49+
50+
```yaml
51+
52+
- type: 'custom:button-card'
53+
template:
54+
- card_binary_sensor
55+
- battery_info
56+
entity: binary_sensor.badezimmer_tuer_contact
57+
variables:
58+
ulm_show_last_changed: false
59+
ulm_battery_entity: sensor.badezimmer_tuer_battery_level
60+
61+
```

0 commit comments

Comments
 (0)