Relative Time Plus

UPDATE: v3.0.0

:star2: NEW FEATURES

  • This version adds support to use a duration instead of a datetime/timestamp. Set duration=true to treat a numeric input as duration. The default unit of measurement used for the duration is seconds, but you can use duration_unit to set this to β€œd”, β€œh”, β€œmin”, β€œms”, β€œs”, or β€œΞΌs” (which are the units Home Assistant also uses for sensors with state_class: duration).
  • This version add support to directly use an entity_id as input. It will check if the entity exists, and if so, it will use the state of that entity.
  • In case the input is an entity_id of a sensor with state_class: duration, the macro will detect this and automatically set duration=true and use the correc duration_unit.
  • In case the input is input_datetime which is set to time only, it will use that time on the current day.

:globe_with_meridians: LANGUAGES

  • Typo fix in Russian translations
  • Add Turkish translation

Full Changelog: Comparing v2.4.0...v3.0.0 Β· TheFes/relative-time-plus Β· GitHub

2 Likes