Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
amitfin authored May 24, 2023
1 parent 32caef5 commit 0af676a
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,15 @@ _Note: The custom integration is a prerequisite and can be installed via HACS us
| type | string | True | - | Must be `custom:daily-schedule-card`
| title | string | False | - | Title of the card
| card | bool | False | _True if `title` is supplied_ | Whether to render an entire card or rows inside the `entities` card
| template | string | False | `Null` | Template for rendering the value. Has access to `entity_id`

### Entities

| Name | Type | Required | Default | Description
| ---- | ---- | -------- | ------- | -----------
| entity | string | True | - | The `binary_sensor` entity ID
| name | string | False | _Friendly name of the entity_ | Name to display
| template | string | False | `Null` | Template for rendering the value. Has access to `entity_id`.
| template | string | False | `Null` | Per-entity template (overrides card's template)

_Note: you can also just give the entity ID (with no `entity:`) if you don't need to specify the name explicitely._

Expand Down Expand Up @@ -56,12 +57,12 @@ entities:
```yaml
type: custom:daily-schedule-card
card: true
template: >-
{{ state_attr(entity_id, 'schedule') | rejectattr('disabled',
'true') | map(attribute='from') | map('truncate', 2, True, '')
| join(' | ') }}
entities:
- entity: binary_sensor.let_the_dog_out
template: >-
{{ state_attr(entity_id, 'schedule') | rejectattr('disabled',
'true') | map(attribute='from') | map('truncate', 2, True, '')
| join(' | ') }}
- binary_sensor.let_the_dog_out
```
## Install
Expand Down

0 comments on commit 0af676a

Please sign in to comment.