Condition template for seconds since HA started

I am looking for a template that gives condition true if Home Assistant has started more than 60 seconds ago. Is this possible without an additional timestamp helper?

You can compare the current time with the sensor “sensor.uptime”
this is returning the number of seconds HA has been up…

{{ as_timestamp(now()) - as_timestamp(states('sensor.uptime')) }}

So the condition is:

{{ (as_timestamp(now()) - as_timestamp(states('sensor.uptime'))) < 60 }}
1 Like

I added the sensor to configuration.yaml:

sensor:
  - platform: uptime
1 Like