Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- name: >-
- {% set events = state_attr(config.entity, 'events') %} {% set count =
- events | selectattr('start', 'match',now().strftime('%Y-%m-%d')) | list |
- length %} {{ "no" if count == 0 else count }} {{ "appointment" if count ==
- 1 else "appointments" }}⏰
Advertisement
Add Comment
Please, Sign In to add comment