title: Can I create a rule that triggers on a query with a time delta?
body: <p>For example my device reports on two on/off states: a and b.  The device reports state 3 times per second.</p>
  
  <p>Is it possible to create a rule in iot core that will trigger if a and b are switched on within 1 second of each other?</p>
  
  <p>Or is the proper approach to save state history and trigger a lambda that will query recent state from DynamoDB for example? </p>