It would be nice instead of having just a scan_interval property, having also a scan_sensor or scan_condition to activate restful sensor only when that condition or scan_sensor is on.
I know there are other ways but this would be a much simpler solution.