Skip to content

Commit

Permalink
Merge pull request #968 from UI-Lovelace-Minimalist/automated_custom_…
Browse files Browse the repository at this point in the history
…card_docs

[Action] Update custom_cards docs
  • Loading branch information
basbruss authored Aug 31, 2022
2 parents d22ea75 + dc65eb8 commit 90fdcbe
Show file tree
Hide file tree
Showing 3 changed files with 70 additions and 13 deletions.
10 changes: 9 additions & 1 deletion docs/usage/custom_cards/custom_card_esh_room.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,10 @@ hide:

## Credits

- Authors: Everything Smart Home - 2022 and mpeterson
- Authors:
- Everything Smart Home - 2022
- mpeterson
- rensknoors
- 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
- beasthouse and basbruss on the EverythingSmartHome discord channel for emoji/humidity customization
- mpeterson added support for a switch to control climate and also to remove the need to have an entity associated
Expand Down Expand Up @@ -44,6 +47,10 @@ Fixes text overflow issue over the climate button.
<summary>2.1.1</summary>
Add support for the new popup framework while maintaining backwards compatibility with the old one.
</details>
<details>
<summary>2.2.0</summary>
Introduces a new variable that lets you set the card background to the color of a light entity.
</details>

## Description

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

## Usage

Expand Down
12 changes: 0 additions & 12 deletions docs/usage/custom_cards/custom_card_esh_welcome.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,18 +96,6 @@ Do not use `triggers_update: "all"`! This will lead to unwanted behavior with th
color: "red"
```
## Customizations
Single Line Text:
![Lewis](https://user-images.githubusercontent.com/51805396/184032046-383c63cc-a1a4-4d01-bcee-ae3f1d72c571.png)
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:
```yaml
return welcome + ', '+ user.name + '!';
```

## Template code
??? note "Template Code"
Expand Down
61 changes: 61 additions & 0 deletions docs/usage/custom_cards/custom_template_shogun160_battery_info.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
---
title: Custom Template Battery Info
hide:
- toc
---

<!-- markdownlint-disable MD046 -->

# Custom Template "Battery Info"

<img width="249" alt="ui_minimalist_battery_info_example" src="https://user-images.githubusercontent.com/63370033/184395981-7fce5840-aa76-453d-8756-39b15e36d26c.png">

## Credits

- Full credit to user [basbruss](https://github.com/basbruss), who created the design and base of it in his person card

## Changelog

<details>
<summary>1.0.0</summary>
Initial release
</details>

## Description

This is an template to add the battery level to every ui minimalist card

## Variables

| Variable | Default | Required | Notes |
| -------------------------------------------- | ------- | -------- | ------------------------------------------------------------------------ |
| ulm_battery_entity | | No | The entity to represent the battery_level

## Usage with battery or battery_level attribute from entity

```yaml

- type: 'custom:button-card'
template:
- card_binary_sensor
- battery_info
entity: binary_sensor.badezimmer_tuer_contact
variables:
ulm_show_last_changed: false

```

## Usage with variable ulm_battery_entity

```yaml

- type: 'custom:button-card'
template:
- card_binary_sensor
- battery_info
entity: binary_sensor.badezimmer_tuer_contact
variables:
ulm_show_last_changed: false
ulm_battery_entity: sensor.badezimmer_tuer_battery_level

```

0 comments on commit 90fdcbe

Please sign in to comment.