-
Notifications
You must be signed in to change notification settings - Fork 442
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #968 from UI-Lovelace-Minimalist/automated_custom_…
…card_docs [Action] Update custom_cards docs
- Loading branch information
Showing
3 changed files
with
70 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
61 changes: 61 additions & 0 deletions
61
docs/usage/custom_cards/custom_template_shogun160_battery_info.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
||
``` |