If State did no change before 1 hour it tells me

Hi everyone, i hope you can help me.

I have some sensors, can i trigger an automation then the last update time did not go over 1 hour.

So if i did not get an update before 1 hour is passed by, then my automation turn on some lights.

Is that possible?

I don’t know if this is precisely what you want but I think it is close.

If either sensor1 or sensor2 is off for 60 minutes, it will turn on light1.

- id: two_sensors
  alias: Two Sensors
  trigger:
    - platform: state
      entity_id: binary_sensor.sensor1
      to: 'off'
      for:
        minutes: 60

    - platform: state
      entity_id: binary_sensor.sensor2
      to: 'off'
      for:
        minutes: 60

  action:
    service: light.turn_on
    entity_id: light.light1
2 Likes