Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- template:
- - trigger:
- - platform: time_pattern
- hours: 0
- minutes: 0
- - platform: homeassistant
- event: start
- sensor:
- - name: "Compleanno"
- state: >
- {% if now().day == 16 and now().month == 12 %}
- Ilaria
- {% elif now().day == 20 and now().month == 6 %}
- Erica
- {% elif now().day == 22 and now().month == 2 %}
- Antonella
- {% elif now().day == 8 and now().month == 5 %}
- Henrik
- {% else %}
- none
- {% endif %}
- - name: "Compleanno anno"
- state: >
- {% if now().day == 16 and now().month == 12 %}
- 2015
- {% elif now().day == 20 and now().month == 6 %}
- 2010
- {% elif now().day == 22 and now().month == 2 %}
- 1980
- {% elif now().day == 8 and now().month == 5 %}
- 1978
- {% else %}
- 0
- {% endif %}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement