Why Isnt this template sensor showing?

Hi,

I have made the following sensor in configuration.yaml along with other sensors (that are working).

  - platform: history_stats
    name: Heating On Duration
    entity_id: binary_sensor.custom_wiser_heating
    state: "on"
    type: time
    start: "{{ now().replace(hour=0, minute=0, second=0) }}"
    end: "{{ now() }}"

The custom binary senor is setup as follows and works.

{{ is_state("sensor.wiser_heating", "On") or is_state("sensor.wiser_heating_2", "On") }}

But I cant see the Heating On Duration sensor anywhere. I have looked under entities and tried finding its state under developer options but nothing coming up. Is there something Ive done wrong?

On is not the same as on (I think)

That Part works (I checked the state when on, and it shows as On). The part that isnt working is the history stats sensor, its not showing anywhere. I have restarted config and HA but still no luck

Ok sorry for not getting that.

I notice that all the examples have microsecond=0 in the time spec.

Other than that, logs!!

Just restarted HA again and now it showing, strange! Thanks for the help though

Yeah if you create something in yaml you need to either reload the yaml or restart HA