I’m looking to check if one of my PIR sensor is “off” for the last 5 minutes. In HA’s Automation, I would have something like this:
trigger:
- entity_id: binary_sensor.shenzhen_neo_electronics_co_ltd_battery_powered_pir_sensor_v2_sensor
for: 0:05:00
platform: state
to: 'off'
Is there any node that would be equivalent to HA’s Automation condition “for” ?
My first thinking was to start with an “events:state” node on my PIR sensor going to off, than follow by a “delay” node for 5 minute, then check with “trigger:state” if the PIR status was still “off”. But this is not the same at all, as during the 5 min delay the PIR could have gone on/off multiple times. What I need is to check that the status has been “off” during 5 minutes, continuously.