Created
August 21, 2023 02:54
-
-
Save benrowe/cf218b75a3960a56466034fc1e1dddaa to your computer and use it in GitHub Desktop.
A collection of snippets for HASS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Good morning/afternoon/evening | |
service: tts.google_translate_say | |
data: | |
message: >- | |
'{% if now().strftime('%H')|int < 12 and now().strftime('%H')|int > 4 %} | |
Good morning | |
{% elif now().strftime('%H')|int >= 12 and now().strftime('%H')|int < 16 %} | |
Good afternoon | |
{% else %} | |
Good evening | |
{% endif %} | |
# Time of day | |
service: tts.google_translate_say | |
data: | |
message: The current time is {{ now().strftime('%I %M %p') }} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment