History stats sensors not appearing in entity

Hello, I did find a thread that discussed the same problem I am having. My history stats sensors are not appearing in the entities. I have only on instance of sensor: in my config.yaml. Here is the code I have for the history stat sensor. Any help in solving this would be appreciated.

- platform: history_stats
  name: Diesel burner on time
  entity_id: sensor.diesel_burner_status
  state: '01'
  type: time
  start: '{{ now().replace(hour=24).replace(minute=0).replace(second=0) }}'
  end: '{{ now() }}'

Tom

That is likely your problem. There is no hour 24.

23:59:59 → 00:00:00

See the examples here https://www.home-assistant.io/integrations/history_stats/#examples

Thank you. Problem solved…I should have looked at that more closely.

Tom

1 Like