Skip to content

Commit

Permalink
Add downloads badge, fix templating link
Browse files Browse the repository at this point in the history
  • Loading branch information
Barma-lej committed Oct 2, 2023
1 parent f26684a commit 96b3155
Showing 1 changed file with 13 additions and 10 deletions.
23 changes: 13 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@

[![hacs][hacs-image]][hacs-url]
[![Buy Me A Coffee][buymeacoffee-image]][buymeacoffee-url]
[![Downloads for latest release][latest-img]][latest-url]
![Latest release][latest-url]
![All releases][downloads]
![Latest release][downloads_latest]

> Landroid mower card for [Home Assistant][home-assistant] Lovelace UI
Expand Down Expand Up @@ -132,13 +134,13 @@ Here is what every option means:

You can use any attribute of mower or even any entity by `entity_id` to display by stats section:

| Name | Type | Default | Description |
| ---------------- | :------: | -------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `entity_id` | `string` | Optional | An entity_id with state, i.e. `sensor.mower`. |
| `attribute` | `string` | Optional | Attribute name of the stat, i.e. `total_blade_time`. |
| `value_template` | `string` | Optional | Jinja2 template returning a value [Here is Home Assistant Templating](ha-templating). `value` variable represents the `entity_id` or `attribute` state, i.e. `"{{ as_timedelta((value \| float(0) * 60) \| string) }}"` |
| `unit` | `string` | Optional | Unit of measure, i.e. `hours`. |
| `subtitle` | `string` | Optional | Friendly name of the stat, i.e. `Blade time`. |
| Name | Type | Default | Description |
| ---------------- | :------: | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `entity_id` | `string` | Optional | An entity_id with state, i.e. `sensor.mower`. |
| `attribute` | `string` | Optional | Attribute name of the stat, i.e. `total_blade_time`. |
| `value_template` | `string` | Optional | Jinja2 template returning a value. [Here is Home Assistant Templating][ha-templating]. `value` variable represents the `entity_id` or `attribute` state, i.e. `"{{ as_timedelta((value \| float(0) * 60) \| string) }}"` |
| `unit` | `string` | Optional | Unit of measure, i.e. `hours`. |
| `subtitle` | `string` | Optional | Friendly name of the stat, i.e. `Blade time`. |

```yaml
stats:
Expand Down Expand Up @@ -337,8 +339,9 @@ MIT © Barma-lej
[hacs-image]: https://img.shields.io/badge/hacs-default-orange.svg?style=flat-square
[buymeacoffee-url]: https://www.buymeacoffee.com/barma
[buymeacoffee-image]: https://img.shields.io/badge/donate-Coffee-ff813f.svg
[latest-url]: https://github.com/Barma-lej/landroid-card/releases/latest
[latest-img]: https://img.shields.io/github/v/release/Barma-lej/landroid-card?include_prereleases
[latest-url]: https://img.shields.io/github/v/release/Barma-lej/landroid-card
[downloads]: https://img.shields.io/github/downloads/Barma-lej/landroid-card/latest/total
[downloads_latest]: https://img.shields.io/github/downloads/Barma-lej/landroid-card/total

<!-- References -->

Expand Down

0 comments on commit 96b3155

Please sign in to comment.