Skip to content

Commit

Permalink
Merge pull request #18 from mhoogenbosch/master
Browse files Browse the repository at this point in the history
Auto-entities sorts the birthdays
  • Loading branch information
Miicroo authored Sep 28, 2024
2 parents 0491760 + ec0d5e0 commit f0c0e01
Showing 1 changed file with 26 additions and 1 deletion.
27 changes: 26 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ automation:

If you want to have a notification sent to you at a specific time (instead of midnight), you can use a custom templated sensor and a time trigger.
Create the sensor:
~~~
~~~yaml
template:
- sensor:
- name: "Next birthday"
Expand Down Expand Up @@ -185,3 +185,28 @@ I use the birthdays as a simple entity list in lovelace, given the above example
- birthdays.bilbo_baggins
- birthdays.elvis
```

Another possibility is to use the auto-entities card. This allows you to sort the birthdays entered, an example:
```yaml
# Example using auto-entities
- type: custom:auto-entities
show_empty: false
card:
title: Verjaardagen
type: entities
card_mod:
style: |
#states > * {
margin: 0 !important;
}
filter:
include:
- entity_id: birthdays*
sort:
method: state
ignore_case: false
reverse: false
numeric: true
```


0 comments on commit f0c0e01

Please sign in to comment.