Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 103101

Time conversion no longer work after 2022.5 update

$
0
0

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') }}" 

Is there a way to fix it?

Thank you in advance

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 103101

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>