Easy Time Macros for Templates!

You’d have to come up with that. Seasons are different for every timezone and area of the world.

Why don’t you use the season integration? Is there something not working? :slight_smile:

I don’t think season tells you dates. It tells you what the current season is.

2 Likes

You’re totally right, Nick! :slight_smile: I have a template sensor with the date, and I was quite sure it uses the season integration. After checking, turns out, I’m importing the date from a calendar :open_mouth:

4 posts were split to a new topic: Exposing season transitions as timestamp sensors

Amazing that you added the German translations! I just tried to set-up a card but am running into the issue that the sentence structure is wrong:
image

I have also opened an issue here:
Wrong order for relative_time in German · Issue #37 · Petro31/easy-time-jinja (github.com)

and also tried to add some code to fix it (list of languages with different order), but unfortunately couldn’t quite get it to work.

Does anybody have an idea on how to fix this?

Just want to check in to see if anybody has an idea on how to get this to work with a sentence structure that differs by language?

2.1.0.1

New Features

  • 2 new macros:
    1. hour - translates hour of the day, e.g. midnight → 1, 2… etc → noon, → 13, 14 etc
    2. clock_phrase - translates the current time to a long phrase, e.g. half past 11, or quarter to 10, etc.
  • month and weekday now support entity_id’s as inputs.

Bug Fixes

  • Fixed an issue with speak_the_days returning the wrong day when the value is in the past.
  • Fixed an issue with easy_relative_time using now()
  • Fixed vor <relative time> for German.
2 Likes

Do I need to update the translations for these new macro’s?

Maybe? I can remember. I think the clock one might need translations