Hello,
I use a couple of sensors to record how many time every user is at home.
This first sensor count the time but the measurement is in hours (like 12,3 h):
- platform: history_stats
name: Time at home
entity_id: input_boolean.user
state: "on"
type: time
start: "{{ now().replace(hour=0, minute=0, second=0) }}"
end: "{{ now() }}"
This one is still working after the update but this second one that converts the hours in a more friendly timestamp (used for notification or lovelace) after the update became “unknown”:
template:
- sensor:
- name: "Time at home Converted"
state: "{{ state_attr('sensor.time_at_home', 'value') }}"
Thank you for the answer, I didn’t notice it before.
Is there a way to use this format in notification too (like Telegram send_message) and not only on lovelace?