Changed ">" to ">=" for time comparison, else Clearance and Movement time could be between set interval and the next second.
Also added "update_interval" to Distance sensor, this replaces heartbeat filter but is still subject to delta filter.
Also made binary sensors publish initial state. Now HA isn't "unknown" after reset device.