UPDATE: v3.0.0
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 useduration_unit
to set this to βdβ, βhβ, βminβ, βmsβ, βsβ, or βΞΌsβ (which are the units Home Assistant also uses for sensors withstate_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 setduration=true
and use the correcduration_unit
. - In case the input is input_datetime which is set to time only, it will use that time on the current day.
LANGUAGES
- Typo fix in Russian translations
- Add Turkish translation
Full Changelog: Comparing v2.4.0...v3.0.0 Β· TheFes/relative-time-plus Β· GitHub