Closed itsabdelrahman closed 1 year ago
Home Assistant's Time & Date integration already supports the time format, so one doesn't have to use the date_time format and then extract the time manually using split.
time
date_time
split
{{ states("sensor.date_time").split(" ")[1] }} {# 08:37 #} {{ states("sensor.time") }} {# 08:37 #}
{{ states("sensor.date_time").split(":")[1] }} {# 37 #} {{ states("sensor.time").split(":")[1] }} {# 37 #}
@itsabdelrahman could you please fix the conflict
@hajtux could you please check this PR and test it
Home Assistant's Time & Date integration already supports the
time
format, so one doesn't have to use thedate_time
format and then extract the time manually usingsplit
.Hours & minutes
Minutes