Closed Mariusthvdb closed 1 week ago
followup from Discord
have a timestamp entity like
{{states('sensor.afvalwijzer_plastic')}}
which outputs ' 2024-02-02'
for various dashboards/templates, it would be very nice to be able to do
{% set trash = 'sensor.afvalwijzer_plastic' %} {% from 'easy_time.jinja' import month %} {{month(trash)}}
or
month(states(trash))
to output the month name
which would be much nicer than
{{month(as_datetime(states(trash)).month)}}
which currently does the job alright
please consider adding that? thx
Added in 2.1.0
nice!
% set trash = 'sensor.afvalwijzer_plastic' %} {% from 'easy_time.jinja' import month, weekday %} {{weekday(trash)}} {{month(trash)}} {{(states(trash)|as_datetime).day}}
followup from Discord
have a timestamp entity like
which outputs ' 2024-02-02'
for various dashboards/templates, it would be very nice to be able to do
or
to output the month name
which would be much nicer than
which currently does the job alright
please consider adding that? thx