Hello community!
As you may know, 2023.4 offers a new global template macro option in Home Assistant.
How does this benefit you? The introduction of this feature allows me to easily share all the templates I’ve helped you create over the years in a single easy-to-use template library! All in your native language!
Introducing…
Easy Time Jinja
A 1-stop-shop for easy time calculations.
Get it from HACS!
These templates are now available in HACS, with a caveat. In order to see templates, you need to change your HACS settings to use experimental features.
Already have experimental features? Go straight to the page
Adding experimental HACS features:
From your Integrations dashboard…
Click on Configure
on your HACS integration.
Check Enable experimental features and click submit.
A restart may be required.
Don’t use HACS?
Get it from the link below:
What’s inside???
- Macros that work with entity_id’s, attributes, strings, and datetime objects.
- Macros for relative times in your language.
- Clock Macros.
- Macros that count days.
For a full list of macros, check out the documents
Help Wanted!
Language Translations
I’m a native English speaker. I’m looking for help creating translations. Line 2 of the code has a dictionary with English translations. Please post in this thread if you’re uncomfortable creating PRs for translations. Any and all languages are welcome.
Time Calculation Ideas
I’ve combed through my responses to people on the forums and I’ve already added a few of the “most wanted” macros. I’m looking for more ideas. Please share them here!
Supported Languages
- English
- Dutch v1.0.3
- Swedish v1.0.3
- German v1.0.4
- Danish v1.0.5
- French v1.0.5.1
- Italian v1.0.7
- Portuguese v1.0.8
- Croatian v1.0.8.1
- Polish v1.0.9
- Norwegian (bokmål & nynorsk) v1.0.9.1
- Slavic v1.0.9.2
- Russian v2.1.0
Coming Soon…
- Timedelta formatter
kloggs time of the hour monstrosity2.1.0+- Output
less than a <X>
for values less than the minimum.
Support
Please post here for support.
Thank you.