Is it possible to trigger when time difference between current time and sensor state is greater than certain value?

You were right, that’s old test code I had.
That value_template has since modified into a condition paired with a time trigger.
Sorry for the confusion.

- id: netcat_check 
  trigger:   
  - platform: time
    minutes: "/3"
    seconds: 00
  condition:
    - condition: template
      value_template: '{% if (as_timestamp(now())-as_timestamp(states.sensor.lastnc.last_updated)) > 600 %}true{% endif %}'
1 Like